Documente Academic
Documente Profesional
Documente Cultură
By
NAME
Faculty of
INFORMATION AND COMMUNICATION ENGINEERING
DEPARTMENTOFCOMPUTERAPPLICATIONS
MEPCO SCHLENK ENGINEERING COLLEGE, SIVAKASI
(An Autonomous Institution affiliated to Anna University,Chennai)
June 2016
BONAFIDE CERTIFICATE
Certified that this project report titled “ACCIDENT TRACKING APP FOR
ANDROID MOBILE” is the bonafide work of Ms. NAME (Register Number:
201352253) who carried out the project under my supervision. Certified further, that
to the best of my knowledge the work reported here in does not form part of any
other report or dissertation on the basis of which a degree or award was conferred
on an earlier occasion on this or any other candidate.
Supervisor Director
College(Autonomous) , Sivakasi on
Mepco Schlenk Engineering College for his motivation and encouragement for doing
Technical head, Saaiesh Group inc., Chennaifor his valuable guidance, support and
complete this project. Above all, I thank the Almighty and My Parents, for what I am
The project entitled as a “Accident Tracking App for Android Mobile” can
ability to accurately detect a vehicle’s location and its status is the main goal of
automobile trajectory monitoring systems and also the high demand of automobiles
has also increased the traffic hazards and the road accidents.
The main objective of the project is to help the peoples who met the accidents
and also develop low cost Accident Detection System using Android.
This design is a system which can detect accidents in significantly less time
and sends the basic information to first aid center within a few seconds covering
geographical coordinates, the time and angle in which a vehicle accident had
occurred.
This alert message is sent to the rescue team in a short time, which will help in
saving the valuable lives.
These systems are implemented using several hybrid techniques that include:
GPS Receiver
Accelerometers
in India.
1 INTRODUCTION 1
1.2 Synopsis 2
2 SYSTEM ANALYSIS 3
2.1Requirement Analysis 3
3 SYSTEM DESIGN 7
3.2.4 ER Diagram 12
3.5.4 Accelerometer 16
4 SYSTEM IMPLEMENTATION 18
4.2.1 GPS 21
4.2.2 GSM 22
4.2.3 GPRS 23
4.7.1 Java 26
5 SOFTWARE TESTING 32
7 APPENDIX 41
8 REFERENCES 51
LIST OF FIGURES
Level-0 8
2 Level-1 9
6 3.2.4 ER Diagram 13
INTRODUCTION
ORGANIZATION PROFILE
Saaiesh Group inc can provide you a solution that enables you to stay focused on
what's important-growing your business and serving your customers.Saaiesh Group
inc provides technology solutions designed to meet the development, support and
business process needs of enterprise world-wide.
1
SYNOPSIS
This project is mainly developed to enable the vision of smart and safe cities,
by exploiting mobile and social networking and internet technologies to securely
and privately extract, model and embed real-time public safety information into
user experiences.
In India, the World Health Organization (WHO) has revealed in its first ever
Global Status Report on Road Safety that more people die in road accidents in
India than anywhere else in the world, including the more populous China.
Calling road facilities an "epidemic" that will become the world's fifth biggest killer
by 2030, thereport said while rich nations had been able to lower their death
rates, these were sharply on the rise in the third world. It said 90% of deaths on
the world's roads occur in low and middle-income countries (21.5 and 19.5 per
lakh of population,respectively) though they have just 48% of all registered
vehicles. The statistics for India are chilling. At least 13 people die every hour in
road accidents in the country, the latest report of the National Crime Records
Bureau reveals. However, road safety experts say the real numbers could be
higher since many of these accident cases are not even reported.
2
CHAPTER 2
SYSTEM ANALYSIS
REQUIREMENT ANALYSIS
Hardware Requirements
Processor : Intel i5 @ 2.0GHz
RAM : 2 GB
Internal Memory : 1 GB
Software Requirements
Language : Java
Database : MySQL
Tool
EXISTING SYSTEM
In existing system there is no way to find the accidents needs long time . After
accidents the accident was find some delay of time.So many chance to die during
time delay after accidents.Also the ambulance and hospital there is no way to find
the exact location of the accident.The Manual process of detecting accidents and
accident Locations. Information's are manually updated by the particular user then
the emergency backup will be send to corresponding persons.
3
Disadvantages
In existing system the GPS sensors are not used for getting
Location.
One our car is accident there no one cannot known our
accidents.
More time delay many chance to dead.
After that finding accident vehicle is impossible.
Long time is required to search accidents place.
PROPOSED SYSTEM
Today Mobile phones are equipped with inbuilt sensors that givesafetyenhancement
to the drivers on road.In this project emphasis on safety with advanced driver
assistance system (ADAS’s). Google Earth is used to create road condition maps
using GPS coordinates. A wireless black box using GPS tracking and GSM module
can be developed for accidental tracking.
The accident detection algorithm was developed based on sudden deceleration. The
double integration of the acceleration and heading from the tilt angles
ofaccelerometers were used to determine the location.
Kalman filter was utilized to correct the accumulated double integration errors with
the trusted GPS data. The field tests demonstrated the correct functioning of the
accident detection algorithm and location. The proposed low-cost system can save
many lives by the automated accident detection and accurate location even during
GPS outage.
Advantages
Accident detection using cheap devices
Get the current location of the accident spot
Get quick help response
Low Cost
Effective
4
FEASIBILITY STUDY
ECONOMICAL FEASIBILITY
TECHNICAL FEASIBILITY
ECONOMICAL FEASIBILITY
It was determined that three options existed to solve our GPS Positioning System
needs. These options include:
TECHNICAL FEASIBILITY
Economic Analysis
We have the capital to invest into this profitable venture. This project also will start to
show financial benefits early on in this project.
Operational Analysis
5
Schedules, Timeline Analysis
At the end of the year in May of 2016we will have completed the entire project
for an overalltime span of 6 month for total design and implementation.
For each option, a Net Present Value analysis and Break-even point analysis
was performed to decide which option would provide the best financial gain. It was
determined that option 3, developing a new system, was the most cost effective
solution as it provide a 1.33 year break-even point. Please refer to the calculations
on the next three pages for more details.
6
CHAPTER 3
SYSTEM DESIGN
Fig 3.1: To detect the accident using kalman filter and the accelerometer
7
Level-1:To detect the accident using flow diagram
8
UML DIAGRAMS
CLASS DIAGRAM
9
USE-CASE DIAGRAM
Fig 3.2.1 Consist of user to monitoring and force sensor to detect trigger
function
10
SEQUENCE DIAGRAM
11
ER DIAGRAM
Fig 3.2.4 Getting the location and the alert message send to the user
12
DEPLOYMENT DIAGRAM
13
3.3 DATABASE DESIGN
SYSTEM ARCHITECTURE
System Architecture
14
MODULAR DESIGN
Emergency Users
Accelerometer
Accident Detection
User who can input and store their emergency contacts details to the
database. User can insert the person name and mobile number for
emergencysituation. And the user can manage their contact list by add and delete
their user details. When the accident was happen emergency alert messages are
The GPS based location fetching can fetch the accurate positiongetting latitude and
longitude values. In android GPS can be fetched by GPS broadcast receiving and
get the location details. For mentioning the accident location and calculating speed
15
GPS BASED SPEED CALCULATION
monitoring the user location values. The GPS receiver determines position by the
direct line-of-sight signal from the satellites. The blockage by any obstruction affects
both the amplitude and phase of the received satellite signals and needs requisition
of satellite signals. Moreover, the update rate of GPS is also not sufficient to
determine the acceleration from the speed data for the purpose of accident
detection.
ACCELEROMETER
velocity). For example, an accelerometer at rest on the surface of the Earth will
in free fall orbiting and accelerating due to the gravity of Earth will measure zero.
ACCIDENT DETECTION
accident. The accident detection scenario is activated when the vehicle travels
above 23 kph. Speed below this is not likely to cause any fatal accident situation in
16
EMERGENCY ALERT SYSTEM
The information sent as a GPRS data and SMS will be received bya GSM/GPRS
and GPRS data. An appropriate program will be written so that Google Maps can be
incorporated and the accident location is automatically plotted in the map utilizing the
information from the interpreted SMS/GPRS data. It will also show the previous
speed of the vehicle before committing the accident. This data will help the Alert
Service Center to assess the severity of the accident basing on the speed. The
modem will also establish a voice channel with the Alert Service Center.
17
CHAPTER-4
SYSTEM IMPLEMENTATION
The vehicle tracking systems are implemented to assist corporations with large
number of automobiles and several usage purposes. A Fleet management system
can minimize the cost and effort of employees to finish road assignments within a
minimal time. Besides, assignments can be scheduled in advanced based on current
automobiles location. Therefore, central fleet management is essential to large
enterprises to meet the varying requirements of customers and to improve the
productivity . So taking in action all these things we are going to design and develop
a machine, which will track the real time location of the vehicle using blue tooth
technology with the help of an android base mobile phones.
The ability to accurately detect a vehicle’s location and its status is the main goal of
automobile trajectory monitoring systems. These systems are implemented using
several hybrid techniques that
include:
Wireless communication
Geographical positioning
Embedded applications
The vehicle tracking systems are implemented to assist corporations with large
number of automobiles and several usage purposes. This system can minimize the
cost and effort of employees to finish road assignments within a minimal time. So
taking in action all these things we are going to design and develop a machine,
which will track the real time location of the vehicle using blue tooth technology with
the help of an android base mobile phones.
18
These systems are implemented using
Device Background module
Location tracking.
Steering rotation tracking
false alarm detection.
Information delivery
ACCIDENTS
19
Device Background module
Our work reveals to identify not only potholes but also bumps and rough, uneven,
and smooth roads using multiple axes of the accelerometer. We also utilized a single
measuring device rather than expensive external sensors placed in numerous places
around the vehicle, which ultimately increases infrastructure costs. Our device, which
is a mobile smartphone, contains GPS, microphones, and an accelerometer offering
flexibility in methodology and user implementation. Encouraging results in identifying
numerous road anomalies and sudden driving maneuvers allow for our system to
evaluate an entire road’s condition and help advise drivers on unsafe characteristics,
respectively, both of which are distinguishable factors that can determine safety on
the road.
20
Steering rotation tracking
The normal rotating dimensions of the steering is locally defined in the server. If the
steering rotation goes beyond the defined dimensions or to an extreme rotation then
a warning signal is processed to the user. This service is made to control the driving
behavior of the user and provide a safe drive.
Information delivery
4.2.1 GPS
21
Getting a lock on by the GPS receivers on the ground usually takes some
time especially where the receiver is in a moving vehicle or in dense urban areas.
The initial time needed for a GPS lock is usually dependent on how the GPS receiver
starts.
GPS System
GSM
22
In simple language, GSM is primarily used to carry your voice on cell
phone networks that uses that type of technology.
GSM also introduced a series of features such as short messaging
service (SMS), international roaming, fax and data messaging services. Another
popular feature was the ability to let users download ringtones, logos, photos, that
enabled the users to personalize their phones.
GPRS
GPRS was originally standardized by European Telecommunications
Standards Institute (ETSI) in response to the earlier CDPD and i-mode packet-
switched cellular technologies.
23
ACCIDENT PREDICTION SYSTEM
Motorist report
Transportation department
Aerial surveillance
24
The drawback of this type of detection system is that someone hasto witness the
incident. Driver initiated detection system. Moreover, there are delays and
inaccuracies due to the expression problem of the witness
Driver initiated incident detection system has more advantages which includes the
quick reaction, more incident information etc. However, with the severity of the
accident, driver may not be able to report at all.
SYSTEM METHODOLOGIES:
GPS RECEIVER
The sensor for the accident detection is the GPS receiver.Nowadays, GPS
technology has become more accurate, smaller, reliable, and economical. A very
sensitive and accurate GPS signal acquiring device is required for the system.
GSM/GPRS MODEM
GSM also introduced a series of features such as short messaging service (SMS),
international roaming, fax and data messaging services. Another popular feature was
the ability to let users download ringtones, logos, photos, that enabled the users to
personalize their phones. The GSM/GPRS modem utilizes the GSM network to send
the location of the accident. The modem can be controlled by a microcontroller.
25
MICROCONTROLLER UNIT
The microcontroller unit (MCU) is the heart of the system. It receives data from the
GPS, processes all data and detects the accident from the processed dataThe
location of the accident is also sent by the microcontroller.
SOFTWARE APPLICATIONS
JAVA
Android applications are written in Java - not the full-blown Java that
J2EEdevelopers are used to, but a subset of Java that is sometimes known as the
Dalvik virtual machine.
Android was created on top of the open-source Linux 2.6 kernel. The Android team
chose to use this kernel because it provided proven core features to develop the
Android operating system on. The features of the Linux 2.6 kernel include (but aren’t
limited to) the following:
Security model
The Linux kernel handles security between theapplication and the system.
Memory management
The kernel handles memory management for you leaving you free to
develop your app.
Process management
The Linux kernel manages processes well, allocatingresources to
processes as they need them.
Network stack
Driver model
26
GETTING THE JAVA DEVELOPMENT KIT
Click the JDK link under the Java Platform (JDK) heading (see
then click the Download button. An optional Log in for Download screen appears.
Click the Skip This Step link at the bottom of the page.
In the Save As dialog box, select the location where you want
27
Fig 4.7.3.1 Select JDK
When the download is complete, double-click the file to install the JDK. You are
prompted by a dialog box that asks whether you want to allow the program to make
changes to your computer. Click the Yes button. If you click the No button, the
installation is stopped. When you’re prompted to do so, read and accept the license
agreement.
28
Downloading the Android SDK
http://developer.android.com/sdk/ index.html.
Yes.
Select the Accept radio button to accept the license and then
29
4.7.4.1 Installing Archives
Now that you have the SDK, you need an integrated development environment (IDE)
to use it.
Downloading the correct version of Eclipse is very important. At this writing, Android
doesn’t support Eclipse Helios (version 3.6). Check the Android System
Requirements page at http://developer.android.com/sdk/ requirements.html.
Installing Eclipse
To install Eclipse, you need to extract the contents of the Eclipse .zip file to the
location of your choice. For this example, I’ll be using C:\Program Files\Eclipse.
c:\users\<username>\workspace
30
When Eclipse finishes loading, you see the Eclipse welcome
go to the workbench.
go to the workbench.
31
CHAPTER 5
SYSTEM TESTING
All the sensors and GSM and GPS modules interfaced on the Arduino board
implemented to test the working of the proposed model. Code to test the working of
An Android app was created using the IDE and installed on smart phone which was
used to manage the fleet such as monitoring its speed and real time tracking of
vehicles as mentioned above, This app fetched the details of the vehicle and the
users from the database created using MySql of the WAMP server.
32
Table-5 Number of accidents occurring across various cities in INDIA
33
Test cases for Smoke Sensor
Fig 5.1.1: serial monitor screen displaying smoke value above 380.
34
Fig 5.1.2 SMS received after the smoke detected on the registered mobile.
35
Fig 5.2.1 serial monitor screen displaying flame sensor reading greater than 850.
Fig 5.2.2 SMS received after the flames detected, on the registered mobiles
36
Test case for Knock Sensor
Fig 5.3.1 serial monitor screen displaying knock value greater than 100
37
Fig 5.3.2 SMS received after the knock/accident, on the registered mobiles
38
CHAPTER 6
CONCLUSION
This accident detection and alert system provide emergency responders with crucial
information at the earliest possible time. Reducing the time between when an
accident takes place and when it is detected can reduce mortality rates. The entire
works have to be integrated with the automobile to validate its functionality and
reliability. Thus this work will reduce the accident death ratio in considerable amount
even in rural roads. Then it has a great importance in day to day life of the people in
the country like India. This proposed work will provide vital information about the
accidents even in unpopulated area. So, the pre-configured contacts could be able to
serve to the victims with better efficiency and they could plan to have important first
aid kits which have to be brought along with them to the accident spot. Thus this
work ensures the reduction of death ratio and fatalities in the country like India and
39
FUTURE ENHANCEMENT
same module.
bomb detector.
We can use our kit to assist the traffic. By keeping the kits in
vehicles.
If anybody steals our car we can easily find our car around
vehicle.
40
CHAPTER-7
APPENDIX
41
Accident Detection
42
Emergency Users
43
New User Registration
44
View Registered User
45
Accelerometer Sensor Readings
46
Accelerometer Sensor Readings
47
Accelerometer Sensor Readings
48
Alert Notification
49
Alert Message Send to the Contacts
50
REFERENCES
JOURNALS
[2]. D. A. Whitney and J. J. Pisano TASC, Inc., Reading, Massachusetts, "Auto Alert:
Available:http://www.nmea.org/content/nmea_standards/nmea_083_v_400.asp,
evaluation of the Power Model,” TOI Report, [Online]. Accessed on 12 October 2011.
Available: http://www.trg.dk/elvik/740-2004.pdf
[ 7]. Speed and Accident Risk, EuropianCommision Road Safety, [Online] Accessed
on 07 October 2011
51
Avaialble:http://ec.europa.eu/transport/road_safety/specialist/knowledge/speed/spee
d_is_ a_central_issue_in_road_safety/speed_and_accident_risk.htm,
INTERNET
overview.html
2841/friction/nsw/friction/force-andmotion/force-and-gravity
[5]. Official website of Jharkhand Police , “Accidents and their causes”, Accessed
accidents.
http://www.cyberphysics.co.uk//graphics/graphs/highwaycodeSD.png
[7]. Wikipedia
www.morth.nic.in/writereaddata/mainlinkFile/File761.pdf.
52