Emergency Alert System And Data Recording In A Car.

(1)

EMERGENCY ALERT SYSTEM AND DATA RECORDING IN A CAR

Piragas A/L Rajoo

This Report Is Submitted In Partial Fulfillment of Requirements For The Bachelor Degree in Electronic Engineering (Computer Engineering)

Faculty of Electronics and Computer Engineering(FKEKK) UNIVERSITI TEKNIKAL MALAYSIA MELAKA


(2)

ii

UNIVERSTI TEKNIKAL MALAYSIA MELAKA

FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

BORANG PENGESAHAN STATUS LAPORAN

PROJEK SARJANA MUDA II

Tajuk Projek : ………

………

Sesi Pengajian

:

Saya ……….. (HURUF BESAR)

mengaku membenarkan Laporan Projek Sarjana Muda ini disimpan di Perpustakaan dengan syarat-syarat kegunaan seperti berikut:

1. Laporan adalah hakmilik Universiti Teknikal Malaysia Melaka.

2. Perpustakaan dibenarkan membuat salinan untuk tujuan pengajian sahaja.

3. Perpustakaan dibenarkan membuat salinan laporan ini sebagai bahan pertukaran antara institusi pengajian tinggi.

4. Sila tandakan ( ) :

SULIT*

*(Mengandungi maklumat yang berdarjah keselamatan atau kepentingan Malaysia seperti yang termaktub di dalam AKTA RAHSIA RASMI 1972)

TERHAD** **(Mengandungi maklumat terhad yang telah ditentukan oleh organisasi/badan di mana penyelidikan dijalankan) TIDAK TERHAD


(3)

iii

“I hereby declare that the work in this project is my own except for summaries and quotations which have been duly acknowledge.”

Signature : ...

Author : ...


(4)

iv

“I acknowledge that I have read this report and in my opinion this report is sufficient in term of scope and quality for the award of Bachelor of Electronic Engineering (Industrial Electronics/ Computer Engineering/ Electronic Telecommunication/

Wireless Communication)* with Honours.”

Signature : ...

Supervisor’s Name : ...


(5)

v


(6)

vi

ACKNOWLEDGEMENT

First and foremost I would like to take this oppurtunity to convey my appreciation to all those who have contributed their time, space and efforts to lend a helping hand and hence allowed me to get invaluable knowledge. In addition, I would like to reserve a special thanks to my supervisor, En.Vigneswara Rao for his excellent in supervising and mentoring. His comments and constructive criticism has been instrumental and became pivotal role throughout my project development.

After that, I wish to thank the countless individuals who had contributed their constant views and evaluations in accessing my progress at all time. And finally, I would also like to express my deepest gratitude to my family and friends who had provided plenty of important discussions with critical inputs from time to time. It would have been impossible to complete a project of like this without their support


(7)

vii

ABSTRAK

Tujuan utama sistem notifikasi wayarles kemalangan kereta ini adalah untuk menghantar mesej pesanan ringkas ke Pusat perkhidmatan Kecemasan sejurus kemalangan di jalan raya. Biasanya sewaktu kemalangan berlaku mangsa memerlukan bantuan kecemasan, dan situasi pemandu yang berkemungkinan kritikal ini akan menyukarkan beliau untuk menghubungi orang luar. Dalam mesej pesanan ringkas ke pusat kecemasan, lokasi kemalangan, berserta dengan masa dan jumlah penumpang kenderaan juga dihantar untuk memudahkan proses penyediaan bantuan. Selain dari itu, sistem ini juga merekod infromasi kemalangan seperti lokasi , data pemilik kenderaan, masa, kelajuan dan pecutan semasa kemalangan. Informasi ini boleh digunakan untuk proses analisis selepas kemalangan oleh pihak insurans dan polis. Modul Global Positioning System(GPS) digunakan untuk mendapatkan data kemalangan dan modem Global System for Mobile Communication (GSM) digunakan untuk menghantar mesej. Sistem ini juga mempunyai butang pembatalan mesej, diaman tiada kecederaaan parah dialami oleh pemandu. Disamping itu sistem ini juga mempunyai fungsi pengesanan kecurian kereta. Sistem ini sememangya mempunyai potensi tinggi di pasaran kereta. Sistem ini dapat dipasang secara mudah di semua kereta tanpa mengira jenis atau jenama kenderaan. Sistem ini juga dapat dintegrasikan dengan GPS sedia ada didalam kereta. Sistem pengesanan kecurian dalam projek ini juga dapat menarik perhatian pengguna. Selain dari itu kos pembinaan projek ini juga berpatutan dan kos efektif.


