In this instructable, I will show you how to make an IR remote control system for a model train. You will then be able to control your trains while relaxing on your couch. So, let’s get started!
Step 1: Collect All the Stuff!
Here is the parts list for electronic components:
An Arduino Mega
An AF motor driver shield
An SM0038 IR receiver
A 12 volt DC power supply
A 47 uF capacitor
Some jumper wires
Step 2: Assemble the Electronics
Check the Arduino code for more info on the wiring connections, download it from the next step.
Step 3: The Software
Upload this code to your Arduino board:
Step 4: Make a Test Layout
Mame a simple loop of track to test your setup.
Step 5: Get Your Locomotive
This is a Tomix EF210 N-scale electric locomotive which I bought from Japan. It comes as a set with two container wagons, check it out here.
Step 6: Add It to Your Test Layout
Source: Control Your Model Train Layout With Your TV REMOTE!