• No results found

Safety car detection with notification system

N/A
N/A
Protected

Academic year: 2021

Share "Safety car detection with notification system"

Copied!
19
0
0

Loading.... (view fulltext now)

Full text

(1)

SAFETY CAR DETECTION WITH

NOTIFICATION SYSTEM

NUR FATHIHAH BINTI MASHUDI

Bachelor of Computer Science (Software

Engineering) with Honours

(2)

SUPERVISOR’s DECLARATION

I hereby declare that I have checked this thesis and in my opinion, this thesis is adequate in terms of scope and quality for the award of the degree of Bachelor of Computer Science (Software Engineering)

_______________________________ (Supervisor’s Signature)

Full Name : MR SYAHRULANUAR BIN NGAH Position :

(3)

STUDENT’S DECLARATION

I hereby declare that the work in this thesis is based on my original work except for quotations and citation which have been duly acknowledged. I also declare that it has not been previously or concurrently submitted for any other degree at Universiti Malaysia Pahang or any other institutions.

_______________________________ (Student’s Signature)

Full Name : NUR FATHIHAH BINTI MASHUDI ID Number : CB15062

(4)

SAFETY CAR DETECTION WITH NOTIFICATION SYSTEM

NUR FATHIHAH BINTI MASHUDI

Thesis submitted in fulfillment of the requirements for the award of the degree of

Bachelor of Computer Science (Software Engineering) with Honours

Faculty of Computer Systems & Software Engineering UNIVERSITI MALAYSIA PAHANG

(5)

ACKNOWLEDGEMENT

Alhamdulillah, all praises to Allah due to the ability and strengthen given to me, without Him, I was nobody and unable to do everything. With His permission, I manage to finish my thesis and all the requirements needed fulfil the Final Year Project Course. Plus, I would like to express my high gratitude toward the individuals that involved during the developing of this project.

First of all, high gratitude to my supervisor Mr. Syahrulanuar bin Ngah for all the guidance, supportive and positive comments along this two semester for Final Year Project course. Big thanks to all lecturers and friends of my faculty that helping me directly or indirectly.

A special thanks to both of my parents that keep encourage me to finish this thesis successfully. They also support my financial since the hardware equipment of this project a bit costly. They are also the one that boost me up when I am at down during the finishing of this thesis. May Allah grant you two in Jannah.

Next, I would like to thanks to my seniors that encourages, guidance and suggestions for me to pursue with this title of project. They are Muhammad Shahkhir bin Mozamir, Abdul Ghani bin Mohammed Othman, Fatimah Az-Zahra’ binti Mohd Sabri, Nur Atiqah binti Bukhari and Fathiyah Hanim binti Roslan.

(6)

iii

ABSTRAK

Pengesanan Kereta Keselamatan dengan Sistem Pemberitahuan adalah aplikasi mudah alih yang digabungkan dengan Arduino. Projek ini dibina dengan Mikrokontroller Arduino Uno, sensor suhu, sensor kemalangan, sensor asap, modul GPS, modul GSM, modul Bluetooth dan papan roti. Pengesanan Kereta Keselamatan ini dengan Sistem Pemberitahuan akan bermula, apabila aplikasi ini dipasang dalam peranti android dan Bluetooth dihubungkan antara android dan sensor Arduino. Seterusnya, kerana terdapat tiga sensor yang digunakan dalam projek ini, pemberitahuan akan dihantar apabila mereka mengesan mana-mana tiga sensor ini, haba (apabila suhu kereta melebihi 78 ℃), kemalangan (ketika kereta mengalami kemalangan) dan asap ( apabila jumlah intensiti asap di dalam kereta melebihi had yang dinyatakan). Kemudian, pemberitahuan akan dihantar kepada nombor yang telah diberikan, iaitu ibu bapa, ambulans dan Jabatan Bomba and Penyelamat Malaysia. Pemberitahuan ini akan mengandungi maklumat mengenai sensor jenis apa yang dikesan dan koordinasi lokasi kemalangan dengan pautan peta Google. Pengesanan Kereta Keselamatan dengan Sistem Pemberitahuan yang dibangunkan sejak bilangan orang meninggal dunia di lokasi kemalangan akibat maklumat terlambat yang diterima di keluarga mangsa kemalangan, ambulans dan Jabatan Bomba dan Penyelamat Malaysia. Tambahan pula, kebanyakan kes kemalangan berlaku di kawasan luar bandar dan laluan yang mempunyai sedikit orang diluluskan. Selain itu, Pengesanan Kereta Keselamatan dengan Sistem Pemberitahuan yang dibangunkan untuk memastikan tindakan menyelamat akan diterima dalam masa yang singkat, kerana permohonan ini akan membantu menyampaikan maklumat sebaik sahaja kemalangan itu berlaku kepada keluarga mangsa, ambulans dan Jabatan Bomba and Penyelamat Malaysia.

