Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Kushagra Keshari
Published © CC BY-NC-ND

Automated Model Railway Layout with Passing Siding

A basic model train layout containing a passing siding with a train running around and stopping in an automated sequence.

IntermediateFull instructions provided2 hours20,581
Automated Model Railway Layout with Passing Siding

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Dual H-Bridge motor drivers L298
SparkFun Dual H-Bridge motor drivers L298
×1
Male/Male Jumper Wires
×6
Male/Female Jumper Wires
Male/Female Jumper Wires
×7
IR proximity sensor
Use any similar sensor of your preference which can be integrated under the tracks.
×1
Adafruit 12V DC 1000mA (1A) switching power supply
Use this for smaller layouts.
×1
Adafruit 12V DC 5A switching power supply
Use this for larger layouts.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit schematic

Make sure you go through the schematic carefully.

Code

Model_train_layout_with_automated_track_switching.ino

Arduino
No preview (download only).

Credits

Kushagra Keshari

Kushagra Keshari

19 projects • 70 followers
A casual electronics and a model railway hobbyist.

Comments