← 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 kitParts only: available parts total
₹1,727
4 of 4 line items available now.
Electronics
| Part | Role | Qty | Unit | Line | Status |
|---|---|---|---|---|---|
| Arduino Nano compatible (CH340)Board | Controller (Arduino Nano compatible) | 1 | ₹252 | ₹252 | ships in about 6 business days |
| IR Proximity sensor | IR sensors, one each side of the crossing | 2 | ₹179 | ₹358 | ships in about 6 business days |
| SG90 micro servoSingle | Gate barriers | 2 | ₹201 | ₹402 | ships in about 6 business days |
| Electronics fun kit with 830 breadboardKit | 830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer | 1 | ₹715 | ₹715 | ships in about 6 business days |
How to build it
- Make the track and road from cardboard, with the crossing in the middle and a sensor about 20 cm either side.
- Wire the two IR sensors to D2 and D3, the servos to D9 and D10, and red LEDs and the buzzer to spare pins.
- Fix an ice-cream stick to each servo horn as the barrier, upright when the servo is at 90°.
- Upload the sketch: when either sensor sees the train, flash the lights, sound the buzzer and lower both gates.
- 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.
- Needs a USB Mini-B cable and a 5 V USB charger or power bank, not included.
Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.