Automatic Train Traffic Gate Control

Code 327 Automatic Train Traffic Gate Control

7,400.00 5,400.00

Automatic Railway Gate Control System is a simple but very useful project, which help is automatically opening and closing the railway gate upon detecting arrival or departure of the train.In general, Railway gates are opened or closed manually by a gate keeper. The information about arrival of train for opening or closing of door is received from nearby station. But some railway crossings are totally unmanned and many railway accidents occur at these unmanned level crossings.

Kits DescriptionPrice
If You Are An Enthusiast

Do It Yourself Kit
Ready-made Project, PCB, Components, Circuit Diagram, Program, Report, Explanatory Video

8,200.00 6,200.00
If You Are Short On Time

Ready-made Project, Circuit Diagram, Program, Report, Explanatory Video

7,400.00 5,400.00
For Institutions

Project Kit
PCB, Components, Circuit Diagram, Program, Report, Explanatory Video

6,900.00 4,900.00
For Documentation

Circuit Diagram, Program, Report, Explanatory Video

3,100.00 2,000.00

PCB, Circuit Diagram

2,100.00 1,000.00


Present project is designed using 8051 microcontroller to avoid railway accidents happening at unattended railway gates, if implemented in spirit. This project utilizes two powerful IR transmitters and two receivers; one pair of transmitter and receiver is fixed at up side (from where the train comes) at a level higher than a human being in exact alignment and similarly the other pair is fixed at down side of the train direction. Sensor activation time is so adjusted by calculating the time taken at a certain speed to cross at least one compartment of standard minimum size of the Indian railway. We have considered 5 seconds for this project. Sensors are fixed at 1km on both sides of the gate. We call the sensor along the train direction as ‘foreside sensor’ and the other as ‘aft side sensor’. When foreside receiver gets activated, the gate motor is turned on in one direction and the gate is closed and stays closed until the train crosses the gate and reaches aft side sensors. When aft side receiver gets activated motor turns in opposite direction and gate opens and motor stops. Buzzer will immediately sound at the fore side receiver activation and gate will close after 5 seconds, so giving time to drivers to clear gate area in order to avoid trapping between the gates and stop sound after the train has crossed.

The same principle is applied for track switching. Considering a situation wherein an express train and a local train are traveling in opposite directions on the same track; the express train is allowed to travel on the same track and the local train has to switch on to the other track. Two sensors are placed at the either sides of the junction where the track switches. If there’s a train approaching from the other side, then another sensor placed along that direction gets activated and will send an interrupt to the controller. The interrupt service routine switches the track.  Indicator lights have been provided to avoid collisions. Here the switching operation is performed using a stepper motor. Assuming that within a certain delay, the train has passed the track is switched back to its original position, allowing the first train to pass without any interruption. This concept of track switching can be applied at 1km distance from the stations.


  • Whenever Train Comes between 1st IR, this gives signal to microcontroller and microcontroller gives the command to Motor to close the gate.
  • Whenever Train passes to 2nd IR, this gives the signal to the microcontroller then microcontroller gives command to motor open the gate.



  • Microcontroller
  • LCD
  • Transformer
  • L293D IC
  • Buzzer
  • Relay
  • IR Sensors
  • Motor


  • Eagle
  • Keil



There are no reviews yet.

Be the first to review “Automatic Train Traffic Gate Control”

Your email address will not be published. Required fields are marked *