Automatic Ambulance Rescue System

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 7

International Journal of Advanced Technology & Engineering Research (IJATER)

AUTOMATIC AMBULANCE RESCUE SYSTEM


K.ATHAVAN; S.JAGADEESHWARAN, G.BALASUBRAMANIAN, N.DINESH, G.ABHILASH, G.GOKUL
Department of electronics & comm.Engg
Sri Venkateshwara College of Engg
Chennai-73, India
athavan1991@gmail.com, jagadeeshsvce90@gmail.com, balasubramani1114@gmail.com

ordinates are also stored in the database. Thus using these


Abstract data the ambulance is guided to the hospital by the server
through the shortest route.
Traffic congestion and tidal flow management were rec- .
ognized as major problems in modern urban areas, which
have caused much thwarting for the ambulance. Moreover Automatic Ambulance Rescue System
road accidents in the city have been incessant and to bar the
loss of life due to the accidents is even more crucial. To im- Our system consists of four main units, which coordinates
plement this we introduce a scheme called AARS (Automat- with each other and makes sure that ambulance reaches the
ic ambulance rescue system). The main theme behind this hospital without any time lag. Thus our system is divided
scheme is to provide a smooth flow for the ambulance to into following four units,
reach the hospitals in time and thus minifying the expiration.  The Vehicle Unit
The idea behind this scheme is to implement a ITS which  The Main Server
would control mechanically the traffic lights in the path of  The Ambulance Unit
the ambulance. The ambulance is controlled by the central  The Node Circuit.(Traffic Junction Unit).
unit which furnishes the most scant route to the ambulance
and also controls the traffic light according to the ambulance The vehicle unit installed in the vehicle senses the accident
location and thus reaching the hospital safely. The server and sends the location of the accident to the main server. The
also determines the location of the accident spot through the main server finds the nearest ambulance to the accident spot
sensor systems in the vehicle which encountered the acci- and also the shortest path between the ambulance, acci-dent
dent and thus the server walks through the ambulance to the spot and the nearest hospital. The server then sends this path
spot. This scheme is fully automated, thus it finds the acci- to the ambulance. Also using this information the server
dent spot, controls the traffic lights, helping to reach the controls all the nodes in the path of ambulance and make it
hospital in time.. ON, which ensures that the ambulance reaches the hospital
without delay. The architecture of this system is shown in
Introduction the fig 1.

There is loss of life due to the delay in the arrival of am-


bulance to the hospital in the golden hour. This delay is
mainly caused by the waiting of the ambulance in the traffic
signals. It would be of great use to the ambulance if the traf- NODE CIRCUIT
fic signals in the path of the hospital are ON. Thus we pro-
MAIN GSM MODEM
pose a new design for automatically controlling the traffic VEHICLE
signals and achieving the above mentioned task so that the UNIT SERVER
MICRO CON-
ambulance would be able to cross all the traffic junctions TROLLER
without waiting. Every traffic junction will have a controller
controlling the traffic flow. The traffic junctions are referred AMBULANCE TRAFFIC
to as nodes and each node will have a GSM modem con- UNIT SIGNAL
nected to the controller. The nodes are controlled by a main
server by sending the control messages to their GSM mod-
ems. When a node is controlled and its traffic signal is made Fig .1
to be green for the ambulance to pass through without wait-
ing, it is said to be in ON STATE. For easy access the server
maintains a database for each node, and hence each node
will have a unique id for addressing it and its GPS co-

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 86


International Journal of Advanced Technology & Engineering Research (IJATER)

Vehicle Unit
According to our system, every vehicle should have a
Main Server
vehicle unit. The vehicle unit consists of a vibration sensor,
controller, siren, a user interface, GPS system and a GSM The main server is the central brain of our ITS. It com-
module. The vibration sensor used in the vehicle will conti- municates as well as controls every part of the system [3].
nuously sense for any large scale vibration in the vehicle [1]. The server objectives can be mainly classified into:
The sensed data is given to the controller.  FINDING THE NEAREST AMBULANCE TO THE
ACCIDENT SPOT
 SENDING CO-ORDINATES TO THE AMBULANCE
 CONTROLLING THE NODES IN THE SHORTEST