(8)

viii

ABSTRACT

The main purpose of this project is to create an automated emergency alert system in the incident of accident. With the advent in science field things become automated. During the occurrence of the accident, the fatally injured driver would face a big problem in reaching out for help.. Besides that, one can not always expect help to be reached out once accident occurs. If the accident took place in a place where the are no people around, things would be to dangerous for the driver. Hence this system could solve this problem by sending a message directly to the emergency service centre whenever accident occurs. The crash sensor automatically acts as the accident trigger. The GPS module gets in the location during collision and the GSM modem is used to send the message. Not all accident involves fatal injury. In this case, the driver could cancel out the message by clicking the cancel button in the system. This would avoid unnecessary call for the ambulance. Inside the system there is a SD card that saves information such as the driver’s information, location, time, speed and acceleration during accident. This data will be used by the insurance company and police for post crash analysis. Besides that this system is also equipped with theft detection system that will inform the car owner of unauthorized entry in the car. This system has a high potential in the market as it is a life saving device. It is easily fixed in any cars regardless of the car’s model and brand. In addition this system is has theft detection function that could convince the buyers. In short this system is a cost effective system that should be installed in every car.


(9)

ix

TABLE OF CONTENTS

CHAPTER CONTENT PAGE

PROJECT TITLE i

DECLARATIONS iii

DEDICATION v

ACKNOWLEDGEMENT vi

ABSTRAK vii

ABSTRACT viii

TABLE CONTENTS ix

LIST OF GRAPHS xiii

LIST OF TABLES xiii

LIST OF FIGURES xiv

LIST OF APPENDIX xvi

LIST OF ABBREVIATIONS xvii

I INTRODUCTION

1.1 Overview 1

1.2 Objectives 2

1.3 Problem Statement 3


(10)

x

1.5 Overview 3

II LITERATURE REVIEW

2.1 Introduction 5

2.2 Literature Review and Background 6 2.2.1 Journal of Design And 6 Implementation of Car Black

Box Based on Embedded System

2.2.2 Journal of GSM-based 8 Notification Speed Detection

For Monitoring Purposes

2.2.3 Journal of Accident Detectio 10 And Reporting System using GPS,

GPRS and Technology

2.2.4 Journal of Automobile 12 Localization System Using GPS

And GSM/GPRS Transmission

2.2.5 Journal of An Emergency rescu 14 dispatch system for road vehicles

for instant notification of road accidents and post crash analysis

2.2.6 Journal of An automated system 16 For Accident Detection (ASAD)

2.2.7 Journal of Microcontroller 17 Based Collision Detection and

Warning System

2.2.8 Journal of Vehicle Accident Automatic 19 Detection and Remote Alarm Device


(11)

xi

2.3 Difference between previous article reviews 21

2.5 Summary 23

III PROJECT METHODOLOGY 3.1 Introduction 24

3.2 Flowchart Of overall project 25

3.2.1 Literature Review and Planning 26

3.2.2 Hardware Implementation 26

3.2.3 Microcontroller Programming 27

3.2.4 Gantt Chart 27

3.3 Flowchart of detailed design of project 28

3.3.1 Project Flow 29

3.4 System Flow Diagram of device 30

3.5 Components Used 31

3.5.1 GPRS SIM 900A 31

3.5.2 SKGPS-53 33

3.6 Programming the microcontroller 34

IV RESULT AND DISCUSSION 4.1 Parameters calculation 36


(12)

xii

4.2.1 User Registration Input 47

4.2.2 Accident Notification 40

4.2.3 Theft notification 42

4.3 Final Product 44

4.4 Result Analysis 45

4.5 Result Discussion 50

4.6 Sustainability 52

4.7 Potential Commercialization 53

V CONLUSION AND RECOMMENDATIONS 5.1 Conclusions 55

5.3 Project Recommendations 56


(13)

xiii

LIST OF GRAPHS

