Sensors for building a lap counter?
eger
Posts: 9
Hello,
I am looking for ideas to build a lap counter out of my basic stamp board. Basically I want t build a small emitter of some sort that goes on a little remote controlled car (needs to be small...basic stamp or SX?). Then I need a way to sense when the car passes a line (line is about 3 feet wide).
What are some sensor combinations that might be able to do this? It seems like the BASIC coding part is something I can handle. But I am not sure what sensor combination would accomplish this. I also am not sure how I could build a emitter/transmitter than can be small enough to fit inside a little car.
Any suggestions would be great. Thanks!
I am looking for ideas to build a lap counter out of my basic stamp board. Basically I want t build a small emitter of some sort that goes on a little remote controlled car (needs to be small...basic stamp or SX?). Then I need a way to sense when the car passes a line (line is about 3 feet wide).
What are some sensor combinations that might be able to do this? It seems like the BASIC coding part is something I can handle. But I am not sure what sensor combination would accomplish this. I also am not sure how I could build a emitter/transmitter than can be small enough to fit inside a little car.
Any suggestions would be great. Thanks!
Comments
You'd use the 38KHz IR detectors that Parallax sells and their documentation shows how to use it. It runs off 5V and has an open-collector output. A simple pull-up resistor to +5V (4.7K to 10K) and you would see an "on" state when INn = 0.
The 555 timer actually runs off anything from about 5V to over 12V, so you could use a 6V or 9V battery source if that's available. The regulator (and its filter) would still be useful if the battery is also used for the motors since that would add a lot of noise to the power source. You should adjust the LED series resistor to limit the average LED current if the power supply is more than 6V.
Post Edited (Mike Green) : 5/4/2007 7:51:52 PM GMT
My second question, how could this setup be modified to allow for multiple emitters to be used. Is it possible to transmit one at slightly different frequency and have that detected by the IR detector to differentiate between the 2?
Laser pointers and photocell receptors would work too (you'd need only build the detectors and a stand to keep the lasers aligned). Probably possible just to use flags of varying length and time the flag passing to get by with only one detector. If your cars aren't too fast, you could use line detector hardware to build a crude barcode reader and attach labels with alternating patterns of black and white to the bottoms if the cars--read them as they drive over it. Order an RFID reader and a few tags... Ain't Stamps cool?