Automatic Railway Gate Control & Track Switching
by Ranjith | November 6th, 2008.Hardware Description
The project consists of four main parts:
- 8051 microcontroller
- IR Transmitter
- IR Receiver
- Stepper Motor Circuit
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.

Block diagram of 8051 Microcontroller
IR Circuits
This circuit has two stages: a transmitter unit and a receiver unit. The transmitter unit consists of an infrared LED and its associated circuitry.
IR Transitter
The transmitter circuit consists of the following components:
- IC 555
- Resistors
- Capacitors
- IR LED
The IR LED emitting infrared light is put on in the transmitting unit. To generate IR signal, 555 IC based astable multivibrator is used. Infrared LED is driven through transistor BC 548.
IC 555 is used to construct an astable multivibrator which has two quasi-stable states. It generates a square wave of frequency 38kHz and amplitude 5Volts. It is required to switch ‘ON’ the IR LED.

IR Transmitter
IR Receiver
The receiver circuit consists of the following components:
- TSOP1738 (sensor)
- IC 555
- Resistors
- 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.

IR Receiver
Stepper motor circuit

Stepper motor circuit
Here a stepper motor is used for controlling the gates. A stepper motor is a widely used device that translates electrical pulses into mechanical movement. They function as their name suggests – they “step” a little bit at a time. Steppers don’t simply respond to a clock signal. They have several windings which need to be energized in the correct sequence before the motor’s shaft will rotate. Reversing the order of the sequence will cause the motor to rotate the other way.
Pages: 1 2




















July 3rd, 2010 at 11:57 pm
sir pls send the details of this project
July 9th, 2010 at 12:40 pm
sir,
This seems to be an interesting project. So can u kindly guide me with the details of this project?
July 15th, 2010 at 4:13 pm
hey i lik tis project pls send me all details so that i can paper presentation in my college
July 18th, 2010 at 8:44 pm
sir pls can u send me full details abt tis
July 19th, 2010 at 12:17 pm
Please send me the complete details including description & circuit diagrams, so that i can do it as a project in final year.
July 22nd, 2010 at 3:20 pm
Please send me the complete details including description & circuit diagrams, so that i can do it as a project in final year.
July 22nd, 2010 at 3:22 pm
Please send me the complete details including description & circuit diagrams, so that i can do it as a project in final year.i want to do this project
July 24th, 2010 at 10:56 am
sir,
This seems to be an interesting project. So can u kindly guide me with the details of this project?
July 24th, 2010 at 10:59 am
Plz send me the whole detail of dis project…i want to make dis project
as a my final year project…
July 26th, 2010 at 10:49 am
you have done a good job
we r really impressed with your work
Plz send complete information about this project
July 27th, 2010 at 8:56 am
respected sir,
please send me the details of the project