NO TITLE PAGE

4.1 Position stability in car (Latitude) 46

4.2 Position stability in car (Longitude) 46

4.3 Position stability in building (Latitude) 47

4.4 Position stability in buidling (Longitude) 48

LIST OF TABLES NO TITLE PAGE 2.1 Summarization of previous studies 21

4.1 Comparison of the position obtained from the 45 car and from the building


(14)

xiv

4.2 Latitude Comparison 48

4.3 Longitude Comparison 48

LIST OF FIGURES NO TITLE PAGE 2.1 The hardware structure of the system 7

2.2 Overall view of project 9

2.3 The component connectivity of the entire device. 15

2.4 Interior Circuit 18

2.5 Final Circuit 20

3.1 Flowchart of Project 25

3.2 Gantt Chart 27

3.3 Flowchart of detailed Project Design 28

3.4 System Flow Diagram 30


(15)

xv

3.5 GPRS SIM 900A 31

3.6 Message command in Serial Com 32

3.7 SKGPS-53 33

3.8 Example of programming in Arduino IDE 34

4.1 Name (Input) 37

4.2 IC (Input) 37

4.3. Number plate (Input) 38

4.4 No of people in car (Input) 38

4.5 Data saved in Sd card 39

4.6 Accident triggered Display 40

4.7 Accident Notification Message 41

4.8 Theft Notification Message 42

4.9 The Serial Com once the switch activated 43

4.10 Final Prototype 44

4.11 Interior Circuit 44

4.12 Car charger 50

4.13 Car crash sensor 51

4.14 Potential Customer 53

A.1 Arduino Atmega Datasheet 60

A.2 SIM900A pin Datasheet 61


(16)

xvi

LIST OF APPENDIX

NO TITLE PAGE

A Microcontroller Datasheet 60 B SIM900A Datasheet 61 C SKGPS-53 62


(17)

xvii

LIST OF ABBREVIATIONS

GPS - Global Positioning System

GSM - Global System for Mobile Communication

JPJ - Jabatan Pengangkutan Jalan Raya

SD - Secure Digital

GPRS - Global Packet Radio Service RAM - Random Access Memory SMS - Short Service Message PC - Personal Computer

ADC - Analog to Digital Converter TDMA - Time Division Multiple Access

CDMA - Code Divison Multiple Access

PIC - Programmable Integrated Chip

ASAD - Automated System for Accident Detection

CMD - Command

IDE - Integrated Drive Electronics

IP - Internet Protocol


(18)

1

CHAPTER 1

INTRODUCTION

This chapter presents the background of the study, problem statement, objective of the study, and the scope of project. The background of the study is focused on the working method of the emergency alert system of the car and the data recording. The problem statement reveals the impact of main purpose of this research. In the objectives, the intention of this study is to propose an emergency alert system in a car to save the passenger of the car. At the end of this chapter, the scope of study highlights the focus and mechanism of the project.

1.1 Project Overview

Basically this a project on creating a device that could send an alert message to ambulance whenever an accident occurs. Normally it would take some time before the


(19)

2

ambulance is informed about the occurrence of the accident. Every single minute counts as it involves life matter. With this system installed in the car whenever there is a major impact an alert message will be sent to the ambulance to inform the occurrence of the accident. Besides that this system also records data such as speed during impact the location and time takes for the car to stop. This device will be installed beside the the seat of the car driver to avoid any damage during accidents. Impact sensors will be fixed at the front bumper of the car and will be connected to the microcontroller inside the device. There will be a Global Positioning System (GPS) tracker installed to calculate the speed and location of the car. A Global System for Mobile Communication (GSM) modem will be connected to the microcontroller and whenever the impact sensor and the speed changes drastically, through this modem message will be sent to the ambulance. The device has a micro Secure Digital (SD) card that records data during accident.

1.2 Problem Statement

Accidents involve life matter, and whenever an accident occurs it could take some time before the ambulance is informed of the accident occurrence. Hence this device is created to send message instantly to the ambulance once the accident occurs. This invention could be a life saving device. Since it is hard for the insurance company to determine the cause of the accident, with this device, the insurance company can have the access of the data during accident. With this the insurance company could analyze the true cause of the accident.


(20)

3

