This is a Spring Boot application accessible via standard web browser that sits on a Raspberry Pi and is connected to a photocell. When the model car passes the start line, the photocell is interrupted and the timekeeper displays lap times and total race time. See it in action on youtube.
- Get a photocell with open collector transistor output, like this one.
- Connect photocell power and ground as needed, and its output to pin 13.
- Build
fun-timekeeper.jar
using maven or download the latest release. - Launch the timekeeper on your raspberry using java:
java -jar -DlapsPerRace=3 fun-timekeeper-1.0.jar
- Open
http://address-of-your-pi:8080/
in the browser. - Click Start Race and put pedal to the metal.
To clean the records remove races.json
and restart the app.