(7)

ABSTRACT

Safety Car Detection with Notification System is a mobile application combined with Arduino. This project built with Arduino Uno Microcontroller, temperature sensor, crash sensor, gas sensor, GPS module, GSM module, Bluetooth module and breadboard. This Safety Car Detection with Notification System will initiate, when this application installed in an android device and the Bluetooth is connected between the android and the Arduino sensors. Next, since there are three sensors used in this project, the notification will be send when they detect any of these three sensors, heat (when temperature of the car is exceeding 78℃), crash (when the car experienced crash) and gas(when the intensity volume of gas in the car exceed the limit stated). Then, a notification will be deliver to the number has been assigned, i.e. parent, ambulance and Malaysia Fire and Rescue Department. The notification will contain the information of what kind sensor detected and the coordination of accident location with the Google maps link. Safety Car Detection with Notification System developed since the number of people died at the location of accident due to the late information received at the family of accident victims, ambulance and Malaysia Fire and Rescue Department. Plus, most of the accident case occurred at rural area and route that has small number of people passed by. Plus, the Safety Car Detection with Notification System developed in order to ensure the rescue action will received in short of time, since this application will help to deliver information as soon as the accident occurred to the family of victims, ambulance and Malaysia Fire and Rescue Department.

(8)

v TABLE OF CONTENT DECLARATION TITLE PAGE i ACKNOWLEDGEMENT ii ABSTRAK iii ABSTRACT iv TABLE OF CONTENT v LIST OF TABLES ix LIST OF FIGURES x LIST OF ABBREVIATION xi INTRODUCTION 1 1.1 Introduction 1 1.2 Problem Statement 2

1.3 Goals and Objectives 2

1.4 Scopes 3

1.5 Thesis Organization 3

LITERATURE REVIEW 5

2.1 Introduction 5

2.2 Current Existing System 5

2.2.1 Fire, Temperature and Collision Detection and Notification System (Fatimah Az-Zahra’ binti Mohd Sabri, Nur Atiqah binti Bukhari and

Fathiyah Hanim binti Roslan) 6

(9)

2.2.3 Automatic Vehicle Accident Detection and Messaging System Using GSM and GPS Modem (Prabha, Sunitha and Anitha) 7 2.3 Proposed System: Car Safety Detection with Notification System 8

2.4 Comparisons between Each Systems 8

2.5 Summary 11

METHODOLOGY 12

3.1 Introduction 12

3.2 Rapid Application Development (RAD) 13

3.2.1 Requirement Planning 13

3.2.2 User Design 15

3.2.2.1 Flowchart of the System 16

3.2.2.2 Context Diagram 18

3.2.2.3 Data Flow Diagram 19

3.2.2.4 Use Case Diagram 20

3.2.3 Construction 20

3.2.4 Cutover 21

3.3 Software Requirement Specification (SRS) 21

3.4 Software Design Document (SDD) 22

3.5 Hardware and Software 22

3.5.1 Arduino Uno Microcontroller 22

3.5.2 Gas Sensor MQ-2 24

3.5.3 Temperature Sensor LM35 25

