All paths

Model railroad electronics

Throw turnouts, run a level crossing, follow a train with block signals and drive a DC loco with momentum, all from an Uno.

Arduino Uno R3Free4 lessons4 h2 chapters936 XPMaker · Intermediate+150 XP

0 of 4 done

What you will build

2 projects, built step by step

4 lessons in 2 chapters, about 4 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

A level crossing

Two beam detectors, alternating red lamps, a bell and a gate that waits before it falls: a crossing that follows a train from one side to the other.

Open it in the simulator
Chapter 2 project

A DC throttle with momentum

PWM speed control of a DC locomotive through a TB6612, momentum that makes it feel heavy, a brake, and a direction change only at a standstill.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Trackside animation

Move turnouts from a panel and run a crossing that follows a train.

  1. Open156 XP

    Servo turnouts and a panel

    Throw two turnouts from a panel with slow-motion servos, route lamps that blink while the points travel, and positions that survive a power cut.

    0 of 4 steps

  2. ProjectLocked312 XP

    A level crossing

    Two beam detectors, alternating red lamps, a bell and a gate that waits before it falls: a crossing that follows a train from one side to the other.

    0 of 4 steps

Chapter 2

Running trains

Signal by block occupancy and drive a DC locomotive smoothly.

  1. Locked156 XP

    Block signals

    Two searchlight signals that show red, yellow or green from the blocks ahead, and how spot detectors stand in for track current detection.

    0 of 4 steps

  2. ProjectLocked312 XP

    A DC throttle with momentum

    PWM speed control of a DC locomotive through a TB6612, momentum that makes it feel heavy, a brake, and a direction change only at a standstill.

    0 of 4 steps

Syllabus

Every lesson in the course

All 4 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Trackside animation

  1. Servo turnouts and a panelThrow two turnouts from a panel with slow-motion servos, route lamps that blink while the points travel, and positions that survive a power cut.
  2. A level crossingTwo beam detectors, alternating red lamps, a bell and a gate that waits before it falls: a crossing that follows a train from one side to the other.
Chapter 2

Running trains

  1. Block signalsTwo searchlight signals that show red, yellow or green from the blocks ahead, and how spot detectors stand in for track current detection.
  2. A DC throttle with momentumPWM speed control of a DC locomotive through a TB6612, momentum that makes it feel heavy, a brake, and a direction change only at a standstill.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Model railroad electronics

Is Model railroad electronics free?

Yes. All 4 lessons of Model railroad electronics are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Model railroad electronics take?

About 4 hours: 4 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: A level crossing and A DC throttle with momentum.

Where do I start?

With "Servo turnouts and a panel", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.