PATH

A. Finding the nearest Ambulance to the


accident spot.
When a vehicle meets with accident, it immediately
sends its GPS location to the Main server. The server main-
tains a database of the ambulances available. The server se-
lects the nearest ambulance to the accident spot using the
database containing the details of free and busy ambulances
at that point of time. Then the server scans the locations of
the free ambulances in the database. It calculates the dis-
tance between the accident spot and each ambulance. Then it
compares all the distances calculated and selects the nearest
ambulance [2].
Therefore for performing the above functions, the server
must have the following databases:
Figure 2.  An Ambulance database - contains list of free and
busy ambulances at that time.
The controller compares it with a threshold value which is an  A NODE database – The Main Server allocates a
empirical value (for an accident) and if it equals or ex-ceeds unique ID for each node and has a database to con-
that, then the controller automatically switches on a siren taining all the nodes’ IDs, GSM numbers and their
inside the vehicle. A programmed timer is also trig-gered. In GPS co ordinates.
case of a minor accident, the passenger probably would not  A Hospital database - containing their locations
need the service of the ambulance, and can there-fore switch (GPS coordinates) with their GSM numbers.
off the siren before the timer counts to zero, by resetting the
entire vehicle unit through the user interface, which is SHORTEST PATH USING DIJKSTRA:
connected to the controller. Or else, if he is uncons-cious or
fatally wounded and needs an ambulance, then the siren is As the nodes in the given region are fixed points and the
left ON and when the timer counts to zero, it would trigger distance between the nodes are predetermined, the shortest
both the GSM MODULE and the GPS SYSTEM inside the path between the nodes can be selected using the DIJKSTRA
vehicle. The GPS SYSTEM finds out the current position of algorithm. Consider a case when the ambulance travels from
the vehicle (latitude and the longitude) which is the location accident spot to the hospital. The database in the server as
of the accident spot and gives that data to the GSM said earlier contains the node and the distance between the
MODULE. The GSM MODULE sends this data to the adjacent nodes to which it is connected. The accident spot is
MAIN SERVER whose GSM number is already there in the taken as the source and the hospital is taken as the
module as an emergency number. The vehicle unit is shown destination. The node next to the accident spot and the node
in the fig 2. in the path to hospital must be traced. So that accident node
is taken as source and the hospital node is taken as des-

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 87


International Journal of Advanced Technology & Engineering Research (IJATER)

tination and the DIJKSTRA algorithm is applied for these  The STOP SIGNAL is generated when the GPS co-
nodes. There may be several paths between these nodes and ordinates of the ambulance and the node matches i.e.
the algorithm finds the shortest path. There may be one way when the ambulance crosses then node. The node then
roads along this path, therefore this must be a vector quanti- will return to its normal mode of operation.
ty. The server finds nearest node from source and marks it as
visited. Then that node is considered as source and the pro- INTERRUPT SERVICE ROUTINE ALGORITHM
cedure is continued till the destination. Initially, the source
doesn’t know the distance to destination, so it will be infinite  WAIT FOR THE RECEPTION OF START MESSAGE
and after complete computation the shortest path along with ALONG WITH THE DATA
the distance will be known  RETRIEVE THE DATA ABOUT THE SIGNAL TO
BE MADE GREEN
B. Sending Coordinates to the Ambulance  MAKE THE CORRESPONDING SIGNAL TO BE
GREEN
The server will also find the nearest hospital and  WAIT FOR THE RECEPTION OF NEXT MESSAGE
calculates the shortest path connecting the ambulance’s cur- OR STOP SIGNAL
rent location, the accident spot and the nearest hospital. The  IF THE MESSAGE IS RECEIVED RETURN TO
shortest path will contain nodes in the path. The server takes NORMAL MODE
the GPS co-ordinates of all the nodes in the shortest path By this way each node in the path to the hospital is con-
from the NODES database and along with GPS co-ordinates trolled by the server.
of the accident spot and the hospital; it transmits it to the This function can be divided into two phases:
ambulance unit in a format specified below.
The nodes’ coordinates alone are sent to the ambulance. The NODE ACCESS AND CONTROL:
format for sending the nodes’ coordinates is:
The nodes in the shortest path are accessed and controlled
X1,Y1 X2,Y2 ... ... Xn-1,Yn-1 Xn,Yn only when the ambulance reaches a distance of around
say 1km from the node. These locations are stored as the
Figure 3. 1km markings. Since the signal should not be kept in ON
state for a long time, the node access control is done in the
The last two coordinates (Xn-1, Yn-1) and (Xn, Yn) will following steps:
indicate the accident location and the hospital location re-  The server first plots a map with the nodes needed for
spectively. the shortest path and makes 1km markings for each
node.
 The locations of 1km markings’ (latitude and longitude)
