|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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.
|
|
#2
|
|||
|
|||
|
Re: How do the Analog Inputs work?
Quote:
They measure voltage, have 10 bit resoultion, and a 0 to 5 volt range, you can code to drop the resoultion to 8 bits. Full info on how to code and such can be found in the progamming instructions and by searching the fourms here. Good luck Biff |
|
#3
|
|||||
|
|||||
|
Quote:
|
|
#4
|
||||||
|
||||||
|
Re: How do the Analog Inputs work?
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| Why not analog sensors?? | gnormhurst | Programming | 16 | 07-03-2004 16:14 |
| Pneumatic Layout (Does it work?) | Matt Fultz | Pneumatics | 14 | 04-02-2004 14:56 |
| Who knows how the motors [I]really[/I] work? | Wetzel | Chit-Chat | 5 | 13-02-2002 21:50 |
| Does anyone on this board work at home depot? | mnkysp6353 | General Forum | 2 | 30-12-2001 13:27 |