Professional Documents
Culture Documents
P 0145 Railway - Gate - Control PDF
P 0145 Railway - Gate - Control PDF
BASED
AUTOMATIC RAILWAY
GATE CONTROL
Submitted by,
P.NAVEEN
S.SUDHAKAR
ARULMIGU KALASALINGAM
COLLEGE OF ENGINEERING
KRISHNANKOVIL
ABSTRACT:
The objective of this paper is to provide an automatic railway gate at a
levelcrossing replacing the gates operated by the gatekeeper. 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.
By the presently existing system once the train leaves the station, the
stationmaster informs the gatekeeper about the arrival of the train through the
telephone. Once the gatekeeper receives the information,he closes the gate depending
on the timing at which the train arrives. Hence, if the train is late due to certain
reasons,then gate remain closed for a long time causing traffic near the gates.
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. 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 .
INTRODUCTION:
In this paper we are concerned of providing an automatic railway gate
control at unmanned level crossings replacing the gates operated by gate keepers and
also the semiautomatically operated gates. 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.
SG1
SG3
SG4
B
M
rail
track
LEVEL
CROSSING
M
R1
R4
road
R3
R2
MICRO
CONTROLLER
89C51
R1 & R2
R3 & R4
The detailed description of the working of the above model can be explained
under various heads.
The road user signals are made GREEN so that they can freely move through
the gate buzzer is made OFF since there is no approach of train and road users need
not be warned.
+V
IR
transmitter
IR
receiver
Comparator
Transistor
switch
If there is no vehicle in between or beneath the gates, then the laser light from
the source falls on the LDR since there is no obstacle. Since there is no vehicle or
obstacle, signal is made GREEN for the train to pass through the gate. The same is
applied for in the other direction and SG3 and SG4 are made GREEN and gates are
closed.
When any presence of obstacle is sensed, 89C51 gives signal for obstacle to
clear the path and once the path is cleaned, motor is operated to close the gate.
Actually rotary motion occurs in a motor. This rotary motion is converted to linear
motion of the gate using a gear.
ALGORITHM:
STEP 1:
Start.
STEP 2:
STEP 3:
Make initial settings of the signals for the train and road users.
STEP 4:
Check for the arrival of the train in either direction by the sensors.
If the train is sensed go to STEP 5. Otherwise repeat STEP 4.
STEP 5:
Make the warning signal for the road users and set the signal for
the train.
STEP 6:
STEP 7:
STEP 8:
STEP 9:
Check for the train departure by the sensors. If the train sensed go
to next STEP. Otherwise repeat STEP 9.
STEP 10:
STEP 11:
Go to STEP 3.
STEP 12:
Stop.
FLOW CHART:
If arrival of
train in either
of directions
If
obstacles
If train
departure
SOURCE CODE :
ASM PROGRAMME FOR AUTOMATIC RAILWAY GATE CONTROL:
gateon
gateoff
ce
sig1r
sig1g
sig2r
sig2g
sig3r
sig3g
sig4r
sig4g
rsg5r
rsg5g
rsg6r
rsg6g
ldr1
ldr1
ldr3
ldr4
rlysens1
rlysens2
rlysens3
rlysens4
buzzer
laser
count
count2
start:
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
.reg
p3.0
p3.1
p1.2
p0.2
p0.3
p0.0
p0.1
p2.3
p2.4
p0.5
p0.4
p2.2
p2.7
p2.5
p2.6
p3.2
p3.3
p2.1
p2.0
p3.7
p3.6
p3.5
p3.4
p1.0
p1.1
23h
24h
org
jmp
org
reti
org
reti
org
reti
org
reti
org
reti
clr
mov
mov
clr
clr
clr
0000h
start
0003h
000bh
0013h
001bh
0023h
ce
p0,#00h
p2,#03h
buzzer
laser
gateon
gon:
loop15:
loop2:
mn:
main:
loop2a:
loop5:
loop6:
clr gateoff
mov count1,#ffh
mov count2,#ffh
djnz count2,loop2
djnz count1,loop15
call dly
setb sig1r
setb sig2r
setb sig4r
setb sig3r
setb rsg5g
setb rsg6g
clr buzzer
clr laser
jnb rlysens1,loop1
jb rlysens4,main
clr sig4g
setb buzzer
setb laser
setb rsg5r
clr rsg5g
setb rsg6r
clr rsg6g
jnb ldr1,loop20
jnb ldr2,loop20
jnb ldr3,loop20
jnb ldr3,loop20
jnb ldr4,loop20
call gatecls
clr buzzer
clr laser
clr sig3r
clr sig4r
setb sig4g
setb sib3g
jb rlysens2,loop5
jnb rlysens2,loop6
clr sig3g
setb sig3r
clr sig4g
setb sig4r
clr rsg5r
clr rsg6r
setb rsg5g
setb rsg6g
call delay
call gateopen
call delay
clr rsg5r
clr rsg6r
loop20:
loop21:
loop1:
loop24:
loop9:
loop10:
setb rsg5g
setb rsg6g
call delay
call delay
jmp mn
setb buzzer
setb laser
setb sig3r
setb sig2r
jnb ldr1,loop21
jnb ldr2,loop21
jnb ldr3,loop21
jnb ldr4,loop21
clr buzzer
clr laser
jmp loop2a
setb sig2r
clr sig1g
setb buzzer
setb laser
setb rsg5r
clr rsg5g
setb rsg6r
clr rsg6g
jnb ldr1,loop23
jnb ldr2,loop23
jnb ldr3,loop23
jnb ldr4,loop23
call gatecls
clr buzzer
clr laser
setb sig1g
clr sig1r
setb sig2g
clr sig2r
call delay
setb rsg5r
setb rsg6r
jb rlysens3,loop9
jnb rlysens3.loop10
call delay
call gateopen
clr buzzer
clr laser
clr sig1g
clr sig2g
setb sig1r
setb sig2r
clr rsg5r
clr rsg6r
loop23:
loop26:
gateopen:
gatecls:
delay:
ji:
bala:
riju:
dly:
kr:
setb rsg5g
setb rsg6g
call delay
call delay
jmp mn
setb buzzer
setb sig3r
setb sig2r
jnb ldr1,loop26
jnb ldr2,loop26
jnb ldr3,loop26
jnb ldr4,loop26
clr buzzer
jmp loop24
setb gateon
clr gateoff
call delay
clr gateon
ret
setb gateoff
clr gateon
call delay
clr gateoff
ret
mov 50h,#04h
mov 51h,#f0h
mov 52h,#ffh
djnz 52h,riju
djnz 51h,bala
djnz 50h,ji
ret
mov 53H,#50H
djnz 53h,kr
ret
MICRO
CONTROLLER
89C51
CROSSING
LEVEL
FUTURE ENHANCEMENT:
This paper has satisfactorily fulfilled the basic things such as
prevention of accidents inside the gate and the unnecessity of a gatekeeper. But still
the power supply for the motor operation and signal lights. It can be avoided and a
battery charged by means of a solar cell. It can be used directly during the daytime
and by charging the battery during night. Hence this arrangement can be used in
remote areas where the power supply cant be expected. The obstacle detection part
can be implemented using Fuzzy logic. As it thinks in different angles or aspects, the
system works still more efficiently.