Having been lucky enough to get a rPi for my birthday, I'm thinking of a few projects to do with it.
My son got a Scalextric Digital set, which is pretty cool, so I was thinking of setting up a lap counter/timer system.
I've already seen the project that uses reed switches under the track, which would work fine for an analogue setup, as a single car will only be on a single track, but with digital you can have up to 4 cars running (up to 6 with an upgraded powerbase), and they can cross the line on either track (and if I expand the circuit in the future I may increase the lanes to 3 or 4)
So it needs to detect the specific car rather than just detecting that a car has passed.
Seems to me the detecting part is the hardest, and actually plugging that signal into the rPi to handle the race management is fairly trivial in comparison.
I'm thinking one of the following:
- cannibalise the lap counter that exists, and try and grab the output from it.
- mount some kind of transmitter into each car and set up a receiver of some sort
- IR paint with a unique image on the roof of each car and a camera sitting above the track to read it
Any ideas?



