Go to Post Now the big question is, does Dave think this is pimp? - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2008, 20:31
Trav-O's Avatar
Trav-O Trav-O is offline
THE PROGRAMINATOR
AKA: Travis
FRC #0510 (Hawaii 5-1-0)
Team Role: Tactician
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Richmond
Posts: 38
Trav-O is infamous around these partsTrav-O is infamous around these parts
digital inputs: some bad?

ok, so I heard a rumor a long time ago that the higher number rc digital inputs have questionable functionality... is this true?

the reason this concerns me is that i'm trying to get signals from my IR board... The board does give signals when you press the corresponding buttons on the remote controller (i've checked with a multimeter) BUT the code doesn't seem to want to register the signals... (btw, there are no code errors. I'VE CHECKED! trust me on this) when we replugged the pwms into digita inputs 1 2 and 3, the switch 1 2 and 3 leds came on, binking when we pressed the remote controller buttons so yea...
__________________
Be safe!!! OR YOU MIGHT GET INJURIES!
  #2   Spotlight this post!  
Unread 18-02-2008, 20:38
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: digital inputs: some bad?

Yes, I believe this is an issue; our team was using digital 15 - 18, and we were only able to utilize three of our commands, and linked it to pin 16 or 17, but thanks to my poor coding, we couldn't figure out which one specifically. However, it did work splendidly for us using pins 1 - 4; see if switching it to different pins, and changing your code, can resolve it.
__________________
I cut myself shaving with Occam's razor.

  #3   Spotlight this post!  
Unread 18-02-2008, 23:28
Stvn's Avatar
Stvn Stvn is offline
FIRST Competition Competer
AKA: Steven Rhodes
FRC #0100 (WHS/CHS - WildHats)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Woodside, CA
Posts: 90
Stvn is an unknown quantity at this point
Send a message via AIM to Stvn
Re: digital inputs: some bad?

The pins need to be defined as digital inputs or digital outputs. I believe that by default pins 9-18 are defined as outputs, and you need to change that in the code.

I don't know what you're programming with, but for WPILib, you can use:
Code:
#define	IN	1
#define	OUT	0

void Initialize (void)
{
  DefineControllerIO(IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,IN,OUT);
}//end Initialize
  #4   Spotlight this post!  
Unread 18-02-2008, 23:29
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: digital inputs: some bad?

I haven't looked into this all that much, but we plugged the IR board into 15-18, and could not seem to get the buttons associated with 17 or 18 to register in code. We moved the signal connector to 13-16, and it worked just fine. I was busy with a lot of other things, so I chalked it up to either subtle user error or gremlins in the system, but I'm a little surprised to hear that this may be a common occurrence.

EDIT: We definitely set the pins to be inputs. Also, if I remember correctly, the RobotC debugger window wouldn't even display a value for those pins. Bizarre.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_

Last edited by jgannon : 18-02-2008 at 23:32.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Default Digital inputs to Low? How? bad Analog value? Generalx5 Programming 11 04-01-2007 18:57
Digital inputs in autonomous mode? Calvin Programming 8 18-02-2006 13:16
How to access other Digital inputs on OI? DougHogg Electrical 2 12-03-2003 13:57
Digital inputs, bandwith, errors? Micah Brodsky Programming 7 20-01-2003 16:08
Analog vs Digital inputs? f22flyboy Programming 8 08-11-2002 22:18


All times are GMT -5. The time now is 14:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi