It might be interesting to see a logical diagram of this beast, and make a raspberry version with LEDs and optical/halleffect sensors.