Professional Documents
Culture Documents
B 137 Report
B 137 Report
B 137 Report
Bachelor of Technology
in
Computer Science & Engineering
By
D.SRIKAR (18UECS0244)
B.SIVAKUMAR (18UECS0151)
V.SHIVA SAI (18UECS0888)
It is certified that the work contained in the project report titled “ACCIDENT
RECOGNITION THROUGH CRASH DETECTION AND ALERTING SYSTEM USING
GSM” by “D. SRIKAR (18UECS0244), B. SIVA KUMAR (18UECS0151), V. SHIVA
SAI(18UECS0888)” has been carried out under my/our supervision and this work has not
been submitted elsewhere for a degree.
Signature of Supervisor
Dr.A.PRAKASH
ASSOCIATE PROFESSOR
Computer Science & Engineering
School of Computing
Vel Tech Rangarajan Dr.Sagunthala R&D
Institute of Science and Technology
June,2021
i
DECLARATION
We declare that this written submission represents my ideas in our own words and
where others’ ideas or words have been included, we have adequately cited and ref-
erenced the original sources. We also declare that we have adhered to all principles of
academic honesty and integrity and have not misrepresented or fabricated or fal- sified
any idea/data/fact/source in our submission. We understand that any violation of the
above will be cause for disciplinary action by the Institute and can also evoke penal
action from the sources which have thus not been properly cited or from whom proper
permission has not been taken when needed.
(Signature)
(D.SRIKAR)
Date: / /
(Signature)
(B.SIVA KUMAR)
Date: / /
(Signature)
(V.SHIVA SAI)
Date: / /
ii
APPROVAL SHEET
Examiners Supervisor
Dr.A.PRAKASH,M.E.,Ph.D.,
ASSOCIATE PROFESSOR
Date: / /
Place:
iii
ACKNOWLEDGEMENT
We express our deepest gratitude to our respected Founder Chancellor and Pres-
ident Col. Prof. Dr. R. RANGARAJAN B.E. (EEE), B.E. (MECH), M.S (AUTO).
DSc., Foundress President Dr. R. SAGUNTHALA RANGARAJAN M.B.B.S.
Chairperson Managing Trustee and Vice President.
We are very much grateful to our beloved Vice Chancellor Prof. S. SALIVA-
HANAN, for providing us with an environment to complete our project successfully.
We also take this opportunity to express a deep sense of gratitude to Our Internal
Supervisor Supervisor name,degree.,(in capital letters) for her cordial support,
valuable information and guidance, he helped us in completing this project through
various stages.
We thank our department faculty, supporting staff and friends for their help and
guidance to complete this project.
D.SRIKAR (18UECS0244)
B.SIVAKUMAR (18UECS0151)
V.SHIVA SAI (18UECS0888)
iv
ABSTRACT
Keywords:
Arduino Mega, GSM, GPS, LCD, Accelerometer, Vibration Sensor,
Bread board.
v
LIST OF FIGURES
vi
LIST OF ACRONYMS AND
ABBREVIATIONS
vii
TABLE OF CONTENTS
Page. No
ABSTRACT v
1 INTRODUCTION 1
1.1 Introduction .................................................................... 1
1.2 Aim of the project .......................................................... 2
1.3 Project Domain .............................................................. 2
1.4 Scope of the Project ....................................................... 2
2 LITERATURE REVIEW 3
3 PROJECT DESCRIPTION 4
3.1 Existing System ......................................................... 4
3.2 Proposed System . . . . . . . . . . . . . . . . . . . .4
3.3 Feasibility Study . . . . . . . . . . . . . . . . . . . .5
3.3.1 Economic Feasibility . . . . . . . . . . . . . .5
3.3.2 Technical Feasibility . . . . . . . . . . . .5
3.3.3 Social Feasibility . . . . . . . . . . . . . . . .5
3.4 System Specification . . . . . . . . . . . . . . . . .5
3.4.1 Hardware Specification . . . . . . . . . . . . .5
3.4.2 Software Specification . . . . . . . . . . . . .6
3.4.3 Standards and Policies . . . . . . . . . . . . .6
4 MODULE DESCRIPTION 7
4.1 General Architecture . . . . . . . . . . . . . . . . .6
4.2 Design Phase . . . . . . . . . . . . . . . . . . . . . 6
4.2.1 Data Flow Diagram . . . . . . . . . . . . 7
8 PLAGIARISM REPORT 20
References 29
Chapter 1
INTRODUCTION
1.1 Introduction
Aim of the project is to help the victim, who met with an accident
we can save the life of the victim with the help of this system, by
fixing this system to the vehicle.
1
1.3 Project Domain
So, the proposed system can give the person information along with
the location so we can save him and he can get treatment in proper
time.
2
Chapter 2
LITERATURE REVIEW
3
Chapter 3
PROJECT DESCRIPTION
5
Hardware Specification
3.4.1
• Atmega microcontroller
• GSM Module
• GPS Module
• Accelerometer
• Vibration meter
• LCD Display
• Cables and connectors
6
3.4.2 Software Specification
• MC Prograaming language : C
• Arduino Compiler
7
Chapter 4
MODULE DESCRIPTION
Battery Accelerometer
Arduino mega
Vibration
sensor GPS+GSM
LCD
9
4.2 Design Phase
F_NAME S_NAME
Name
Phm_
num
Drive
r alert
Helpline number
ISA
10
4.3 Module Description
11
➢ GPS
Figure3.3: GPS
A GPS navigation system is a GPS receiver and audio/video (AV) components
designed for a specific purpose such as a car-based or hand-held device or a
smartphone app. The global positioning system (GPS) is a 24-satellite navigation
system that uses multiple satellite signals to find a receiver's position on earth.
➢ LCD
Figure5.1.1
13
5.1.2 Output Design
Figure5.1.2
5.2 Testing
Due to safety matter and the significant damage concerned, crash
testing of this system in real environments (real car accident) is
not realistic and practical. Also the lack of the availability of
laboratories that can be used to simulate the crash environment is
making the crash testing difficult to achieve.However we tested the
system with a demo vehicle.
14
5.3.1 Unit testing
15
5.3.3 White Box Testing
16
Chapter 6
17
6.3 Advantages of the Proposed System
• This system save the people in a right time.
• The message will be send to the respective persons or rescue team.
• It show the position in which the accident has been occurred.
1 #include<SoftwareSerial.h>
Software Serial Serial1(2,3); //make RX Arduino line is pin 2,
make TX Arduino line is pin 3.
Software Serial gaps (10,11);
#include<LiquidCrystal.h>
Liquid Crystal lcd (4,5,6,7,8,9);
#Define x A1
#Define y A2
#Define z A3
int X sample=0;
int Y sample=0;
int Z sample=0;
#Define samples 10
18
Chapter 7
7.1 Conclusion
The module is made up of a receiver with GPS. Microcontroller and a
GSM modem. The full device configuration is installed on the target
vehicle. There is one handheld GSM phone connected to the port at
the other end (main vehicle station). The GPS system will transmit
longitudinal and latitude values corresponding to the position of a
vehicle to GSM modem when a discrepancy in the sensor occurs.
Whenever the sensor shifts, the system detects vehicle accidents and
sends a message via the GSM module. This message is transmitted
through another module of GSM. GPS module shows the static
location of the incident and its details. It receives specific SMS from
where the accident happened. There is therefore a slight variance in
the measurements, the original values of the latitude and longitude are
equal but the fractional value changes just marginally.
20
Chapter 8
PLAGIARISM REPORT
21
Chapter 9
#Define x A1
#Define y A2
#Define z A3
int Xsample=0;
int Ysample=0;
int Zsample=0;
#Define samples 10
int I=0,k=0;
int gps_status=0;
float latitude=0;
float logitude=0;
String Speed="";
String gpsString="";
char *test="$GPRMC";
22
{
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. Print ("Accident Alert “);
lcd. set Cursor (0,1);
LCD. Print (" System ");
delay (2000);
LCD. Clear ();
LCD. Print("Initializing");
lcd. set Cursor (0,1);
LCD. Print ("Please Wait...");
delay (1000);
xsample/=samples;
ysample/=samples;
zsample/=samples;
Serial.println(xsample);
Serial.println(ysample);
Serial.println(zsample);
delay (1000);
void loop ()
{
int value1=analogRead(x);
int value2=analogRead(y);
int value3=analogRead(z);
int xvalue=xsample-value1;
int yvalue=ysample-value2;
24
int zvalue=zsample-value3;
Serial. Print("x=");
Serial.println(xValue);
Serial. Print("y=");
Serial.println(yValue);
Serial. Print("z=");
Serial.println(Zvalue);
void gpsEvent ()
{
gpsString="";
while (1)
{
while (gaps. available ()>0)
{
void get_gps ()
{
LCD. Clear ();
LCD. Print ("Getting GPS Data");
lcd. set Cursor(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;
}
}
void show_coordinate ()
{
LCD. Clear ();
LCD. Print("Lat:");
LCD. Print(latitude);
lcd. set Cursor (0,1);
LCD. Print("Log:");
LCD. Print(logitude);
Serial. Print("Latitude:");
26
Serial.println(latitude);
Serial.print("Longitude:");
Serial.println(logitude);
Serial.print("Speed (in knots) =");
Serial.println(Speed);
delay (2000);
LCD. Clear ();
LCD. Print ("Speed (Knots):");
lcd. set Cursor (0,1);
LCD. Print (Speed);
}
void coordinate2dec ()
{
String last-minute="";
for (i=22; i<=28; i++)
last-minute+=gpsString[i];
String log_minut="";
for (i=35; i<=41; i++)
log_minut+=gpsString[i];
Speed="";
for (i=45; i<48;i++)
Speed+=gpsString[i];
minut= log_minut.toFloat();
minut=minut/60;
degree=log_degree.toFloat();
logitude=degree+minut;
}
void Send ()
27
{
Serial1.println("AT");
delay (500);
serial Print ();
Serial1.println("AT+CMGF=1");
delay (500);
serial Print ();
Serial1.print("AT+CMGS=");
Serial1.print('"');
Serial1.print("7993133703");
Serial1.println('"');
delay (500);
serial Print ();
Serial1.print("Latitude:");
Serial1.println(latitude);
delay (500);
serial Print ();
Serial1.print(" longitude:");
Serial1.println(logitude);
delay (500);
serialPrint ();
Serial1.print(" Speed:");
Serial1.print(Speed);
Serial1.println("Knots");
delay (500);
serialPrint();
Serial1.print("http://maps.google.com/maps?&z=15&mrt=yp&t=k&q=");
Serial1.print(latitude,6);
Serial1.print("+"); //28.612953, 77.231545
//28.612953,77.2293563
Serial1.print(logitude,6);
Serial1.write(26);
delay (2000);
serialPrint ();
}
void serialPrint ()
{
while (Serial1.available()>0)
{
Serial.print(Serial1.read());
}
}
28
9.2 Poster Presentation
29
References
30