Thread: IR from scratch
View Single Post
  #3   Spotlight this post!  
Unread 05-02-2004, 16:26
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
All I get when I print the command to the screen are 1's.
Are you using your beacon to generate the IR or something else?
I have encountered IR remote controls that aren't broadcasting at the 40kHz of the IR sensor, and so don't get detected.

Double check your IR sensor hookup. Looking at the from of the IR sensor:
pin 1 (on the left) should be your white or signal wire,
pin 2 (middle) should be your black or ground wire,
pin 3 (on right) should be your red or 5v wire.

Try a different IR sensor in case it's bad.

Have you verified the operation of your beacon?

Here's some code to double check your setup. This code runs everything (beacon included) on the FRC. See the ReadMe for what's connected to what. I setup digital IO pin 6 to do what you're attempting with the IR sensor. You can use this to see if the problem is with the sensor or beacon before you go too crazy.

Oops. I mistyped rc_dig_in06. You'll see it when you build. Sorry about that chief.
Attached Files
File Type: zip FrcBeaconTracker.zip (60.7 KB, 39 views)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2004 at 21:10.