Sensor for bike lap timer
Posted: Tue Jul 09, 2013 5:14 am
Greetings,
Seeking advice on a suitable sensor to interface with a raspberry pi for use as a lap timer for a bike pump track. Ideally the sensor should detect when the tyre breaks the beam, but rider detection is ok so long as it's reasonably consistent.
Google has turned up this PIR, but I'm an electronics novice so am unsure. Any thoughts or better alternatives? The low current spot model (AMN43121) looks the most appropriate. I'm assuming I can use the 3.3V, GND and a GPIO pin on the RPi expansion header to power and interface with the sensor.
My plan is to house the RPi in an IP66 enclosure with a PV panel and batteries, and mount it in a PV friendly location about 2-3 metres from where the sensor will be placed in a smaller IP66 enclosure in the middle of the track, facing outwards. The sensor will be around 30cm off the ground, mounted on a pole with a spring at the bottom should it should be able to take a hit. Wires will travel under ground via existing drainage, in their own conduit for water protection. The RPi will also be acting as a WiFi access point, running a web server to transmit the lap times to anyone near by via a web app and REST API.
Questions:
cheers, si
Seeking advice on a suitable sensor to interface with a raspberry pi for use as a lap timer for a bike pump track. Ideally the sensor should detect when the tyre breaks the beam, but rider detection is ok so long as it's reasonably consistent.
Google has turned up this PIR, but I'm an electronics novice so am unsure. Any thoughts or better alternatives? The low current spot model (AMN43121) looks the most appropriate. I'm assuming I can use the 3.3V, GND and a GPIO pin on the RPi expansion header to power and interface with the sensor.
My plan is to house the RPi in an IP66 enclosure with a PV panel and batteries, and mount it in a PV friendly location about 2-3 metres from where the sensor will be placed in a smaller IP66 enclosure in the middle of the track, facing outwards. The sensor will be around 30cm off the ground, mounted on a pole with a spring at the bottom should it should be able to take a hit. Wires will travel under ground via existing drainage, in their own conduit for water protection. The RPi will also be acting as a WiFi access point, running a web server to transmit the lap times to anyone near by via a web app and REST API.
Questions:
- Would I need to drop the 3.3V down to 3V for the PIR, or is .3V negligible?
- Will a 2-3 metre gap between the RPi and PIR cause an issue?
- Does it matter which GPIO pin is used? The PIR output current is listed at 100 micro amps at .5V less the input voltage (assuming I RTFM correctly:)
- What's the simplest way of interfacing with the PIR output signal?
cheers, si