View Single Post
  #4   Spotlight this post!  
Unread 16-01-2008, 16:22
neutrino15's Avatar
neutrino15 neutrino15 is offline
plɹoʍ ollǝɥ
AKA: Jordan Perr
FRC #0694 (Stuypulse)
 
Join Date: Feb 2007
Rookie Year: 2007
Location: New York City
Posts: 162
neutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really niceneutrino15 is just really nice
Re: How to wire the IR on the RC?

I don't know if this is because we tried on a vex controller, but when we set up the IR sensor, everything was inverted. So we got +voltage out of every pwm when there was no button press, and then when there was a button press, we had every input but the needed one drop in voltage to 0. I am startng to think that we have it miswired, but this is what the pwms look like (1 = +voltage, 0 = 0 voltage)

Code:
no button: 1111
1st button: 1000
2nd button: 0100
3rd button: 0010
4th button: 0001
The only thing about this is that you cant just go "If(digin1 == 1)" because they default to 1!! We just use a bunch of ands and checked for the pattern, but it seems odd that nobody else is reporting this. What is the way to properly wire it? Or do we have it the correct way?