Beruflich Dokumente
Kultur Dokumente
POLYTECHNIC, NILOKHERI
Submitted by:
UDIT GABA
13009100103
SHUBHAM KAMRA
13009100095
SURENDER RAJPUT
13009100102
SATPREET
13009100132
Guided By:
Submitted to:
MRS.SAVITA(Lect.)
MR.JWALA PRASAD
(HOD ECE)
CERTIFICATE
This is to certify that the report entitled AUTOMATIC RAILWAY GATE CONTROL WITH
HIGH ALERTING SYSTEM is a bonafide record of the major project done by UDIT GABA
(Roll No.13009100103) , SHUBHAM KAMRA(Roll No.13009100095) , SURENDER
RAJPUT (Roll No.13009100102) ,SATPREET (Roll No.13009100132) under my supervision
and guidance, in partial fulfillment of the requirements for the award of Diploma in Electronics
and Communication Engineering from G.B.N. Govt.Polytechnic, Nilokheri for the year 2015-16.
MRS.SAVITA(Lect.)
MRS.HARJEET KAUR(W/s Inst.)
MR.JWALA PRASAD
(HOD ECE)
ACKNOWLEDGEMENT
We would like to express our sincere gratitude to our guide, Mrs.Harjeet Kaur , Workshop
Instructor and Mrs.Savita, Lecturer, Department of Electronics and Communication Engineering,
G.B.N. Govt. Polytechnic, Nilokheri for allowing us to undertake this project and for his valuable
suggestions, guidance and support during the course of work.
We also want to thank our evaluator Sh.Jwala Prasad, HOD-ECEDept. for giving us a chance to
carry out this project.
Finally, we thank God for enabling us to carry out our work without hassles.
ABSTRACT
This project work aims at the design, development and testing of working model entitled
Automatic Railway Gate Controller. This paper is to provide an automatic railway gate at a level
crossing replacing the gates operated by the gatekeeper. It is basically related to Radio
communication and signaling system. The points or places where the Railway track crosses the
road are called level crossings. Level crossings cannot be used simultaneously both by road
traffic and trains, as this result in accidents leading to loss of precious lives. This type of gates
can be employed in an unmanned level crossing where the chances of accidents are higher and
reliable operation is required. Since, the operation is automatic; error due to manual operation is
prevented. The model of railway track controller is designed by using Atmel 89S52
microcontroller, IR sensors and LDR to avoid railway accidents. By employing the automatic
railway gate control at the level crossing the arrival of the train is detected by the sensor placed
near to the gate. Hence, the time for which it is closed is less compared to the manually operated
gates and also reduces the human labour. Automatic railway gate control is highly economical
microcontroller based arrangement, designed for use in almost all the unmanned level crossings
in the country.
Keywords: LED, Atmel 89s52 Microcontroller, IR Transceiver, Automatic railway gate control
system, LDR.
INDEX
S.no
List of contents
page No
1) Introduction
i. Introduction
ii. Block diagram & Description
05
07
2) Introduction to microcontroller
i. Introduction to micro controller
ii. AT 89S52 Microcontroller
08-09
10-14
3) DC motor
i. Introduction to DC motor
ii. Types & applications.
15-17
18 -19
4) L293D IC
i. Introduction to L293D
ii. Pin description of L293D
20-21
22-24
5) LM 358 IC
i. LM 358 & Features
25-27
6) Infrared Sensors
i. Infrared sensors
34-35
36-38
39-40
41
9) Conclusion
42-43
10) Bibliography
11)
44-45
CHAPTER 1
INTRODUCTION
1.1
INTRODUCTION
Aim of this project is to control the unmanned rail gate automatically using embedded platform.
Today often we see newspapers very often about the railway accidents happening at un- attended
railway gates. Present project is designed to avoid such accidents if implemented in spirit. This
project is developed in order to help the INDIAN RAILWAYS in making its present working
system a better one, by eliminating some of the loopholes existing in it. Based on the responses
and reports obtained as a result of the significant development in the working system of INDIAN
RAILWAYS, this project can be further extended to meet the demands according to situation.
This can be further implemented to have control room to regulate the working of the system.
Thus becomes the user friendliness.
This system is to manage the control system of railway gate using the microcontroller. The main
purpose of this system is about railway gate control system and level crossing between railroad
and highway for decreasing railroad-related accident and increasing safety. In addition, it also
provides safety road users by reducing the accidents that usually occur due to carelessness of
road users and errors made by the gatekeepers.
In this project AT89s52 Micro controller Integrated Chip plays the main role. The program for
this project is embedded in this Micro controller Integrated Chip and interfaced to all the
peripherals. The timer program is inside the Micro controller IC to maintain all the functions as
per the scheduled time. Keil compiler is used for the making of code and hex file.
CHAPTER 2
INTRODUCTION TO MICROCONTROLLER
ADVANTAGES OF MICROCONTROLLER:
A designer will use a Microcontroller to
1. Gather input from various sensors
2. Process this input into a set of actions
3. Use the output mechanisms on the Microcontroller to do something useful
4. RAM and ROM are inbuilt in the MC.
5. Multi machine control is possible simultaneously.
6. ROM, EPROM, [EEPROM] or Flash memory for program and operating parameter
storage.
Examples:
8051, 89C51 (ATMAL), PIC (Microchip), Motorola (Motorola), ARM Processor.
Applications: Cell phones, Computers, Robots, Interfacing to two pcs.
Watchdog Timer
2.2.2 Architecture
P.6
P.7
Pin ( 21 28 ) Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull ups. Port 2
emits the high-order address byte during accesses to external memory that use 16-bit addresses.
In this application, it uses the strong internal pull ups when emitting 1s.
Pin (10 17) Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull ups. It also serves
the functions of various special features of the 80C51 Family as follows:
Port Pin Alternate Function
P3.0- RxD (serial input port)
P3.1 -TxD (serial output port)
P3.2 -INT0 (external interrupt 0)
P3.3- INT1 (external interrupt 1)
P3.4 -T0 (timer 0 external input)
P3.5 -T1 (timer 1 external input)
CHAPTER 3
DC MOTOR
DC Motor
3.1 Introduction to DC motor:
Almost every mechanical movement that we see around us is accomplished by an electric motor.
Motors take electrical energy and produce mechanical energy.
A direct current (DC) motor is a fairly simple electric motor that uses electricity and a
magnetic field to produce torque, which causes it to turn. At its most simple, it requires two
magnets of opposite polarity and an electric coil, which acts as an electromagnet. The repellent
and attractive electromagnetic forces of the magnets provide the torque that causes the motor to
turn.
3.2 Construction
DC motors consist of one set of coils, called armature winding, inside another set of coils or a
set of permanent magnets, called the stator. Applying a voltage to the coils produces a torque in
the armature, resulting in motion.
Stator
winding) is wound around a magnetic material that forms part of the stator.
Rotor
The rotor is composed of windings (called armature windings) which are connected to the
external
Both stator and rotor are made of ferromagnetic materials. The two are separated by airgap.
Winding
A winding is made up of series or parallel connection of coils.
Armature winding - The winding through which the voltage is applied or induced.
Field winding - The winding through which a current is passed to produce flux (for the
electromagnet)
The direction of rotation of a this motor is given by Flemings left hand rule, which states that
if the index finger, middle finger and thumb of your left hand are extended mutually
perpendicular to each other and if the index finger represents the direction of magnetic field,
middle finger indicates the direction of current, then the thumb represents the direction in which
force is experienced by the shaft of the dc motor.
Structurally and construction wise a direct current motor is exactly similar to a DC generator,
but electrically it is just the opposite. Here we unlike a generator we supply electrical energy to
the input port and derive mechanical energy from the output port.
3. Series motor: the stator and rotor windings are connected in series. Thus the torque is
proportional to I2 so it gives the highest torque per current ratio over all other dc motors.
It is therefore used in starter motors of cars and elevator motors (p. 563 Chapman, 4e,
2005 McGrow Hill).
4. Permanent Magnet (PMDC) motors: The stator is a permanent magnet, so the motor is
smaller in size.
of shunt and series windings, if the shunt and series windings add up together, the motor
is called comulatively compounded. If they subtract from each other, then a differentially
compounded motor results, which is unsuitable for any application.
No load condition:
a) 2800rpm
b) 0.017A current
3.6 Applications:
1. The series DC motor is an industry workhorse for both high and low power, fixed and
variable
speed
electric
drives.
CHAPTER 4
L293D MOTOR DRIVER
4. The datasheet also mentions an "over temperature protection" built into the IC. This
means an internal sensor senses its internal temperature and stops driving the motors if
the temperature crosses a set point
5. Another major feature of L293D is its internal clamp diodes. This flyback diode helps
protect the driver IC from voltage spikes that occur when the motor coil is turned on and
off (mostly when turned off)
6. The logical low in the IC is set to 1.5V. This means the pin is set high only if the voltage
across the pin crosses 1.5V which makes it suitable for use in high frequency applications
like switching applications (upto 5KHz)
7. Lastly, this integrated circuit not only drives DC motors, but can also be used to drive
relay solenoids, stepper motors etc.
Function
Name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Enable 1,2
Input 1
Output 1
Ground
Ground
Output 2
Input 2
Vcc 2
Enable 3,4
Input 3
Output 3
Ground
Ground
Output 4
Input 4
Vcc 1
2. Pin4, Pin5, Pin12 and Pin13 are ground pins which should ideally be
connected to microcontroller's ground.
3. Pin2, Pin7, Pin10 and Pin15 are logic input pins. These are control pins
which should be connected to microcontroller pins. Pin2 and Pin7 control
the first motor (left); Pin10 and Pin15 control the second motor(right).
4. Pin3, Pin6, Pin11, and Pin14 are output pins. Tie Pin3 and Pin6 to the first
motor, Pin11 and Pin14 to second motor.
CHAPTER 5
LM 358 IC
LM 358:
5.1 Introduction:
LM 358:
These amplifiers are designed to specifically to operate from a solitary supply over a wide
range of voltages. Also can function when the difference between the two supplies is 3V to 30V
and VCC is at least 1.5V more positive than the input common mode voltage.
Pin Descriptions
V+ = Supply voltage
GND = Gnd (0V) connection for supply voltage
Input(s) = Input to Op-Amp
Features:
Unique features:
In the linear mode, the input common-mode voltage range includes ground and the
output voltage can also swing to ground, even though operated from only a single power
supply voltage. The unity gain crossover frequency and the input bias current are
temperature-compensated.
Applications:
In Transducer amplifiers.
CHAPTER 7
INFRARED SENSORS
INFRARED SENSORS
Introduction
IR transceiver is used here for determining the arrival and departure of train. This is done by
using IR Transceiver in which presence of train is detected as logical zero.
A. Transmitter
The Infrared Emitting Diode (IR333/H0/L10) is a high intensity diode, molded in a blue
transparent package. The device is spectrally matched with phototransistor, photodiode and IR
receiver module. It finds applications in IR remote control units, smoke detectors, free air
transmission systems etc.
B. Receiver
The IR LED converts the incident IR radiations to an equivalent electric current which when
passed through a resistor results in a certain amount of voltage drop. This value of voltage will
depend upon the intensity of incident IR radiations or in other words, the distance between IR
transmitter and receiver. The receiver is connected in reverse bias n the circuit. The IR rays
emitted by the transmitter get reflected back after hitting the target. Receiver coverts this
received radiations to a corresponding electric current.
CHAPTER 8
REGULATED POWERSUPPLY
This type of regulation is ideal for having a simple variable bench power supply.
Actually this is quite important because one of the first projects a hobbyist should
undertake is the construction of a variable regulated power supply. While a dedicated supply
is quite handy e.g 5V or 12V,its much handier to have a variable supply on hand, especially for
testing.
Most digital logic circuits and processors need a 5 volt power supply. To use these parts we
need to build a regulated 5 volt source. Usually you start with an unregulated power to make a 5
volt power supply, we use a LM7805 voltage regulator IC (Integrated Circuit).
.
Fig: 8.1.1 LM 7805 block diagram
the Common pin and then when you turn on the power, you get a 5 volt supply from the Output
pin.
Circuit features:
Brief description of operation: Gives out well regulated +5V output, output
current capability of 100mA.
Circuit protection: Built-in overheating protection shuts down output when
regulator IC gets too hot.
Circuit complexity: Very simple and easy to build.
Circuit performance: Very stable +5V output voltage, reliable operation
Availability of components: Easy to get, uses only very common basic
components.
Design testing: Based on datasheet example circuit, I have used this circuit
successfully as part of many electronic projects.
Applications: Part of electronics devices, small laboratory power supply
CHAPTER 9
WORKING OF PROJECT AND FLOW CHART
It deals with two things. Firstly, it deals with the reduction of time for which the gate is
being kept closed. And secondly, to provide safety to the road users by reducing the accidents
that usually occur due to carelessness of road users and at times errors made by the gatekeepers.
By employing the automatic railway gate control at the level crossing the arrival of train is
detected by the sensor placed on either side of the gate at about 4km from the level crossing.
Once the arrival is sensed, the sensed signal is sent to the microcontroller and it checks for
possible presence of vehicle between the gates, again using sensors. Subsequently, buzzer
indication and light signals on either side are provided to the road users indicating the closure of
gates. Once, no vehicle is sensed in between the gate the motor is activated and the gates are
closed.
But, for the worst case if any obstacle is sensed, it is indicated to the train driver by signals
(RED) placed at about 2km, so as to bring it to halt well before the level crossing. When no
obstacle is sensed GREEN light is indicated, and the train is to free to move. The departure of the
train is detected by sensors placed at about 1km from the gate. The signal about the departure is
sent to the microcontroller, which in turn operates the motor and opens the gate. Thus, the time
for which the gate is closed is less compared to the manually operated gates.
If arrival of
train in either
of directions
If
obstacles
If train
departure
CHAPTER 10
CONCLUSION
10.1 CONCLUSION:
From the above discussion and information of this system we, upto now surely comes
to know that it is highly reliable effective and economical at dense traffic area, sub urban area
and the route where frequency of trains is more.
As it saves some auxiliary structure as well as the expenditure on attendant it is
more economical at above mentioned places than traditional railway crossing gate system. We
know that though it is very beneficial but it is also impossible to install such system at
each and every places, but it gives certainly a considerable benefit to us, thereby to our nation.
CHAPTER 11
BIBLIOGRAPHY
REFERENCES:
i) Krishna,
ShashiYadav
Microcontroller,
and
Nidhi,
Automatic
Railway
Gate
Control
Using
December 2013.
ii) Ahmed Salih Mahdi. Al-Zuhairi,Automatic Railway Gate and Crossing Control based
Sensors &Microcontroller , in International Journal of Computer Trends and Technology
(IJCTT) Volume 4 Issue 7July 2013.
iii) J. Banuchandar, V. Kaliraj, P. Balasubramanian, S. Deepa, N. Thamilarasi, Automated
Unmanned Railway Level Crossing System, in International Journal of Modern
Engineering Research (IJMER)Volume.2, Issue.1, Jan-Feb 2012 .
iv) The 8051 Microcontroller and Embedded Systems By Muhammad Ali Mazidi
v) Fundamentals Of Embedded Software By Daniel W Lewis
vi) M. Kottalil1 ,Abhijith S2, Ajmal M M3, Abhilash L J.4,Ajith Babu, Automatic Railway
Gate Control System, in International Journal of Advanced Research in Electrical,
vii) Electronics and Instrumentation Engineering (IJAREEIE)- Vol. 3, Issue 2, February 2014.
viii)