3.5.4 Crash Sensor 26

3.5.5 GSM Shield SIM900 27

(10)

vii

3.5.7 Bluetooth Module HC-05 29

3.6 Gantt chart 30

IMPLEMENTATION, TESTING, RESULT & DISCUSSION 31

4.1 Introduction 31

4.2 Implementation 31

4.2.1 Tools and Technologies 31

4.2.2 Arduino Design 33

4.2.3 Database Design 38

4.3 Design Interface Description 38

4.3.1 Main Page Interface 39

4.3.2 Status Page Interface 40

4.3.3 Manage Receiver Interface 41

4.4 Testing, Result and Discussion 41

CONCLUSION 43

5.1 Introduction 43

5.2 Project Constraint 44

5.2.1 Time Constraint 44

5.2.2 Hardware and Software Constraint 44

5.3 Future Work 44

REFERENCES 45

APPENDIX A SOFTWARE REQUIREMENT SPECIFICATION (SRS) 47 APPENDIX B SOFTWARE DESIGN DOCUMENT (SDD) 48 APPENDIX C USER ACCEPTANCE TEST (UAT) 49

(11)
(12)

ix

LIST OF TABLES

Table 2.1 The Comparisons between the existing systems with the proposed

systems 9

Table 3.1 Budget planning for hardware requirement 13

Table 3.2 Functions of hardware 14

Table 3.3 Hardware Requirement Used 22

Table 3.4 Software Tools Used 22

Table 3.5 Specifications of Arduino Uno Microcontroller 23 Table 4.1 Events for testing, result and discussion. 42

(13)

LIST OF FIGURES

Figure 3.1 RAD Software Development Model 12

Figure 3.2 Fire, Temperature & Collision and Notification System 16 Figure 3.3 Flow chart Safety Car Detection with Notification System 17

Figure 3.4 Context Diagram 18

Figure 3.5 Data Flow Diagram 19

Figure 3.6 Use Case Diagram 20

Figure 3.7 Arduino Uno Microcontroller 23

Figure 3.8 Gas Sensor MQ-2 25

Figure 3.9 Temperature Sensor LM35 26

Figure 3.10 Crash Sensor 27

Figure 3.11 GSM Module 28

Figure 3.12 GPS Module 28

Figure 3.13 Bluetooth Module HC-05 29

Figure 4.1 Code in MIT App Inventor 32

Figure 4.2 Code in Arduino IDE 32

Figure 4.3 Physical Design GSM 33

Figure 4.4 Source Code of GSM 34

Figure 4.5 Physical design of GPS 34

Figure 4.6 Source code of GPS 35

Figure 4.7 Physical design of Gas Sensor MQ-2 35

Figure 4.8 Source code of Gas Sensor MQ-2 36

Figure 4.9 Physical design of Temperature LM35 Sensor 36

Figure 4.10 Source code of Temperature LM35 Sensor 37

Figure 4.11 Physical design of Bluetooth Module HC-05 37

Figure 4.12 Design of database using TinyDB 38

Figure 4.13 Main Page Interface 39

Figure 4.14 Status Page Interface 40

(14)

xi

LIST OF ABBREVIATION

ABBREVIATIONS TITLE

5V 5 Volt

CASE Computer-Aided Software Engineering

DFD Data Flow Diagram

GND Ground

GPRS General packet Radio Services

GPS Global Positioning System

GSM Global System for Mobile Communication

LED Light Emitting Diode

MEMS Micro Electro Mechanical Systems

MIT Massachusetts Institute of Technology

OS Operating System

RAD Rapid Application Development

RFID Radio Frequency Identification

RX Pin 0 on Arduino Uno Microcontroller

SDD Software Design Document

SIM Subscriber Identity Module

SMS Short Message Service

SRS Software Requirement Specification

TX Pin 1 on Arduino Uno Microcontroller

UMP Universiti Malaysia Pahang

(15)

INTRODUCTION

1.1 Introduction