1.3 Objectives of Project

1. To create a device that could send alert message immediately to the emergency service centre once accident occurs.

2. To create a device that could record speed , location and the acceleration during impact.

1.4 Scope of Project

Basically this project will be limited on creating an system for a car that would send alert messages to the ambulance. This device is also capable of recording data such as speed and braking time of the car and its location. Any other aspects such as video recording during accident , accidents in water will not be covered in this. This project is just is limited to be used in a car and cant be used in any other vehicle.

1.5 Overview

Completely, this report consists of 5 main chapters and there are Introduction, Literature Review, Methodology, Result & Analysis and Conclusion & Recommendation. In Chapter 1, the introduction is briefly explained the overview of the whole project and why it must be implemented in real life. It is highlighting on the background, project objectives, problem statement, methodology and scope of work on the operation of the emergency notification system. In order to achieve the objective the methods that have been used in the project are explained in detail in Chapter III. This chapter also briefly explains the development of the project. It includes the integration of hardware and software that have been used in this project. Chapter IV is a Result &


(21)

4

Analysis that explained analysis of the circuits. Conclusion & Recommendation are included in Chapter V. This chapter discusses on the overall conclusion and how it can be improved for further development.


(22)

5

CHAPTER II

LITERATURE REVIEW

This chapter extend the literature reviews that cater the information in accordance with the objectives of this project. This section includes the following elements: alert message sending, detecting the accident, and saving data for post crash analysis. The relevant information and other extra features were gathered as shown below.

2.1 Introduction

In this chapter, there will be discussion and description of information that is related to the objectives of studies. This section includes the following elements such as the GSM modem, GPS module, calculating speed and location of impact. In the hardware section, the way of connection between components are described. The way of


(23)

6

communications between the emergency service centre and the car are explained in detailed.

2.2 Literature Review and Background Study

In this section, the background study regarding to alert notification and car black box will be discussed. The information is acquired from various resources such as journals, online articles and relevant previous research paper. Most of the researches are based on the previous similar projects that have been conducted which are related to this study. Resources such as articles or journals from IEEE (Institute of Electrical and Electronics Engineering) are utilized as reference and provide a better understanding in term of the implementation and simulation of this project.

2.2.1 Journal of Design and Implementation of Car Black Box Based on Embedded System

Basically this journal emphasizes on the role of a microcontroller in a Black Box system of a car. This system has the ability to not only record the main driving data of the cat comprehensively and accurately in real-time, but also reconstruct the accident with data process software, which can help people analyze the accident rapidly and legitimately after a collision. Beside that this black box also could also receive real-time data including driving speed, rev, light, tire pressure, brake car door, lay-up and life belt, and also process the data and store it in RAM [1].

This system basically save the record informational and displays it. This car system certainly plays a very important role in preventing speeding and motorbike offences, restricting the car offences, avoiding accidents ,controlling road offences and etc [1]. Talking about the analyzing function, this system is equipped with wire less


(24)

7

communication system can send accident location information to emergency centre and. Hence drivers who are in desperate need for help, they could receive immediate help. This car Black Box detects a car crash and also records the motion of the vehicle and driver’s actions during a set time of period before and after the accident. The information recorded consists of information about cars status and the driver’s actions. In addition the Car Black Box not only records data before and during collision but also the record after a collision[1]. With this technology many accident related problems related to car accident like such as insurance problems, laws can be managed. This system can provides analysis of the car and help in crash incestigations.In addition this system has alarm that sounds, once speed is over limit.

Figure 2.1: The hardware structure of the system Reset circuit SDRAM Microcontroller AUDI0 OO SD A/D USB LCD I/O CAN RS-232 POWER OO


(1)

ambulance is informed about the occurrence of the accident. Every single minute counts as it involves life matter. With this system installed in the car whenever there is a major impact an alert message will be sent to the ambulance to inform the occurrence of the accident. Besides that this system also records data such as speed during impact the location and time takes for the car to stop. This device will be installed beside the the seat of the car driver to avoid any damage during accidents. Impact sensors will be fixed at the front bumper of the car and will be connected to the microcontroller inside the device. There will be a Global Positioning System (GPS) tracker installed to calculate the speed and location of the car. A Global System for Mobile Communication (GSM) modem will be connected to the microcontroller and whenever the impact sensor and the speed changes drastically, through this modem message will be sent to the ambulance. The device has a micro Secure Digital (SD) card that records data during accident.

