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
Close the gates when a model train comes.
Parts list
- Development Boards
- Sensors
- Motors & ActuatorsSG90 Micro Servo × 2
- SemiconductorsLED 5 mm red × 2
- PassivesResistor 220 Ω × 2
- Motors & Actuators
- Prototyping
- Prototyping
How to build it
- Mount the sensors beside the track
- Detect a train from each side
- Lower the gates and flash the lights
- Hold until both sensors are clear
- 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.