C. Controlling the Nodes are taken from the map and stored in the NODES data-
base.
A node can possibly operate in two modes namely,  When the ambulance’s GPS location and location of any
the normal mode and the ambulance mode. Normal mode is one of the 1km markings matches, the correspond-ing
usual traffic control by a micro controller in a junction. In GSM ID with the signal direction from the map is taken
normal mode, traffic flow in each direction of the mode will by the server and is compared with the shortest path
be given equal importance [4]. In the ambulance mode, the nodes’ GSM IDs.
direction in which the ambulance heads is given importance  If that node is present in the path, the START SIGNAL
and is kept in the ON state, till the ambulance leaves the is sent to that GSM ID.
junction (node). This is done by  Now, the node is kept in ON state till the ambulance
 The node will receive a START SIGNAL from the main crosses the node. Once it crosses the node, the server
server as an control message which contains the direc- sends a STOP SIGNAL to the node which brings the
tion that must be kept in ON state so that the ambulance node to normal mode of operation
can pass through the junction without waiting.  The resolution of the GPS coordinates is that 1
 The direction retrieved from the control message is giv- second represents a 101.2ft in latitude and 61.6ft in
en to the micro controller. longitude. Thus in every comparison with respect to
 That particular direction is kept in the ON state as long ambulance unit, it is enough to note the GPS co-ordinate
as another message (STOP SIGNAL) is received from till the accuracy of second’s.
the main server.

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 88


International Journal of Advanced Technology & Engineering Research (IJATER)

Consider a simple case where there is intersection of three Figure 4.


junctions as shown in the figure. The two junctions are
marked as GS and GN. The distance between these two The code below is used for implementing the node control.
The ambulance mode is started when an input is got in the
junctions is less than 1km. Due to this both the junctions are
C.0 pin of the micro controller from the GSM modem. Con-
prone to be considered. Thus for instance if the ambulance is sider a signal, similar to message alert in a cell phone, is
travelleling towards the node GS, there would be three 1km given to a JK flip flop with its inputs high, so that the output
markings as the path in the direction 1 contains a four way toggles whenever a message is received. Thus when the first
junction. Also as said earlier one of the 1km markings of GN message is received, the controller enters into ambulance
comes in the same path to be travelled. When the ambulance mode. The data is collected through port D and the corres-
approaches the node GS, it also crosses GN’s 1km marking. ponding direction is put ON. When the next message is re-
ceived the controller returns back to the normal mode.
Thus this situation is rectified as follows. The node GN’s ID
is taken by the server from the database, but in actual case
this node doesn’t need to be controlled. Therefore to elimi-
nate this, the server first compares each node ID taken from
Code for Controlling the Nodes
the database with the list of nodes’ IDs in the shortest path. main () // normal mode
If the node’s ID is present in the list, only then the corre- {
sponding node is controlled. So when the GS 1km marking int i, n, x;
is reached, the green light is made ON in the direction 1 and Red(0);
the GN node is not disturbed. Thus, always the every nodes Red(1);
ID is compared with the database containing the nodes ID in Red(2);
shortest path and hence only when the particular ID is Red(3);
Green(0);
matched the node is considered and the traffic light is ad-
Dela(60);
justed according to the need. i=0;
while(1)
{
n=i mod 4;
Yellow(n);
Dela(5);
Red(n);
x= (n+1) mod 4;
Green(x);
Dela(60);
i++;
}
}