1.2 Problem Statement

Accidents involve life matter, and whenever an accident occurs it could take some time before the ambulance is informed of the accident occurrence. Hence this device is created to send message instantly to the ambulance once the accident occurs. This invention could be a life saving device. Since it is hard for the insurance company to determine the cause of the accident, with this device, the insurance company can have the access of the data during accident. With this the insurance company could analyze the true cause of the accident.


(2)

1.3 Objectives of Project

1. To create a device that could send alert message immediately to the emergency service centre once accident occurs.

2. To create a device that could record speed , location and the acceleration during impact.

1.4 Scope of Project

Basically this project will be limited on creating an system for a car that would send alert messages to the ambulance. This device is also capable of recording data such as speed and braking time of the car and its location. Any other aspects such as video recording during accident , accidents in water will not be covered in this. This project is just is limited to be used in a car and cant be used in any other vehicle.

1.5 Overview

Completely, this report consists of 5 main chapters and there are Introduction, Literature Review, Methodology, Result & Analysis and Conclusion & Recommendation. In Chapter 1, the introduction is briefly explained the overview of the whole project and why it must be implemented in real life. It is highlighting on the background, project objectives, problem statement, methodology and scope of work on the operation of the emergency notification system. In order to achieve the objective the methods that have been used in the project are explained in detail in Chapter III. This chapter also briefly explains the development of the project. It includes the integration of hardware and software that have been used in this project. Chapter IV is a Result &


(3)

Analysis that explained analysis of the circuits. Conclusion & Recommendation are included in Chapter V. This chapter discusses on the overall conclusion and how it can be improved for further development.


(4)

CHAPTER II

LITERATURE REVIEW

This chapter extend the literature reviews that cater the information in accordance with the objectives of this project. This section includes the following elements: alert message sending, detecting the accident, and saving data for post crash analysis. The relevant information and other extra features were gathered as shown below.

2.1 Introduction

In this chapter, there will be discussion and description of information that is related to the objectives of studies. This section includes the following elements such as the GSM modem, GPS module, calculating speed and location of impact. In the hardware section, the way of connection between components are described. The way of


(5)

communications between the emergency service centre and the car are explained in detailed.

2.2 Literature Review and Background Study

In this section, the background study regarding to alert notification and car black box will be discussed. The information is acquired from various resources such as journals, online articles and relevant previous research paper. Most of the researches are based on the previous similar projects that have been conducted which are related to this study. Resources such as articles or journals from IEEE (Institute of Electrical and Electronics Engineering) are utilized as reference and provide a better understanding in term of the implementation and simulation of this project.

2.2.1 Journal of Design and Implementation of Car Black Box Based on Embedded System

Basically this journal emphasizes on the role of a microcontroller in a Black Box system of a car. This system has the ability to not only record the main driving data of the cat comprehensively and accurately in real-time, but also reconstruct the accident with data process software, which can help people analyze the accident rapidly and legitimately after a collision. Beside that this black box also could also receive real-time data including driving speed, rev, light, tire pressure, brake car door, lay-up and life belt, and also process the data and store it in RAM [1].

This system basically save the record informational and displays it. This car system certainly plays a very important role in preventing speeding and motorbike offences, restricting the car offences, avoiding accidents ,controlling road offences and etc [1]. Talking about the analyzing function, this system is equipped with wire less


(6)

communication system can send accident location information to emergency centre and. Hence drivers who are in desperate need for help, they could receive immediate help. This car Black Box detects a car crash and also records the motion of the vehicle and driver’s actions during a set time of period before and after the accident. The information recorded consists of information about cars status and the driver’s actions. In addition the Car Black Box not only records data before and during collision but also the record after a collision[1]. With this technology many accident related problems related to car accident like such as insurance problems, laws can be managed. This system can provides analysis of the car and help in crash incestigations.In addition this system has alarm that sounds, once speed is over limit.

Figure 2.1: The hardware structure of the system Reset circuit

SDRAM

Microcontroller

AUDI0 OO SD A/D USB

LCD

I/O CAN RS-232 POWER OO