Projects / Ideas / Model railway level crossing

Model railway level crossing

BeginnerVehiclesIdeaReviewed
In short

How do you build a model railway level crossing?

Two reflective sensors on either side of a model track tell a Nano a train is coming, and two micro servos lower the gates while red lights flash and a buzzer beeps. The gates rise again when the train has gone. It is a lively model with plenty of state-machine practice, and not a real crossing control. You need Arduino Nano, TCRT5000 IR reflective sensor module × 2, SG90 Micro Servo × 2, LED 5 mm red × 2, Resistor 220 Ω × 2, Passive buzzer, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Beginner
Time
About 130 min
Parts
8
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Close the gates when a model train comes.

Parts list

How to build it

  1. Mount the sensors beside the track
  2. Detect a train from each side
  3. Lower the gates and flash the lights
  4. Hold until both sensors are clear
  5. Raise the gates and stop the beeps

Related projects

Common questions

What parts do I need for the model railway level crossing?

Arduino Nano, TCRT5000 IR reflective sensor module × 2, SG90 Micro Servo × 2, LED 5 mm red × 2, Resistor 220 Ω × 2, Passive buzzer, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the model railway level crossing take to build?

About 130 minutes for a beginner maker.