Skip to content
Voltomni
← All project kits

Automatic railway gate control

BeginnerBuild time 2 hours· You'll learn: Arduino, IR sensors, Servos

An unmanned level crossing that runs itself, and a popular science-exhibition model. When the first IR sensor sees the train, the Arduino flashes the red lights, sounds the buzzer and lowers both gates; when the train passes the second sensor, the gates lift again. It works for trains from either direction.

Complete kit

₹1,969

Every part below as one item: we collect, check and ship the whole set together, with one GST invoice. Ships in about 6 business days.

View complete kit

Parts only: available parts total

₹1,727

4 of 4 line items available now.

Electronics

PartRoleQtyUnitLineStatus
Arduino Nano compatible (CH340)BoardController (Arduino Nano compatible)1₹252₹252ships in about 6 business days
IR Proximity sensorIR sensors, one each side of the crossing2₹179₹358ships in about 6 business days
SG90 micro servoSingleGate barriers2₹201₹402ships in about 6 business days
Electronics fun kit with 830 breadboardKit830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer1₹715₹715ships in about 6 business days

How to build it

  1. Make the track and road from cardboard, with the crossing in the middle and a sensor about 20 cm either side.
  2. Wire the two IR sensors to D2 and D3, the servos to D9 and D10, and red LEDs and the buzzer to spare pins.
  3. Fix an ice-cream stick to each servo horn as the barrier, upright when the servo is at 90°.
  4. Upload the sketch: when either sensor sees the train, flash the lights, sound the buzzer and lower both gates.
  5. Lift the gates once the train has passed the sensor on the other side, so a train from either direction works.

Questions

What can I use as the train?
Any toy train or a box pushed along the track; the IR sensors see anything within a few centimetres.
Could it work on a real railway?
Real crossings use certified track circuits and fail-safe interlocks. This shows the idea on a model.

Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.