View Single Post
  #4   Spotlight this post!  
Unread 07-01-2005, 00:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,573
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How do the Analog Inputs work?

Quote:
Originally Posted by JBotAlan
What do the analog inputs measure? (voltage? resistance?) I'm assuming voltage, but I don't know if I'm right. I am a newbie so I don't know much about the brain, but that is my job. I'm trying to make IR sensors to detect which angle the beacon is in relation to the 'bot. Please help.
There are two different questions here. Biff answered about analog inputs, however, that doesn't help you get the IR beacons working.

The IR beacons emit IR pulses at a specified frequency. In essence, they turn on and off at a specific rate, a digital signal. When you see the beacon, you see that frequency, otherwise you don't see the beacon. If you want to find the beacon, you must rotate your sensor until it detects the frequency. You can do this by connecting it to a servo or motor, or you can rotate your entire robot.

Kevin Watson has posted some example code for handling the IR sensors. http://kevin.org/frc/2004/frc_tracker.zip If you want to see all of his neat programs, his main site is http://kevin.org/frc/

His code uses 4 infrared sensors and 2 servos. If you don't want to get that complicated, you should at least look at how he detects the signal.