Automatic Railway Gate Control & Track Switching
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active In SP

Posts: 4
Joined: Nov 2010
19-01-2011, 03:17 PM

sir i am doing Automatic Railway Gate Control & Track Switching as a my final year project and implimentation. but i dont know how to program 8051 to control stepper motor if ir sensor detect the object, so please send full project and implimentation report to my mail id
seminar surveyer
Active In SP

Posts: 3,541
Joined: Sep 2010
20-01-2011, 11:52 AM

for more on this topic, please go through the following thread.

project girl

Posts: 10,114
Joined: Nov 2012
19-11-2012, 03:39 PM

Automatic Railway Gate Control and Track Switching

.docx   Automatic Railway.docx (Size: 376.84 KB / Downloads: 16)


Present project and implimentation is designed using 8051 microcontroller to avoid railway accidents happening at unattended railway gates, if implemented in spirit. This project and implimentation 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 and implimentation. 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.

Gate Control:

Railways being the cheapest mode of transportation are preferred over all the other means .When we go through the daily newspapers we come across many railway accidents occurring at unmanned railway crossings. This is mainly due to the carelessness in manual operations or lack of workers. We, in this project and implimentation has come up with a solution for the same. Using simple electronic components we have tried to automate the control of railway gates. As a train approaches the railway crossing from either side, the sensors placed at a certain distance from the gate detects the approaching train and accordingly controls the operation of the gate. Also an indicator light has been provided to alert the motorists about the approaching train.

Track Switching

Using the same principle as that for gate control, we have developed a concept of automatic track switching. Considering a situation wherein an express train and a local train are travelling 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. Indicator lights have been provided to avoid collisions .Here the switching operation is performed using a stepper motor. In practical purposes this can be achieved using electromagnets.

8051 Microcontroller

The I/O ports of the 8051 are expanded by connecting it to an 8255 chip. The 8255 is programmed as a simple I/O port for connection with devices such as LEDs, stepper motors and sensors. More details of the 8255 are given later.
The following block diagram shows the various devices connected to the different ports of an 8255. The ports are each 8-bit and are named A, B and C. The individual ports of the 8255 can be programmed to be input or output, and can be changed dynamically. The control register is programmed in simple I/O mode with port A, port B and port C (upper) as output ports and port C (lower) as an input port.

IR Receiver

The receiver circuit consists of the following components:
1. TSOP1738 (sensor)
2. IC 555
3. Resistors
4. Capacitors
The receiver unit consists of a sensor and its associated circuitry. In receiver section, the first part is a sensor, which detects IR pulses transmitted by IR-LED. Whenever a train crosses the sensor, the output of IR sensor momentarily transits through a low state. As a result the monostable is triggered and a short pulse is applied to the port pin of the 8051 microcontroller. On receiving a pulse from the sensor circuit, the controller activates the circuitry required for closing and opening of the gates and for track switching. The IR receiver circuit is shown in the figure below.
Active In SP

Posts: 3
Joined: Oct 2011
19-11-2012, 05:42 PM

For program send mail to

abhitandon80 (at)

Important Note..!

If you are not satisfied with above reply ,..Please


So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page

Quick Reply
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  automatic scrap collecting vehicle Guest 3 889 30-09-2015, 11:34 AM
Last Post: mkaasees
Video fully automatic aquarium using arduino Guest 1 1,025 18-08-2015, 01:56 AM
Last Post: Guest
  automatic scrap collecting vehicle subbu356 3 2,189 22-04-2015, 02:52 PM
Last Post: mkaasees
  sms based automatic two wheeler locking system Guest 4 2,179 18-09-2014, 02:22 PM
Last Post: Radhika.m
  automatic room light controller with bi-directional visitor counter at89s52 coding anjesh1146 2 1,938 06-08-2014, 11:22 PM
Last Post: shiju nair
  Checking and auto control of water level using wireless sensor. Guest 1 1,495 01-08-2014, 06:01 PM
Last Post:
  automatic transformer distribution and load sharing system Guest 3 2,893 21-01-2014, 10:03 AM
Last Post:
  solar power remote control bomb detecting robot manjubannikoppakoppal 1 1,561 17-01-2014, 07:58 PM
Last Post: Guest
  automatic ambulance rescue system rranjith16 1 970 10-01-2014, 04:26 PM
Last Post: seminar project topic
  automatic load sharing of transformer using gsm Guest 0 842 14-11-2013, 12:12 PM
Last Post: Guest