Hi folks, I bought a slot car set for my nephew this Christmas and then realized it didn't have a lap counter so I thought I would just build one with an Arduino. I did some searching and didn't find anything really workable so I ended up designing one from scratch.
I finished the project and it works great so I thought I would share the design as I came across a few others kind of looking for the same thing I was, and not being too successful. It's pretty inexpensive, considering what store bought controllers go for.
The controller supports up to 4 lanes, has a pause and restart feature, individual lap timer displays for each racer, live leader board (though really small), and final results lists. Timing precision is to the ms, and even though it's only one microcontroller it can detect simultaneous lap crossings of any or all racers so should never miss a lap.
The parts list (other than wires)
Arduino Nano - $7
4 x 20 LCD display - $8.00 - $10
4, 8-digit 7-segment LED bars - $8-$12 for all 4
4x4 membrane keypad - $1.5
Passive Buzzer (or mini speaker for a toy) - grab an old toy's speaker or buzzer or buy 12 for $5
1 resistor 10kOhm
I wrote up the whole project for the Arduino Project Hub and I've loaded the software with details about the implementation on GitHub. Those posts have a ton of details regarding how everything works under the hood, but if you have the parts above, you can download the completed, ready to use code, upload it to the Arduino, and wire up the parts without needing to worry about all those details.
Arduino Race Timer, Lap Counter, and Controller on Hackster
Race Timer and Controller code on GitHub
A demonstration video of the program interface and usage can be found on YouTube.
I don't think my nephew really gave a poop about the slot car set, but it was a fun challenge to build the race controller and maybe someone out there will find some use for the effort.
I finished the project and it works great so I thought I would share the design as I came across a few others kind of looking for the same thing I was, and not being too successful. It's pretty inexpensive, considering what store bought controllers go for.
The controller supports up to 4 lanes, has a pause and restart feature, individual lap timer displays for each racer, live leader board (though really small), and final results lists. Timing precision is to the ms, and even though it's only one microcontroller it can detect simultaneous lap crossings of any or all racers so should never miss a lap.
The parts list (other than wires)
Arduino Nano - $7
4 x 20 LCD display - $8.00 - $10
4, 8-digit 7-segment LED bars - $8-$12 for all 4
4x4 membrane keypad - $1.5
Passive Buzzer (or mini speaker for a toy) - grab an old toy's speaker or buzzer or buy 12 for $5
1 resistor 10kOhm
I wrote up the whole project for the Arduino Project Hub and I've loaded the software with details about the implementation on GitHub. Those posts have a ton of details regarding how everything works under the hood, but if you have the parts above, you can download the completed, ready to use code, upload it to the Arduino, and wire up the parts without needing to worry about all those details.
Arduino Race Timer, Lap Counter, and Controller on Hackster
Race Timer and Controller code on GitHub
A demonstration video of the program interface and usage can be found on YouTube.
I don't think my nephew really gave a poop about the slot car set, but it was a fun challenge to build the race controller and maybe someone out there will find some use for the effort.