/ for switching on yellow signal in direction x


Yellow(int x)
{
switch(x):
{
case 1:port A0.A1.A2=0;
port A1=1; //yellow light in direction 1
break;
case 2: port A5.A6.A7=0;
port A6=1;
break;
case 3: port B0.B1.B2=0;
port B1=1;

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 89


International Journal of Advanced Technology & Engineering Research (IJATER)

break; Call delay; //1 sec


case 4: port B5.B6.B7=0; }
port B6=1; }
break; Ambulance () //ambulance mode
} {
} int y= port D; /* port D is input port to get the signal direc-
tion to be switched ON for the ambulance*/
// for switching on red signal in direction x Red(1); Red(2); Red(3); Red(4);
Red( int x) switch(y)
{ {
switch(x): case 1: Green (1);
{ break;
case 1: port A0.A1.A2=0; case 2: Green (2);
port A2=1; // red signal in direction 1 break;
break; case 3: Green (3);
case 2: port A5.A6.A7=0; break;
port A7=1; case 4: Green(4);
break; break;
case 3: port B0.B1.B2=0; }
port B2=1; /*wait for reception of STOP SIGNAL to return to normal
break; mode*/
case 4: port B5.B6.B7=0; while (C.0==1)
port B7=1; {
break; }
} }
}

/ for switching on green signal in direction x


