TARPfinal PDF
TARPfinal PDF
TARPfinal PDF
PROJECT REPORT
Submitted for the course: Technical Answer for Real World Problems (ECE3999)
By
16BEC0193 D. RAVI
16BEC0018 V. MANISH KUMAR
16BEC0502 MONIK
16BEC0037 VAMSHI
16BEC0449 ROHAN ABHISHIKTH
16BEC0322 HARSHA VINUKONDA
16BEC0522 RAMA RAO
November, 2019
CERTIFICATE
This is to certify that the project work entitled ACCIDENT ALERT AND
VEHICLE TRACKING SYSTEM that is being submitted by D. Ravi, V. Manish
Kumar, Vamshi, Monik, Rohan Abhishikth, Harsha Vinukonda, Ramarao for
Technical Answer for Real World Problems (ECE3999)is a record of bona fide
work done under my supervision. The contents of this Project work, in full or in
parts, have neither been taken from any other source nor have been submitted for
any other CAL course.
Place: Vellore
Date: November
2019
LOKANATH
ACKNOWLEDGEMENTS
The student is free to acknowledge all those he feels he should acknowledge on the
basis of the guidance and help provided during the implementation of the project.
If the student has conducted his project elsewhere (viz. outside VIT) appropriate
acknowledgement should be given to all concerned. It is customary to
acknowledge the University Management / respective School Dean for giving the
candidate an opportunity to carry out his /her studies at the University.
Abstract:
Now a day's people feel insecure due to increase in the crime rate and
accidents. Technology can be used at a greater scale to reduce these and with
this inspiration we are proposing a system that can provide instant help in a
better and faster way. The most common applications we have are panic
alarm/ danger alert, requiring user to take actions to keep themselves safe.
Practitioners saw some value of information and evidence gathering
functions but, had safety concerns relating to their use by domestic violence
victims still living with the perpetrator. The proposed system is using GPS
which will take the location of the user from Google map. The main concept
would be sending a voice message and a message template to the selected
contacts and emergency numbers when in danger. Enhancement from the
earlier systems we are providing user tracking when he/she is in a position
that he cannot alert others. An important aspect of human life in accidents is
the tracking of vehicle. In this paper, we present the design and
implementation of a robust and computationally lightweight algorithm for a
real-time system, capable of detecting and tracking vehicle. The proposed
accident detection algorithm receives inputs from the vehicle, and from the
motion sensor, namely the accelerometer. A phone is used as human machine
interface.
Introduction:
Annually, road crashes result in almost 120,000 fatalities and 2.4 million
injuries in the European Region. Road traffic injuries represent the leading
cause of death among adolescents and young adults. Although, many potential
preventive strategies exist, they are not completely effective. Hence, it is
desirable to take up the challenge and reduce the burden of road traffic injuries.
The basic approach consists in using advanced technologies that can prevent
vehicles from being involved in accidents. Clearly, the effectiveness of such
safety related application is based on the reliability of the broadcast information.
Objective
A. Concept and Overview
This vehicle tracking system takes input from GPS and send it through the GSM
module to desired mobile/laptop using mobile communication. Vehicle
Tracking System is one of the biggest technological advancements to track the
activities of the vehicle. The security system uses Global Positioning System
GPS, to find the location of the monitored or tracked vehicle and then uses
satellite or radio systems to send to send the coordinates and the location data to
the monitoring center. At monitoring center various software’s are used to plot
the Vehicle on a map. In this way the Vehicle owners are able to track their
vehicle on a real-time basis. Due to real-time tracking facility, vehicle tracking
systems are becoming increasingly popular among owners of expensive
vehicles.
B. Units
a. There won’t be any unit for GPS module generated data and units are
never mentioned.
b. All the values obtained from accelerometer are based on the
calculations with reference to “3g”, where g = 9.8 m/s.
C. Hardware
For designing this hardware many types of devices are used to make it perfectly
working. All the devices are purchased from different manufacturers. These
components are soldered on a soldering board. The following list of hardware
are required for this system.
a. GSM
b. GPS
c. ACCELEROMETER
d. ARDUINO UNO
e. LCD DISPLAY
f. POWER SUPPLY
D. Block Diagram
This is the block diagram of vehicle tracking and accident alert system. This
shows the overall view of the vehicle tracking and accident alert system circuit.
The blocks connected here are LCD display, GPS, GSM, Accelerometer.
E. Problems with Existing System
a. If the text said by the user doesn't match with the text stored in the
database, then the GPS will not be activated.
b. The existing system uses a loud ring concept which intimates that the
message has been sent.
c. Existing systems provide limited number of contacts ranging from 2–
5.
d. These systems don't send the user profile.
Components:
1 Arduino uno
2 GPS
GPS abbreviates global positioning system and this is used to detect the latitude
and longitude of the particular position and it also shows the exact time. It
detects these values anywhere on the earth. In our project it plays main role and
it is the main source of the latitude and longitude of the vehicle to know the
accident occurred location, or even for theft tracking of the vehicle. This gadget
gets the coordinates from the satellite for each and every second. This device is
the main component of vehicle tracking project.
3 GSM
LCD is the display device which is of 16x2 size and it has yellow background
light. This LCD is connected to microcontroller. The following is the
interfacing diagram of LCD with microcontroller AT89S52. To enable terminal
latch of LCD high to low pulse is sent and RS bit is enabled. Once the latch is
enabled the data is transferred through the interfacing pins parallel and the LCD
shows the display on it. These LCD are easy to program and they are
economical too. LCD interfacing with microcontroller is very easy. Here in our
vehicle tracking project LCD displays the output i.e. latitude and longitude of
the vehicle. The following figure shows the LCD display of latitude and
longitude.
LITERATURE STUDY
There are certain systems which are present in the current scenario which
provides a first step towards accident reporting system which we a have studied.
The increasing technology and infrastructure has made our lives simpler. The
start of technology has also augmented the traffic hazards and the road accidents
take place regularly which causes enormous loss of life property and wealth just
because of the poor emergency services. This project will provide a finest
resolution to the problem. This project presents vehicle accident detection and
alert system. The GPS tracking and GSM alert based model is designed. The
proposed Vehicle accident recognition method can track geographical
information and the coordinates automatically and sends an alert SMS regarding
accident to the nearest hospitals and to the families of the victims. This alert is
sent to the central emergency mail server so that it will notify the ambulances
nearest to the accident location in short period of time which will help to save the
valuable lives every time. The alert notification is sent directly via GSM Module
and the exact location is tracked by the GPS system and forwarded to the system.
The accidents can be detected accurately with the help of accelerometer. This
proposed idea can be help mainly to the extremely weak areas, weak in
emergency facilities to the road accidents in most easy way if we use the high
potential or high accuracy GPS AND GSM modules.
A Recent study shows that during 2008, Road Traffic accidents ranked fourth
among the leading causes of death in the world. Nearly 1.3 million people die
every year on the world’s roads and 20 to 50 million people suffer nonfatal
injuries, with many sustaining a disability as a result of their injury. These days
most of the incidents occurred on the highways due to huge traffic, rash and bad
driving of drivers. In many cases, the families of the victims the traffic authorities
and the ambulances are not informed in time. This results in a delay in the help
to reach them. If no action is taken to predict says 2 million road accidents will
takes place annually. The focus of this approach is mainly works in real time and
designed to solve the same issue through GPS tracking system and alert about the
happening things around. Road accidents comprise the maximum part of the
accidents.
METHODOLOGY
Three main components working here are
GPS MODULE
GSM MODULE
ACCELEROMETER
When there is any change the axis of one or more number of axes in
accelerometer, Arduino extracts the data from GPS module.
GPS module continuously sends the NMEA format data.
From GPS data, Arduino extracts a string of data starting with $GPGGA.
Second and fourth data units are latitude and longitude respectively.
They are attached to a link that is predefined and sent through GSM module
to the owner and emergency service.
INNOVATION
Each additional rescue minute can mean the difference between life
and death as revealed by The Golden hour.
The victims of the accident may be in an unconscious state, and
cannot be expected to place a call to the emergency services control
room, when an accident happens.
Hence, an in-vehicle accident detection module can be used.
Further, in a country like India, where the witnesses are expected to
inform the emergency services control room when an accident
occurs, a lot of delay can happen.
In India, it takes 30 seconds on an average for the Communications
Officer to collect relevant information, and three minutes for the
Dispatchment Officer to dispatch an ambulance to the location.
Further, the ambulance driver needs to identify the accident location
based on cues provided by the officer and sail through the heavy
traffic.
We can exactly pinpoint the location of accident using GPS module.
GSM works on 2G spectrum which nowadays could be found in rural
areas.
Micro controllers could coordinate the work effectively.
This data could be stored in a database for future analysis of
accidents and setting up medical services in high accident zones.
This device receives the coordinates from the satellite for each and
every second, with time and date.
GPS module sends the data related to tracking position in real time,
and it sends so many data in NMEA format.
This sentence starts from $GPGGA and contains the coordinates, time
and other useful information.
GPS MODULE SAMPLE DATA
$GPGGA,104534.000,7791.0381,N,06727.4434,E,1,08,0.9,510.4,M,43.9,M,,*47
$GPGGA,HHMMSS.SSS,latitude,N,longitude,E,FQ,NOS,HDP,altitude,M,height,
M,,checksum data
GSM MODULE SIM900A
Step-1:
Step-4
SAMPLE LINK
http://maps.google.com/maps?&z=15&mrt=yp&t=k&q=12.972290+79.161521
ACCELEROMETER ADXL335
Code (Arduino)-
#include<SoftwareSerial.h>
SoftwareSerial Serial1(2,3); //make RX arduino line is pin 2, make TX arduino line is pin 3.
SoftwareSerial gps(10,11);
#include<LiquidCrystal.h>
LiquidCrystal lcd(4,5,6,7,8,9);
#define x A1
#define y A2
#define z A3
int xsample=0;
int ysample=0;
int zsample=0;
#define samples 10
#define MaxVal 50
int i=0,k=0;
int gps_status=0;
float latitude=0;
float logitude=0;
String Speed="";
String gpsString="";
char *test="$GPRMC";
void initModule(String cmd, char *res, int t)
while(1)
Serial.println(cmd);
Serial1.println(cmd);
delay(100);
while(Serial1.available()>0)
if(Serial1.find(res))
Serial.println(res);
delay(t);
return;
else
Serial.println("Error");
delay(t);
void setup()
{
Serial1.begin(9600);
Serial.begin(9600);
lcd.begin(16,2);
lcd.setCursor(0,1);
delay(2000);
lcd.clear();
lcd.print("Initializing");
lcd.setCursor(0,1);
lcd.print("Please Wait...");
delay(1000);
Serial.println("Initializing....");
initModule("AT","OK",1000);
initModule("ATE1","OK",1000);
initModule("AT+CPIN?","READY",1000);
initModule("AT+CMGF=1","OK",1000);
initModule("AT+CNMI=2,2,0,0,0","OK",1000);
Serial.println("Initialized Successfully");
lcd.clear();
lcd.print("Initialized");
lcd.setCursor(0,1);
lcd.print("Successfully");
delay(2000);
lcd.clear();
lcd.print("Callibrating ");
lcd.setCursor(0,1);
lcd.print("Accelerometer");
for(int i=0;i<samples;i++)
xsample+=analogRead(x);
ysample+=analogRead(y);
zsample+=analogRead(z);
xsample/=samples;
ysample/=samples;
zsample/=samples;
Serial.println(xsample);
Serial.println(ysample);
Serial.println(zsample);
delay(1000);
lcd.clear();
lcd.setCursor(0,1);
delay(2000);
gps.begin(9600);
get_gps();
show_coordinate();
delay(2000);
lcd.clear();
lcd.print("GPS is Ready");
delay(1000);
lcd.clear();
lcd.print("System Ready");
Serial.println("System Ready..");
lcd.clear();
Serial.println("Sending SMS");
//Send();
Serial.println("SMS Sent");
delay(2000);
lcd.clear();
lcd.print("System Ready");
void loop()
int value1=analogRead(x);
int value2=analogRead(y);
int value3=analogRead(z);
int xValue=xsample-value1;
int yValue=ysample-value2;
int zValue=zsample-value3;
Serial.print("x=");
Serial.println(xValue);
Serial.print("y=");
Serial.println(yValue);
Serial.print("z=");
Serial.println(zValue);
if(xValue < minVal || xValue > MaxVal || yValue < minVal || yValue > MaxVal || zValue < minVal ||
zValue > MaxVal)
get_gps();
show_coordinate();
lcd.clear();
lcd.print("Sending SMS ");
Serial.println("Sending SMS");
Send();
Serial.println("SMS Sent");
delay(2000);
lcd.clear();
lcd.print("System Ready");
void gpsEvent()
gpsString="";
while(1)
gpsString+= inChar; //store incoming data from GPS to temparary string str[]
i++;
// Serial.print(inChar);
if (i < 7)
i=0;
gpsString="";
if(inChar=='\r')
{
if(i>60)
gps_status=1;
break;
else
i=0;
if(gps_status)
break;
/*{
Serial.println(gpsString);
}*/
delay(10);
void get_gps()
lcd.clear();
lcd.setCursor(0,1);
lcd.print("Please Wait.....");
gps_status=0;
int x=0;
while(gps_status==0)
gpsEvent();
int str_lenth=i;
coordinate2dec();
i=0;x=0;
str_lenth=0;
delay(10);
void show_coordinate()
lcd.clear();
lcd.print("Lat:");
lcd.print(latitude);
lcd.setCursor(0,1);
lcd.print("Log:");
lcd.print(logitude);
Serial.print("Latitude:");
Serial.println(latitude);
Serial.print("Longitude:");
Serial.println(logitude);
delay(2000);
lcd.clear();
lcd.setCursor(0,1);
void coordinate2dec()
{
String lat_degree="";
for(i=20;i<=21;i++)
lat_degree+=gpsString[i];
String lat_minut="";
for(i=22;i<=28;i++)
lat_minut+=gpsString[i];
String log_degree="";
for(i=32;i<=34;i++)
log_degree+=gpsString[i];
String log_minut="";
for(i=35;i<=41;i++)
log_minut+=gpsString[i];
Speed="";
minut=minut/60;
float degree=lat_degree.toFloat();
latitude=degree+minut;
minut= log_minut.toFloat();
minut=minut/60;
degree=log_degree.toFloat();
logitude=degree+minut;
}void Send()
{
Serial1.println("AT");
delay(500);
serialPrint();
Serial1.println("AT+CMGF=1");
delay(500);
serialPrint();
Serial1.print("AT+CMGS=");
Serial1.print('"');
Serial1.println('"');
delay(500);
serialPrint();
Serial1.print("Latitude:");
Serial1.println(latitude);
delay(500);
serialPrint();
Serial1.print(" longitude:");
Serial1.println(logitude);
delay(500);
serialPrint();
delay(500);
serialPrint();
Serial1.print("http://maps.google.com/maps?&z=15&mrt=yp&t=k&q=");
Serial1.print(latitude,6);
Serial1.print("+");
Serial1.print(logitude,6);
Serial1.write(26);
delay(2000);
serialPrint();
}
void serialPrint()
while(Serial1.available()>0)
Serial.print(Serial1.read());
References
1. J. White, C. Thompson, H. Turner, B. Dougherty, D. C. Schmidt,
"Wreckwatch: Automatic traffic accident detection and notification with
smartphones", Mobile Networks and Applications, vol. 16, no. 3, pp. 285-
303, 2011.
2. C. Thompson, J. White, B. Dougherty, A. Albright, D. C. Schmidt, "Using
smartphones to detect car accidents and provide situational awareness to
emergency responders", Proc. of International Conference on Mobile
Wireless Middleware Operating Systems and Applications, pp. 29-42, 2010.
3. M. S. Amin, J. Jalil, M. Reaz, "Accident detection and reporting
system using GPS GPRS and GSM technology", Proc. IEEE
International Conference on Informatics Electronics & Vision (ICIEV),
pp. 640-643, 2012.
4. S. Hari Shankar, K. Jayadev, B. Suraj, P. Aparna, “A comprehensive
solution to road traffic accident detection and ambulance management”,
Advances in Electrical, Electronic and Systems Engineering
(ICAEES) 2017.