Got inspired a while ago and added IR remote support to the train set. Lights can be turned on/off and the train can be fully controlled with the Play/Stop/Pause/FF/RW and Prev/Next track buttons.
The code is available on github
- Play will start the train slowly to a set speed
- Stop will engage the brakes and stop the train
- Pause will slowly stop the train
- FF & RW controls the speed
- Prev/Next will change train direction (when stopped)
- Number buttons (1-3) toggles building lights
The code is available on github
Keywords