Green( int x)
{
switch( x)
{
case 1: port A0.A1.A2=0;
port A0=1; //green signal in direction 1
break;
case 2: port A5.A6.A7=0;
port A5=1;
break;
case 3: port B0.B1.B2=0;
port B0=1;
break;
case 4: port B5.B6.B7=0;
port B5=1;
break;
}
}
Dela(int z) Figure 5.
{
for(int i=0 ; i<z ; i++)
{
/* check for reception of START SIGNAL for Ambulance Unit
if (C.0==1)
every second */
Ambulance ();

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 90


International Journal of Advanced Technology & Engineering Research (IJATER)

The ambulance unit has a GPS SYSTEM and a GSM makes the junction to work in ambulance mode. When the
MODEM for transmitting GPS data to the Main Server. The ambulance crosses the junction it again sends a signal
server receives the GPS data sent by the ambulance at (STOP signal) to the junction which again comes back to the
lar intervals of time. The server sends the co ordinates of all normal mode. The Table1 shows the range of GPS values of
the nodes’ in the path to the ambulance. The last two 1km marking and the traffic signal node which is stored in
nates (Xn-1, Yn-1) and (Xn, Yn) will indicate the accident the ambulance unit’s controller and compared with its loca-
location and the hospital location respectively. The ambul- tion continuously.
ance unit on receiving the co-ordinates plots them on to a
map with the last two co ordinates as the accident spot and
the hospital location to get the shortest path to the hospit-
al. S.NO LATITUDE LONGITUDE LAT LONG
(STORED) (STORED) (ACTUAL) (ACTUAL)
AMBULANCE UNIT SMS (GPS DATA)
1 7936.3400- 07958.4404 7936.3424 07958.4404
MAIN 7936.3450 (START)
GPS (START)
SYSTEM SERVER
2 7936.3568- 07958.4500 7936.3577 07958.4500
MAP COORDINATES 7936.3600 (STOP)
GSM FOR SHORTESTPATH (STOP)
MODEM Table1.Showing the GPS coordinates of stored and actual values

DISPLAY FOR
MAPPING THE
PATH

Figure 6.

Results
The model of our ITS is developed partially to some ex-
tent. Considering the cost and time constraints the ambul-
ance unit and the traffic junction (node section) have been
developed and also we have just created a database using Figure 7. The Traffic Junction Unit
visual basic( 10.0 ) in pc and we are in process of linking
together the ambulance unit and the server. But for the pro-
totype model we have linked the ambulance unit and the
traffic junction using a RF transmitter.
The Figure 7 shows the traffic signal junction with the
The Figure 8 shows the ambulance unit consisting of GPS three way lane model. This unit consists of a RF receiver
module which tracks the current position of the ambulance which also works at 433 MHz. The junction operates as per
all the time. The unit has a controller which stores the actual the data transmitted by the ambulance unit. The data re-
coordinates of the locations (1km marking and the traffic ceived by the RF receiver is transmitted to the controller at
signal node). When the GPS coordinates matches with that the rate of 3kbps. When the data received is 0, it operates in
of the stored coordinates, it is said to have reached that place the normal mode. When 1 is received, the traffic signal shifts
and then a signal is sent to the traffic junction (shown in to ambulance mode and the particular direction is made
Figure 7) using RF transmitter which works at 433 MHz green. When 2 is received, it return backs to normal mode.
.The GPS receiver have an resolution of 3m and transmits
the data serially at a baud rate of 9600bps. The LCD The Figure 9 shows the GPS module showing the coordi-
HD44780 is installed in this unit to continuously display the nates. The GPS value calculated will be in NMEA standard
positional values of the ambulance. The traffic junction has with numerous statements. A particular statement is selected,
RF receiver which receives the signal (START signal) which here we took GPGGA and the longitude and latitude values

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 91


International Journal of Advanced Technology & Engineering Research (IJATER)

are retrieved from it and displayed in the LCD by the con-


troller. The authors are thankful to IJATER Journal for the sup-
port to develop this document.

References
[1] Wang Wei, Fang Hanbo, “Traffic accident auto-
matic detection and remote alarm device”, Proceed-
ings of International Conference on Electric Infor-
mation and Control Engineering, pages: 910-913,
2011.
[2] Katsunori Tawara, Naoto Mukai, “Traffic signal
control by using Traffic congestion prediction
based on Pheromone Model”, Proceedings of 22nd
IEEE International Conference on Tools with Ar-
tificial Intelligence, pages:27-30, 2010
[3] Sara Nazari, M. Reza Meybodi, M. Ali Salehigh,
Figure 8.The Ambulance unit with GPS Sara taghipour, “An Advanced Algorithm for Find-
ing Shortest Path in Car Navigation System”, Pro-
ceedings of 1st International Conference on Intelli-
gent Network and Intelligent Systems, pages: 671-
674, 2008
[4] Xiaolin Lu, “Develop Web GIS Based Intelligent
Transportation Application Systems with Web Ser-
vice Technology”, Proceedings of 6th International
Conference on ITS Telecommunications, pages:
159-162, 2006.
[5] Zhaosheng Yang. “Study on the schemes of traffic
signal timing for Priority Vehicles Based on Navi-
gation System”, Proceedings of International Ve-
hicle Electronics Conference, pages: 249-254,
2001.
.
Figure 9.The GPS position in LCD Biography
The paper is written by K. ATHAVAN currently a
Conclusion student of BE in Electronics & Communication Engineering
in Sri Venkateswara College of Engineering, Chennai, Tamil
In this paper, a novel idea is proposed for controlling the Nadu, India & will complete the degree in the year 2012.
traffic signals in favor of ambulances during the accidents. K. ATHAVAN may be reached at athavan1991@gmail.com,
With this system the ambulance can be maneuvered from the
accident spot to the hospital without time lag. The AARS The paper is written by G.BALASUBRAMAIAN
can be proved to be effectual to control not only ambulance currently a student of BE in Electronics & Communication
but also authoritative vehicles. Thus AARS if implemented Engineering in Sri Venkateswara College of Engineering,
in countries with large population like INDIA can produce Tamil Nadu, India& will complete the degree in the year 2012.
better results. The AARS is more accurate with no loss of He may be reached at balasubramani1114@gmail.com
time. But there may be a delay caused because of GSM mes-
sages since it is a queue based technique, which can be re- The paper is written by S.JAGADEESHWARAN
duced by giving more priority to the messages communi- currently a student of BE in Electronics & Communication
cated through the server Engineering in Sri Venkateswara College of Engineering,
Tamil Nadu, India and will complete the degree in the year
Acknowledgments 2012. He may be reached at jagadeeshsvce90@gmail.com.

ISSN NO: 2250-3536 VOLUME 2, ISSUE 2, MAY 2012 92

You might also like