Thursday, July 21, 2016

Basic IR remote control for arduino train

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.

  • 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 remote itself is a random Sony CD player remote I had laying around at home.
A quick video below:

The code is available on github

No comments: