Thread: IR from scratch
View Single Post
  #1   Spotlight this post!  
Unread 03-02-2004, 21:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,867
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: IR from scratch

Quote:
Originally Posted by Obi
I'm one of those programmers who needs to know how everything works in a code to learn. I don't like using code designed by someone else, besides just learning from it. Now, to the point...

Is it possible for me to just put the IR sensor on a digital input on the default code? I've been trying the sensor on a dig i/o. I told it to print the value to the terminal IFI loader screen, but it only equals 1, even when the sensor is not in. Am I doing something wrong?
Even on a polled digital input you should be able to see 0's mixed in with the 1's even pointing most IR rmote controls at the sensor. However, as others have noted you won't be able to use this on a competition robot, because you cannot poll it fast enough to follow the beacon sequence of IR flashes.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle