Research Paper
Research Paper
15–19, 2018
Research Article
Selected Paper from the International Conference on Engineering Innovation 2016 (ICEI 2016)
Muhammad Mansattha*
Department of Electrical Engineering, Faculty of Engineering, Princess of Naradhiwas University, Naradhiwas,
Thailand
Watit Benjapolakul
Department of Electrical Engineering, Faculty of Engineering, Chulalongkorn University, Bangkok, Thailand
Abstract
This paper presents a development of an automatic railway crossing system using a wireless sensor network
based on ZigBee/IEEE802.15.4 standard. The existing works on automatic railway crossing system apply
some technologies such as Fiber Optic, Coaxial Cable, and General Packet Radio Services (GPRS). However,
they require high cost in their operation and complex installation. ZigBee allows us to develop a system with
low power, low price that is suitable for automatic railway crossing system. We develop a new system that
consists of four main parts, i.e. railway detector, ZigBee Wireless Communication Device, railway crossing
gate, and monitor system. We propose an optimal recovery path routing algorithm based on ZigBee protocol in
API (Application Programming Interface) mode to ensure the reliable data transmission from the source node
to the destination node. Each node has two paths connecting to the neighboring nodes, where the transmission
probability to the closer neighboring nodes is higher than that to farther nodes. The data are sent by the sensor
node to monitor system and are displayed as the status of network link, status of the train detection, status of
the railway crossing gate, and status of the sensors node in real time. From the data displayed in the monitor,
we can also detect if there are any malfunctions on the sensor nodes. So we can fix the problem immediately.
Moreover, the hardware system consists of solar cell panel, charger control unit, and battery storage designed
for self- energy management and low power consumption. These features are suitable for installation in real
environment. As a prototype of an automatic railway crossing system, the developed system in this project is
very useful for further development and application in railway crossing system management in Thailand.
Please cite this article as: M. Mansattha and W. Benjapolakul, “Automated railway crossing system using
ZigBee/IEEE 802.15.4 standard,” KMUTNB Int J Appl Sci Technol, vol. 11, no. 1, pp. 15–19, Jan.–Mar. 2018.
15
M. Mansattha and W. Benjapolakul, “Automated Railway Crossing System Using ZigBee/IEEE 802.15.4 Standard.”
16
KMUTNB Int J Appl Sci Technol, Vol. 11, No. 1, pp. 15–19, 2018
2 Start
1 3 5
protocol in API (Application Programming Interface) Delay 10s for opening railway crossing
gate
mode to ensure the reliable data transmission from the
source node to the destination node. Each node has
two paths connecting to the neighboring nodes, where Open railway crossing gate and turn on
red light
the transmission probability to the closer neighboring
nodes is higher than that to farther nodes. Relays in
between the source and destination are placed in such Destination node send status of railway
gate to every node a nd turn on red light
a way that every node can transmit its information to
next two nodes. In case the first node is not working,
Destination node send
still message can be passed to the second node. This data to the monitoring
redundancy is used to bring reliability into the system. unit
Figure 2 shows the above mentioned scenario. Figure 3: Flowchart of control system.
2.2.1 Flow Chart status of railway gate to every node and turn on green
light. Thirdly, Destination node read the IR Sensor to
Software design details are shown in Figure 3 Firstly, open the railway crossing gate if have a tain detection
Destination node sent start frame to source node for at destination node the gate will delay time 10 second
beginning operations. Secondly, Destination node and openning railway crossing gate and turn on red
request data (detection train) from source node if have light. Finally, Destination node send status of railway
a train detection at source node the gate will close and gate to every node and turn on red light and then the
switch on yellow light. After that destination node send destination node send data to the monitoring unit.
17
M. Mansattha and W. Benjapolakul, “Automated Railway Crossing System Using ZigBee/IEEE 802.15.4 Standard.”
332 m Destination
Gate Open 207 m Destination Gate Open
Gate Close Gate Close
Warning Relay 2
Warning
Relay 2 663 m
996 m 207 m
332 m
1796 m 1463 m
Relay 1 Relay 1
332 m 249 m
Source Source
800 m 800 m
102 105
Percentage of Received Packet (%)
100
100 (414,100) (663,100)
(664,100) (996,100) 95
(456,100)
98 90
(664,100)
96 85
Des, R1 80 Des, R1
94 R2, Src R2, Src
75
Des, R, R1, Src Des, R, R1, Src
92 70
90 65
60
88 55
0 200 400 600 800 1000 1200
0 200 400 600 800
Distance (Meter) Distance (Meter)
Figure 4: Packet loss rate in case of straight line of sight. Figure 5: Packet loss rate in case of straight non-line of sight.
Gate Open
3 Testting Results Gate Close
Warning
800 m
0
when both the nodes are in the straight line but there is 100
(634,100)
(442,100)
some object (for example tree) is blocking their way. 95
(384,100)
18
KMUTNB Int J Appl Sci Technol, Vol. 11, No. 1, pp. 15–19, 2018
References
19