Malaysia has been ranked in top 20 country that has highest rate of death caused by accidents. The statistic of the death caused by car issues in Malaysia increased to 70% regarding to (Muhammad, 2015). The statistic of accident in Malaysia keep increasing from year to year. There are several cause that can lead to car accidents, they are poor of car maintenance, dangerous driving behaviour and natural disasters.

Most of car accident occurs at the rural and isolated places will have difficulties to get a quick bailout. Sometimes, victim's life of the accident can be saved but they cannot be saved due to the late information delivered to the person in charge. Plus, there are accidents that can be prevent it from happens, for example car explosions. Car explosions occurs due to the very high temperature of the car engines. If there are alert told that the car engine was on high temperature, the driver can take fast action to cooling down the engines, so the car explosion will not occurs.

Existing system that helps to reduce the number of death regarding car issues already invented. It is a system that can detect collision, fire and gas. This system also functioned to send information regarding these detection to a mobile phone number when they detect these sensors. However, the system invented cannot send the notification to multiple phone number at once. Thus, the issue to reduce the number of death still cannot be solve. Moreover, the system still not stable and efficient as they only can inform one type of detection although there are 3 detection occurs at once.

(16)

2

1.2 Problem Statement

The existing system invented can send the information regarding the accident, but only one mobile phone number at once. Supposedly, the system should send the information to multiple number at once. When only one mobile phone number received the information, it might be that the information was not delivered to the person due to the battery drained or the person was not in feasible condition.

Next, the system also cannot update or reset the designated mobile phone number to the new one. Assume that, nobody will use the same car until the end of their life. Most of people will change their car due to increasing number of family members or to make usability of the car more flexible. Thus, the system should update the mobile phone number to the new one since the owner of the car has changed.

Moreover, the three sensors which collision, heat and gas cannot functioned simultaneously. Mostly, an accident can have a collision and gas, gas and temperature, collision and temperature, and three of them at once. Thus, to make sure that the system will inform all the sensors detected not only one sensor was detected.

1.3 Goals and Objectives

The goal for this project is to develop a system that can help people to take fast actions when someone or their relatives involved in an accident. In order to achieve this goal, the following objectives must be followed:

i. To propose system for car safety detection that can detect three sensors, gas, temperature and crash

ii. To design and develop a prototype that contains variety sensors to transmit the information regarding the accident to the designated person.

iii. To verify that the system can send notification automatically and can update the phone number to the prototype using mobile application.

(17)

1.4 Scopes

Scope itself define the extent of the area or subject matter that something deals with or to which it is relevant. For this Car Safety Detection with Notification System there are a few scopes has been highlighted for this project.

i. The scope of this project is focusing on the three sensors which are heat detection, gas detection and collision detection, also to notify the designated person the location that occurred accident.

ii. The scope of this project is for users in car environment only. iii. The scope of this project focusing for android environment. iv. The scope for this project focusing for the car outside the building.

1.5 Thesis Organization

Briefly, this thesis consists of five chapters. Each chapter are different to each of them. The list of the chapters are:

i. Chapter 1: Introduction. ii. Chapter 2: Literature Review. iii. Chapter 3: Methodology.

iv. Chapter 4: Implementation, Testing, Result and Discussion. v. Chapter 5: Conclusion.

Chapter 1 explaining on the main cause of this project invented. Starting from the problem statement, objectives and scopes.

Chapter 2, Literature Review where all the comparisons between the existing projects with proposed projects been made. This is to ensure the proposed project choose and implement the most appropriate method.

Chapter 3, Methodology which state which software models will be used along the developments of this project. Plus, there also mentioned the advantages of the software models chosen for this project.

(18)

45

REFERENCES

Anh, H. N. (2016). Smartphone Industry: the New Era of Competition and Strategy. Centria University of Applied Sciences, 43.

Arduino Temperature Sensor Using LM35: 3 Steps. (n.d.). Retrieved December 11, 2018, from https://www.instructables.com/id/Arduino-Temperature-Sensor-Using-LM35/

