Professional Documents
Culture Documents
Final Year Report
Final Year Report
Final Year Report
SYSTEM
2023
ACCIDENT ALERT AND CRASH DETECTION SYSTEM
by
NOOR AMIRA FARZANA BINTI AHMAD MAUWARI
NOVEMBER 2023
APPROVAL AND DECLARATION SHEET
This project report entitled ACCIDENT CRASH AND DETECTION SYSTEM was
prepared and submitted
by
has been found satisfactory in terms of scope, quality, and presentation as partial
fulfilment of the requirement for the
Diploma Engineering (Computer Engineering) in
Universiti Malaysia Perlis
(UniMAP).
-----------------------------------------
(SHARIFFAH ZARIHAN BT SYED ZAHARIM HELMI)
Project Supervisor
Faculty of Electronic Engineering and Technology
Universiti Malaysia Perlis
November 2023
i
ACKNOWLEDGEMENT
First and foremost, I would like to thank the Almighty Allah S.W.T. for providing me
with the strength I need to fulfil my obligations as a Computer Engineering student and for
I would like to use this chance to express my gratitude to several individuals and
institutions for their help with my senior project. Initially, I would like to express my gratitude to
my boss, Madam Shariffah Zarihan Bt Syed Zaharim Helmi, for her boundless energy, tolerance,
perceptive remarks, useful data, sensible guidance, and endless suggestions, all of which have
been immensely beneficial to me during this project. Her extensive knowledge and wealth of
this project.
I would like to thank all of the generous Diploma in Computer Engineering teachers who
gave their time, advice, and suggestions as the project progressed within the institution. I also
want to thank the technicians and employees in particular for their cooperation and indirect or
direct contributions to the success of my project. Finally, I would like to thank my friends for
encouraging me to finish my project and my family for their support when I told them I wanted
to continue my studies. These people made the success of this endeavour possible. I could not
ii
SISTEM AMARAN KEMALANGAN DAN MENGESAN PELANGGARAN SISTEM
ABSTRAK
Sistem Amaran Kemalangan dan Mengesan Pelanggaran Sistem ialah projek canggih
yang direka bentuk untuk bertindak pada masa yang tepat ia diperlukan. Apabila
kemalangan berlaku, sistem ini boleh menghantar makluman secara automatik dengan
data lokasi yang tepat, memastikan tindak balas yang pantas. Ia merupakan penyelesaian
serba boleh yang boleh digunakan di luar kemalangan kenderaan, menawarkan aplikasi
berpotensi dalam pelbagai bidang. Inspirasi projek itu datang daripada pemerhatian
keperluan kritikal untuk makluman kemalangan tepat pada masanya, terutamanya dalam
situasi di mana bantuan segera boleh membuat perbezaan yang ketara. Objektif utama
projek ini adalah untuk meningkatkan keselamatan jalan raya, meminimumkan masa
tindak balas dalam kecemasan, dan menyelamatkan nyawa dengan mengesan kemalangan
dengan pasti dan memberitahu pihak berkuasa atau individu yang berkaitan
iii
ACCIDENT ALERT AND CRASH DETECTION SYSTEM
ABSTRACT
The Accident Alert and Crash Detection System is a sophisticated project designed to
spring into action at the exact moment it's needed. When an accident occurs, this system can
automatically send alerts with precise location data, ensuring a swift response. It's a versatile
solution that can be applied beyond vehicle accidents, offering potential applications in various
fields. The project's inspiration came from the observation of a critical need for timely accident
alerts, particularly in situations where immediate assistance can make a significant difference.
The primary objective of this project is to enhance road safety, minimize response times in
emergencies, and save lives by reliably detecting accidents and notifying the relevant authorities
or individuals.
iv
TABLE OF CONTENTS
ACKNOWLEDGEMENT ii
ABSTRAK iii
ABSTRACT iv
TABLE OF CONTENTS v
CHAPTER 1: INTRODUCTION 1
2.1 Introduction 4
2.2 Previous Review Project 4
2.2.1 Project on Vehicle Tracking and Accident Alert System.[1] 4
2.2.2 Project on Accident Detection and Alert System.[2] 6
2.3 Hardware Description 8
2.3.1 Microcontroller Selection 8
2.4 Summary of the Chapter 12
CHAPTER 3: METHODOLOGY 13
3.1 Introduction 13
3.2 Project Methodology 13
3.2.1 Accident Detection 13
3.3 Software Development 16
3.3.1 System Requirement 16
3.3.2 Coding Development 17
3.4 Hardware Development 18
3.4.1 ESP32 Microcontroller 18
v
3.4.2 Vibration Sensor 19
3.4.3 Accelerometer 20
3.5 Summary of the Chapter 21
CHAPTER 4: RESULT AND DISCUSSION 22
4.1 Introduction 22
4.2 Simulation Result 22
4.2.1 Design Result 23
4.3 Hardware Result 24
4.3.1 Full Picture of Project 24
4.3.2 The operation of the system 25
4.3.3 Calculation 27
4.3.4 Telegram Integration 29
4.3.5 Maps Link 31
4.4 Project Costing 32
4.5 Summary of the Chapter 33
CHAPTER 5: CONCLUSION AND FUTURE WORK 34
APPENDIX 39
vi
LIST OF FIGURES
Figure 2.1: The project's block diagram, which illustrates how it operates...................... 5
Figure 2.5: Demonstrated a GPS module example that was applied to this project. ...... 10
Figure 2.6: Display a sample LCD module that was utilised for this project. ................ 11
Figure 2.7: Show the declaration of the function input in the coding in the example above.
........................................................................................................................................ 12
Figure 2.8: Demonstrate how the programme will receive GPS data and store it in the
vii
LIST OF ABBREVIATIONS
GND Ground
ESP32 Espressif32
viii
CHAPTER 1: INTRODUCTION
highlight the ongoing global road safety crisis [1]. In response to this issue, an accident
alert and crash detection system has been developed. This system can swiftly identify
emergency contacts. This information includes the accident's location, the precise time it
occurred, and the angle at which the collision happened. The rapid dissemination of these
alerts to recipients can potentially save lives, as it allows for a quick response in
emergency situations. Furthermore, this system can assist medical rescue teams in saving
The interfacing of various components used in the project has been crucial, such
as Telegram and GPS modules, and it demonstrates the practical implementation of such
projects in real life[1] . This project equips users with a comprehensive understanding of
the technologies currently employed in accident notification systems and encourages the
exploration of more effective yet less complex alternatives. In this modified application,
the alert message is transmitted using a Telegram module, while a GPS module is still
used to determine the accident's location. Additionally, a vibration sensor and a micro
detection. The message from the MEMS sensor can also be employed to determine the
angle at which the vehicle rolls over. This application offers a viable solution to address
1
1.2 Problem statement
Inconsiderate drivers on the road are to take some responsibility for an increase
in the number of accidents on traffic hazards nowadays. The country and its citizens
have suffered significant losses in terms of both life and property due to the frequent
occurrence of road traffic accidents. Therefore, if individuals are unable to call for
assistance from the outside when traffic jams occur, there will be serious
consequences. The high number of traffic fatalities and the death rate in our nation are
statistical projection of traffic fatalities, the most obvious cause of death. This is
because there was a delay in getting the information to the public of the accident to
Due to this, the purpose of the accident alert and crash detection system is to
make it faster and more efficient for other individuals to identify the location of the
accident using GPS and send that information via Telegram application. Sensors built
into cars are used by accident detection systems to identify when an accident has
occurred. In order to allow the owner or a third party to track a vehicle's location, a
or fleet of vehicles, with aim computer software at least at one operational base. This
process collects data from the field and sends it to the base of operation. GPS
technology is often used in modern vehicle tracking systems to locate the vehicle.
Through the Internet, one can view vehicle information on digital maps.
2
1.3 Objective
The objectives of this system are listed below:
• To design a system that identifies the changes in the axis of vehicles due to
a crash by using accelerometer.
• To develop an alert message that includes the user's location and information via
Telegram application.
of the car accident. The accident's location is transmitted at the same time as the
accident. When the readings reach a predetermined line that indicates a high risk
sensors, it will send messages via Telegram app to other people informing them of
and planned use are both very beneficial to the user. To ensure that the user
completes the project correctly, there are a few issues, and solutions have been
provided. There are some strict limits on this project, and if they are exceeded,
3
CHAPTER 2: LITERATURE REVIEW
2.1 Introduction
A literature review is crucial to the development of a successful system
because it helps project which is the Accident Alert and Crash Detection System,
in studying previous works from other researchers. Creating a plan to enhance the
systems' performance is also helpful. This literature review was created based on a
website that was located online. By identifying on comparison of the strength and
the weakness existing system’s usability and the user experience will help in
improving on project Accident Alert and Crash Detection System. Even though the
objectives of those projects differ with project's method and procedure are literally
the same.
The main purpose of this project is to design accident alert systems in all
vehicles, which are intended to save lives in the event of an accident. Today, GPS
systems, for instance, are very helpful because they enable the owner to keep track of
both the movement and recent activities of his vehicle. When an accident occurs, this
accident alert system finds the scene and alerts the appropriate computer, mobile
This project's primary goal is to locate accidents and notify the control room so
that the victim can get help. It can assess the seriousness of an accident without any
visual contact from the control room. It will be easy to determine how many vehicles
4
are involved in a specific accident and how serious it is if this system is installed in
every vehicle. in order for the help from the control room to obey its commands.
Because the current board design includes both vehicle tracking and accident alert
systems, it is more valuable and useful. This board issues theft and accident detection
warnings as well. This device can also detect fire accidents by coupling a fire detector
The concept behind this project is to use the GSM module to send the GPS information
from the vehicle tracking system to the desired mobile device. The vehicle tracking
system is one of the most important technological advancements for tracking vehicle
activity. The security system uses the Global Positioning System (GPS) to find the
monitored or tracked vehicle, and then transmits the coordinates and location data to the
monitoring centre via radio or satellite. The monitoring centre maps the vehicle using
several software tools. This allows for real-time tracking of the vehicles by their owners.
Figure 2.1: The project's block diagram, which illustrates how it operates
5
2.2.2 Project on Accident Detection and Alert System.[2]
The main goal of this project was to create an application that uses mobile
phone sensors like the GPS and Accelerometer to detect collisions if there is a
sudden external change in speed. This project used the Sensor Fusion Based
Algorithm, which was first developed at the dawn of the modern mobile phone era.
Security applications based on GPS were proposed with the introduction of GPS
sensors in mobile. Then they suggested unique hardware components that could
Even after all precautions have been taken, the system still recognises an
accident even though the initial focus of this project was on the system's capacity
to prevent vehicle collisions. The system immediately alerts the ambulance service
and police station after detecting a vehicle accident in order to avoid the casualty
losing their life due to a delay in receiving medical attention. In the car, the system
6
done using GPS and GSM modules. A motor (control switch) controls the engine,
and buzzers and LED lights are used as warning devices. All of these gadgets are
alerts the microcontroller when a mishap occurs so it can keep running. The GPS
module provides the precise location, speed, time, and date of the place where the
and then uses a GSM module to send the information to the police and emergency
services. The message received via mobile phone contains a google map link
indicating the location of the accident scene, helping emergency services like the
ambulance service and police station locate the victim and save lives.
• The Arduino setup is mounted in the vehicle's crash guard or in the side
bumpers.
• When a collision occurs, the push button is activated and an alert is sent to
• If the collision is not serious, the person can turn off the buzzer, and the
7
2.3 Hardware Description
The main goal of the online mechanical product identification and sorting
various I/O pins. This microcontroller is fast enough to run programmes in real
time [2]. This particular microcontroller was chosen because the experiment
memory of 4Kb, which is enough for it to store the code. The circuit is established
as shown in the following diagram, and this microcontroller has 40 pins. Figure
8
2.3.1.2 Arduino Uno
A widely used open microcontroller board called the Arduino UNO was
variety of expansion boards (shields) and other circuits can be interfaced with the
board's sets of digital and analogue input/output (I/O) pins. The board has 6
The main control system for detecting or warning when an accident occurs is the
Arduino. It gathers information from vibration sensors, GPRS, and GSM modules
and outputs it either through a message or a display system. Here, the vibration
sensor is crucial. The vehicle's vibrations will be picked up by this vibration sensor,
Arduino to transmit the message to the receiver after collecting data from all other
modules [2]
9
2.3.1.3 GPS Module
A GPS module can use the division of the earth into a number of coordinates
to quickly pinpoint a location on the planet. A SIM28M GPS is being used down
below. The abbreviation GPS stands for "global positioning system," which is used
to pinpoint a location's latitude, longitude, and time. It is the primary source of the
vehicle's latitude and longitude in the project, which is crucial for determining
where an accident occurred and even for tracking a vehicle that has been stolen.
Every single second, this GPS module receives the coordinates from the satellite.
Figure 2.5: Demonstrated a GPS module example that was applied to this project.
that is frequently incorporated into many different devices and circuits. A 16x2
LCD can display up to 16 characters per line on each of its two lines[4].
10
Figure 2.6: Display a sample LCD module that was utilised for this project.
interface pins by the microcontroller in order to control the display. The pins [5]
• A register select (RS) pin that regulates where data is written to in the
next, or a data register, which stores the information that appears on the
screen.
• A Read/Write (R/W) pin for choosing between reading and writing mode
• Eight data pins (D0 -D7). When you write or read data to or from a register,
the states of these pins (high or low) represent the bits or values that are
11
2.3.1.5 Example Coding
Figure 2.7: Show the declaration of the function input in the coding in the
example above.
Figure 2.8: Demonstrate how the programme will receive GPS data and store it in the
"ByteReceived" variable.
This project has benefited greatly from some thorough research that has been
done by looking up a few projects online. Two techniques are needed for the
project, and they have been named. Additionally, the techniques have been fully
described and discussed. Together, the two approaches will be used to make this
project successful.
12
CHAPTER 3: METHODOLOGY
3.1 Introduction
This chapter presents the data analysis in a structured manner. For analysis
and development research, technical analyses will be conducted. The project's flow
development of a vehicle accident alert and crash detection system is the main
objective of this project. In other words, this project will assist the individual in
causing a lot of attention. Therefore, this project presents a technique that can
help people to get an information about location’s accidents also provide crash
detection.
disturbances. When such disturbances occur, the module activates the location
detection component, which utilizes GPS technology to determine the user's current
detecting an accident, the system initiates an alert, sending the user's precise GPS
13
motion processor to generate highly accurate data. It aids in distinguishing risky
before, during, and after a collision. This approach ensures the rapid detection of a
rollover or collision, a vibration sensor promptly detects the event and informs the
ESP32. Subsequently, the ESP32 conveys this incident information, including the
exact location of the user, to the Telegram application. This system prioritizes the
utilizing a range of precise sensors to collect data from the field. Figure 3.1 shows
14
Figure 3.1: Flowchart of the project.
15
3.3 Software Development
Software development part consist of several process which is system
both software and hardware. Figure 3.2 shows the block diagram of the system
design.
The block diagram of the Accident Alert and Crash Detection System
is shown in Figure 3.2 In the event of an accident or crash, this alert system is
designed to notify other people and the appropriate authorities. This system
and the vibration sensor. To trigger the transmission of the accident's GPS
location, the crash must be a major accident and not a minor one, surpassing a
16
predefined threshold. In the event of a severe incident, the system will now utilize
the Telegram application as the output to send the GPS location of the accident,
code in languages like C and C++ to control the microcontroller and build various
3.3 can be adapted for programming and uploading code to ESP32 microcontrollers
compiling, and uploading code to ESP32-based boards. The IDE offers support for
a wide range of ESP32 boards and modules, making it accessible to both beginners
The IDE provides a code editor with features such as syntax highlighting
and code completion, which greatly simplify the process of writing code for ESP32.
It also includes a serial monitor that enables real-time communication with the
written code, often referred to as sketches, which can be used as building blocks
for a variety of ESP32 projects. Users can also create their own libraries to be
reused in future ESP32 projects. Overall, the Arduino IDE is a versatile and
17
Figure 3.3:Arduino IDE.
mega 328P). The board that is in use is ESP32 microcontroller. In addition, there
also some components used as well such as LCD module, Vibration Sensor,
a dual-core processor, Wi-Fi and Bluetooth connectivity, and various GPIO pins.
It is designed for a wide range of applications and is particularly suited for Internet
communication, power-saving features like deep sleep mode, and support for
communication protocols such as SPI, I2C, and UART. Additionally, it offers over-
18
Figure 3.4:Example of Esp32 Microcontroller.
keeps an eye out for any sizable impacts. The processor's pin 12 (INT), a
after an impact. These sensors are fastened to the car's sides in order to detect an
impact. To detect at least one impact, these sensor outputs are routed to the OR
gate. It is integrated into the circuit system by attaching every sensor to a gate or
other element whose output is connected to the microcontroller's int pin. As a result
of their connectivity, these sensors can detect force impacts coming from any side
of the vehicle.
19
Figure 3.5:Example of Sensor
3.4.3 Accelerometer
The ADXL335 is an analog-output, triple-axis accelerometer sensor. It is
This makes it suitable for applications where you need to measure motion and tilt
in multiple directions. The sensor provides analog voltage outputs for each axis.
The output voltage varies with the acceleration applied to the sensor. You can read
sensitivity ranges, typically ±3g, ±6g, or ±15g, by setting appropriate pins. This
enables you to tailor the sensor's sensitivity to your specific application. It has
compact package, which makes it suitable for small and portable devices.
and tilt sensing in robotics, gaming controllers, impact detection, and vibration
monitoring.
20
Figure 3.6:Accelerometer.
presented. Several flowcharts are utilized to elucidate the project's workflow and
inclusion in the project, such as a GSM module and an Arduino Uno, were
21
CHAPTER 4: RESULT AND DISCUSSION
4.1 Introduction
This chapter will explain the result obtained from the project and each of
the result A written summary of the progress made towards completing a current
project is a project progress report. It enumerates the completed tasks, the actions
taken, and the objectives attained. A progress report will contain one or more of the
following:
• Completed work;
vehicle safety solution designed to detect and respond to accidents or crashes. This
22
Upon detecting a potential accident, the system initiates a multi-step
response process. First, it interfaces with a GPS module to obtain real-time location
data, including latitude and longitude. This information is crucial for alerting
23
4.3 Hardware Result
The hardware components involved in the Accident Alert and Crash Detection System
24
4.3.2 The operation of the system
The accelerometer sensor in vibration detectors with crash detection systems notices
collision or accident. After that, an LCD screen presents the gathered GPS data, making
Output
The LCD
showed that
there had
been no
accidents
before.
25
Vibration
detects when
the crash
occurred.
Vibration
value is high
The direction
changes at the
time of the
crash are
calculated by
the
acceleromete
r sensor.
26
GPS shows
where
accidents
have
occurred in
terms of
latitude and
longitude.
4.3.3 Calculation
The x, y, and z axes formula were used to calculate the changes in direction axis for the
accelerometer.
27
The formula given:
float Ax = readAcceleration(xPin);
float Ay = readAcceleration(yPin);
float Az = readAcceleration(zPin);
return acceleration;
28
4.3.4 Telegram Integration
Role in Crash Detection: Sends automated alerts to predefined recipients with vital
Output
Popup Notification
29
Telegram
Displayed
30
One of the standout features of this system is its ability to send automated alerts to
predefined recipients through the Telegram application. These alerts contain vital
information about the accident, including GPS coordinates, and a link to view the accident
location on a map. This functionality is facilitated by the integration with the Telegram
Figure 4.4 shows the location of the accident is displayed when the maps link is clicked.
31
4.4 Project Costing
When looking at the project's listed costs, it is evident that the project is
components. The main parts, such as sensors, GPS modules, and ESP32, are
readily available and reasonably priced. The software is also open-source, which
situations. For people and organisations concerned with safety and emergency
response, its ease of use, low cost, and potential for life-saving make it a desirable
option.
32
4.5 Summary of the Chapter
Accident Alert and Crash Detection System serve as an efficient means of promptly
accelerometer data, GPS coordinates, and alerts through the Telegram application,
this system presents a comprehensive solution for bolstering road safety and
33
CHAPTER 5: CONCLUSION AND FUTURE WORK
module with the ESP32 microcontroller and Wi-Fi connectivity, creating a robust
communication channel that allows the system to send immediate alerts via the
Telegram application, along with precise location data. This integration ensures
that in the unfortunate event of an accident or crash, vital information can be rapidly
Our system's reliable accident and crash detection, based on data from a
collision, has been fine-tuned to minimize false alarms while maximizing detection
accuracy.
system's design. The inclusion of a Liquid Crystal Display (LCD) provides users
with a clear and intuitive interface to monitor the system's status and receive
important notifications. This feature is essential for building trust in the system, as
it enables users to understand how the system operates and what to expect during
various scenarios.
34
Despite these notable achievements, we recognize that our system may have
and refinement are needed to comprehensively address these limitations. While our
logging and analysis will enable post-incident reviews for continuous system
communication channel.
system's battery life, making it suitable for remote locations or areas with limited
top priorities to make our system more robust and reliable for widespread
deployment.
35
It's worth noting that the choice of using a GSM module and Arduino Uno,
rather than the ESP32 with Wi-Fi, could be a valid alternative for scenarios with
overcoming delays in sending crash alerts in areas with poor or no internet access.
environment and sustainability. While the primary goal of the system is to enhance
road safety and emergency response, we must also assess its implications for the
to consider. To minimize its impact on vehicle batteries and overall energy use, we
36
components. By extending battery life and promoting energy efficiency, we aim to
facilitating quicker emergency response and potentially saving lives, the system
aligns with broader sustainability goals related to human well-being and safety.
37
REFERENCES
CERTIFICATE,” 2014.
[3] “Arduino Uno The Arduino UNO is a widely used open-source... | Download
https://www.researchgate.net/figure/Arduino-Uno-The-Arduino-UNO-is-a-
widely-used-open-source-microcontroller-board-based-on_fig3_325220732
[4] “Standard LCD 16x2 Display - Thingbits Electronics.” Accessed: Feb. 10, 2023.
[5] “Liquid Crystal Displays (LCD) with Arduino | Arduino Documentation | Arduino
https://docs.arduino.cc/learn/electronics/lcd-displays
38
APPENDIX
39
40
41