Control Your Model Train Layout With Your TV REMOTE!

3,606

32

6

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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Step 7: Power Up the Setup and Get the Train Running!

I hope you will enjoy making this project. All the best for your build!

Make it Move Contest

Participated in the
Make it Move Contest

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    6 Discussions

    None
    KushagraK7zaki67

    Reply 8 months ago

    Yes, but make sure you change the pin connection of the IR receiver in the Arduino code to the pin which is available on the Arduino UNO. Since a motor driver shield used in this project acquires a lot of digital I/O pins of the Arduino board, it is recommended to change the pin connection of the IR receiver to the digital pins 9 or 10 since they are not used by the shield.

    None
    KushagraK7zaki67

    Reply 8 months ago

    You can use any IR receiver module with any remote, but you will need to change the hexadecimal codes for each function in the Arduino program to let your remote take control of the train layout.
    You can connect the VCC terminal of the sensor to the +5-volt pin of the Arduino board and GND terminal of the sensor to the GND pin of the Arduino board. Also, the Adafruit motor driver shield mentioned in the project already uses almost all of the digital I/O pins of the Arduino UNO board, so you will need to change the 'recvpin' to either 9 or 10 since they are not being used by the motor driver shield.

    None
    KushagraK7Kink Jarfold

    Reply 1 year ago

    Are you talking about the music in the video? Well, anyway, thanks!