Baxter, R., Hastings, N., Law, A., & Glass, E. J. . (2008). Arduino Uno R3 Datasheet. Animal Genetics, 39(5), 561–563. https://doi.org/10.1017/CBO9781107415324.004

Chaklader, S., Alam, J., Islam, M., & Sabbir, A. S. (2014). Black Box: An emergency rescue dispatch system for road vehicles for instant notification of road accidents and post crash analysis. 2014 International Conference on Informatics, Electronics and Vision, ICIEV 2014. https://doi.org/10.1109/ICIEV.2014.6850749

CO., F. E. (2015). Bluetooth module HC05 Bluetooth module HC05 Features. Journal of Spacecraft and Rockets, 1–3.

Collision Sensor. (n.d.). Retrieved December 11, 2018, from https://potentiallabs.com/cart/collision-sensor-module

Grove - Gas Sensor(MQ2). (n.d.). Retrieved December 11, 2018, from http://wiki.seeedstudio.com/Grove-Gas_Sensor-MQ2/#features

Kloss, J. h. (2012). Android apps with App Inventor.

Lee, S., Tewolde, G., & Kwon, J. (2014). Design and implementation of vehicle tracking system using GPS/GSM/GPRS technology and smartphone application. Internet of Things (WF-IoT), 2014 IEEE World Forum On, 2(March), 353–358. https://doi.org/10.1109/WF-IoT.2014.6803187

Location detection when GPS doesn’t work | MIT News. (n.d.). Retrieved December 11, 2018, from http://news.mit.edu/2018/wireless-location-detection-gps-0123

McKee, T. E. (2014). The Importance of Data Integrity. CPA Journal, 84(7), 6–7. https://doi.org/10.1016/B978-0-12-397167-8.00002-9

Processes, D. B., Analysis, P. D., Systems, I. C., & Development, J. A. (n.d.). RAD ( Rapid Application Development ).

Rajnikant, T. K. (2012). Mobile Application Development using App Inventor for Android Devices Kiran Trivedi , India, (June).

(19)

Ramani, R., Valarmathy, S., SuthanthiraVanitha, N., Selvaraju, S., Thiruppathi, M., & Thangam, R. (2013). Vehicle Tracking and Locking System Based on GSM and GPS. International Journal of Intelligent Systems and Applications, 5(9), 86–93.

https://doi.org/10.5815/ijisa.2013.09.10

Web, W. W., & Inventor, A. (n.d.). Working with Databases Storing Persistent Data in TinyDB.

Xuguang, H. (2009). An Introduction to Android. Dababase Lab. Inha Univeristy, (October). https://doi.org/10.1002/mus.23576

Yuvaraju., M., & Monika, M. (2017). International journal of engineering sciences & research technology smart home automation system using arduino *, 6(3), 170–175.

References

Related documents

In a historical context in which a man did not need permission to beat his wife, the Qur’an restricted domestic violence by prescribing certain procedures for the resolution of

In view of the state management, the Vietnam Inland Waterway Association, said that the biggest inadequacies limit the efficiency of inland waterways,

Maternal death reviews at Bugando hospital north western Tanzania a 2008?2012 retrospective analysis Magoma et al BMC Pregnancy and Childbirth (2015) 15 333 DOI 10 1186/s12884 015 0781

This international collaboration was initiated to (i) assign consensus opsonic indexes (OIs) to FDA pneumococcal reference serum lot 007sp (here referred to as 007sp) and a panel

In funerary sculpture of such undistinguished style as the dexiosis scene on the loutrophoros, prosopographical inferences are particularly dangerous, but it is safe to

While this difficulty was avoided in part by the the use of each F1 plant as both seed and pollen parent of back-crosses, no account was taken of

This result indicates that yeast cells carefully regulate glucose use by tightly coregulat- ing the first steps of glucose metabolism (its transport across the plasma membrane and

General features of viable alleles: WRIGHT (1968) isolated three mutations as temperature sensitive non- complementers of mys’, and since a tight mys” allele could be