FATIN SHAHIRAH BINTI AMANZURIA
Transcript of FATIN SHAHIRAH BINTI AMANZURIA
HOME SECURITY ALERT SYSTEM USING ARDUINO AND
GSM TECHNOLOGY
FATIN SHAHIRAH BINTI AMANZURIA
Bachelor of Computer Science with Honours
(Network Computing)
2020
HOME SECURITY ALERT SYSTEM USING ARDUINO AND
GSM TECHNOLOGY
FATIN SHAHIRAH BINTI AMANZURIA
This project is submitted in partial fulfillment of the
requirements for the degree of Bachelor of Computer
Science with Honours
(Network Computing)
Faculty of Computer Science and Information Technology
UNIVERSITI MALAYSIA SARAWAK
2020
HOME SECURITY ALERT SYSTEM USING ARDUINO AND
GSM TECHNOLOGY
FATIN SHAHIRAH BINTI AMANZURIA
Projek ini merupakan salah satu keperluan untuk
Ijazah Sarjana Muda Sains
Komputer dan Teknologi Maklumat (Pengkomputeran Rangkaian)
Faculty of Computer Science and Information Technology
UNIVERSITI MALAYSIA SARAWAK
2020
FORM B
DECLARATION
I Fatin Shahirah Binti Amanzuria hereby declare that the project Home Security Alert System
Using Arduino and GSM Technology is my original work. I have not copied from any other
student’s work and from any other sources except where due reference or acknowledgement is
not made explicitly in the text, nor has any part had been written for me by another person.
Signature,
Fatin
FATIN SHAHIRAH BINTI AMANZURIA, 55978
Faculty of Computer Science and Information Technology
University Malaysia Sarawak.
Date: 14th August 2020
i
ACKNOWLEDGEMENT
First and foremost, I praise to Allah SWT, the Almighty, for giving me a chance,
determination, and strength to carry on with my Final Year Project. I am using this opportunity
to express my gratitude to everyone who had been supporting me throughout completing this
project from the beginning until the end.
I would like to express my deep gratitude to my supervisor, Madam Azlina Binti
Ahmad Julaihi for her patient guidance, enthusiastic encouragement and always provide
useful suggestions for this project. I would also like to thank the Final Year Project
coordinator, Prof. Wang Yin Chai who had arranged a useful lesson during lectures and Final
year Project workshop. My grateful thanks are also extended to my examiner, Mr Abdul
Rahman Bin Mat who provides constructive comments and feedbacks regarding my Final
Year Project.
Furthermore, thanks to my beloved family who encouraged and helped me at
every stage of my personal and academic life to see this achievement come true. Also, thanks
to all my friends for their support and encouragement throughout my study also for
discussions, suggestions and criticisms. I appreciated all the encouragement and ideas given
especially on the user interface design and the flow of the application. Last but not least,
special thanks the respondents who have to help me in answering the questionnaires which
are very important for me in order to complete my Final Year Project. Thank you for all the
support.
ii
ABSTRACT
This proposed project is designed to detect unauthorized entry into a house and to
improve the efficiency of the home security alert system. Home Security Alert System Using
Arduino and GSM is a system that combining security system and GSM technology. This
system will allow user and guard a residential to receive a Short Message Service (SMS)
whenever door or windows of the house are forced to open without permission. The
development of this home security system involves both hardware and software components.
The hardware circuit design is built on the Arduino’s board. The software program
developed is used to control all the functions of the system and it is developed using
Integrated Development Environment (IDE). The methodology used to develop the proposed
application in this project is the Rapid Application Development (RAD) model, because
changes can be done easily, and the time taken for project development is short.
iii
ABSTRAK
Projek yang dicadangkan ini adalah bertujuan mengesan kemasukan tanpa izin ke
dalam rumah dan untuk meningkatkan kecekapan sistem amaran keselamatan rumah.
Sistem Amaran Keselamatan Rumah Menggunakan Arduino Dan GSM adalah sistem yang
menggabungkan sistem keselamatan dan teknologi GSM. Sistem ini akan membolehkan
pengguna dan pengawal keselamatan kediaman menerima Perkhidmatan Pesanan Ringkas
(SMS) setiap kali pintu atau tingkap rumah terpaksa dibuka tanpa izin. Pembangunan sistem
rumah keselamatan ini melibatkan pembinaan fizikal/perkakasan dan perisian. Fizikal litar
direka di atas papan Arduino. Bagi pembangunan pengaturcaraan, perisian pula digunakan
untuk mangawal semua fungsi dalam sistem ini. Pembangunan perisian ini menggunakan
(Integrated Development Environment (IDE). Metodologi yang digunakan untuk
membangunkan permohonan yang dicadangkan dalam projek ini adalah Rapid Model
Pembangunan Aplikasi, kerana perubahan boleh dilakukan dengan mudah, dan masa yang
diambil untuk pembangunan projek adalah pendek.
iv
TABLE OF CONTENTS
ACKNOWLEDGEMENT i
ABSTRACT ii
ABSTRAK iii
LIST OF FIGURES viii
LIST OF TABLES x
CHAPTER 1: INTRODUCTION 1
1.1 Introduction/Background 1
1.2 Problem Statement 2
1.3 Scope 3
1.4 Aim & Objectives 4
1.5 Brief Methodology 4
1.6 The significance of the project 7
1.7 Project Schedule 7
1.8 Expected Outcome 9
1.9 Project Report Outline 10
1.9.1 Chapter 1: Introduction 10
1.9.2 Chapter 2: Literature Review 10
1.9.3 Chapter 3: Requirement Analysis and Design 10
1.9.4 Chapter 4: Implementation and Testing 11
1.9.5 Chapter 5: Conclusion and Future Work 11
v
1.10 Summary 11
CHAPTER 2: LITERATURE REVIEW 12
2.1 Introduction 12
2.2 Related Works 12
2.3 Review on existing systems 13
2.3.1 IOT based Smart Home Security System with Alert and Door Access 14
Control using Smart Phone
2.3.2 Smart Home Security System Using Object Recognition and PIR Sensor 15
2.3.3 Smart Surveillance System Using PIR Sensor Network and GSM 16
2.4 Comparison between existing systems and propose system 18
2.4.1 Comparison of features and functionalities 18
2.5 Proposed system 20
2.6 Review of Tools and Technologies 21
2.6.1 Hardware 21
2.6.2 Languages 21
2.7 Summary 22
vi
CHAPTER 3: METHODOLOGY / REQUIREMENTS ANALYSIS & DESIGN 23
3.1 Introduction 23
3.2 Rapid Application Development (RAD) 24
3.2.1 Requirement Analysis 25
3.2.2 Prototype Cycle 42
3.2.3 Testing 43
3.2.4 Deployment 44
3.3 Summary 44
CHAPTER 4: IMPLEMENTATION AND TESTING 45
4.1 Introduction 45
4.2 Implementation Tools 45
4.3 Hardware Configuration 46
4.3.1 Arduino Uno 46
4.3.2 Motion Sensor 47
4.3.3 Vibration Sensor 48
4.3.4 GSM Module 49
4.4 Execution Process 51
4.5 Software Installation and Configuration 52
vii
4.6 Testing 59
4.6.1 Output Function Testing 60
4.6.2 Alert Notification Function Testing 60
4.6.3 Prototype Testing and result 60
4.7 Complete Circuit Testing 62
4.8 Conclusion 64
CHAPTER 5: CONCLUSION AND FUTURE WORK
5.1 Introduction 65
5.2 Project Achievement 65
5.3 Limitations of Project 65
5.4 Future Work 67
5.5 Conclusion 67
Reference 68
Appendix A 71
viii
LIST OF FIGURES
Figure 1.1: Rapid Application Development (RAD) Model (Ralph Stair, 2017) 5
Figure 1.2: Gantt Chart 7
Figure 1.3: Project Schedule 7
Figure 2.1: Block Diagram of the system 13
Figure 2.2: Flowchart of the system 14
Figure 2.2(a)(b): System Architecture 16
Figure 2.4: Flowchart of the system 17
Figure 3.1: Rapid Application Development (RAD) Model 21
Figure 3.2: The frequency of guard doing the patrol in residential 24
Figure 3.3: The percentage of security sensor been implemented 24
Figure 3.4: Percentage that home security systems need be secured by motion sensor
and vibration sensor 25
Figure 3.5: Summary of responses according to selected questions 26
Figure 3.6: Arduino Uno Board 28
Figure 3.7: PIR Motion Sensor 29
Figure 3.8: Vibration Sensor 30
Figure 3.9: GSM Module 31
ix
Figure 3.10: Jumper wires 32
Figure 3.11: Sequence Diagram 35
Figure 3.12: Block diagram of the proposed system 36
Figure 3.13: Design planning on the system 37
Figure 3.14: Flowchart of the proposed system 38
Figure 3.15: Detection alert for user’s phone 39
Figure 3.16: Detection alert for guard’s phone 40
Figure 4.1: Arduino Uno Board 46
Figure 4.2: Motion Sensor 47
Figure 4.3: Motion’s Connection 48
Figure 4.4: Vibration Sensor 48
Figure 4.5: Vibration Sensor’s connection 49
Figure 4.6: GSM module 50
Figure 4.7: Showing that the LCD are connected properly 50
Figure 4.8: Flowchart of execution process 51
Figure 4.9: Download (IDE) 53
Figure 4.20: Telephone Notification Alert Message 60
Figure 4.21: Prototype Testing 61
x
LIST OF TABLES
Table 2.1: Comparison on Features and Functionalities between 19
Existing Systems and Proposed System
Table 3.1: Hardware Requirements 29
Table 3.2: Software Requirements 35
Table 4.1: Complete Circuit Testing 62
Table 5.1: Objective Achievement 66
1
CHAPTER 1: INTRODUCTION
1.1 Introduction/Background
A home is the castle, the sanctuary, the heaven of safety and it is one of the biggest
investments ever make. Keeping it safe and secure is a dominant priority of many
homeowners. Living in modern times can be a scary and stressful thing. Bad guys with
malicious intent, and the crimes they commit, are everywhere. Imagine feel exhausted going
to sleep at night with no sense of security or coming home after a long day of work to house
that has been burglarized and having the thought of someone breaking into the house that
possibly harming the family run through the mind. Besides, people also keep their precious
properties which sometimes not only precious in term of price, but they may have
sentimental values that cannot be replaced if it is lost or stolen. Protection of home is very
important in today’s world for households because of quite high crime rates. According to
Safewise (2017), security system means something is secured through a system of
internetworking components and devices. All home security systems work on the same
basic principle which securing entry points with sensors such as doors and windows as well
as interior space with motion detectors.
The home security alert system is designed to detect unauthorized entry into a house.
To improve the efficiency of the home security alert system, this thesis is to purpose a
system with combining security system and GSM technology. This system will allow user
and guard a residential to receive a Short Message Service (SMS) whenever door or
windows of the house are forced to open without permission. The sensor used for this
system is Arduino. Arduino is an open-source platform that’s composed of very simple and
easy-to-use both hardware and software (Adeel Javed, 2016). Arduino consists of physical
programmable circuit board which is known as microcontroller and a piece of software, or
2
IDE (Integrated Development Environment) that runs on computer, used to write and
upload computer code to the physical board (Ben, 2011). Arduino’s board is bundled up
with starter kits which include a wide variety of inputs, outputs, resistors, wires and
breadboards. The Arduino that will be used in this system are PIR motion sensor, vibration
sensor and GSM module.
1.2 Problem Statement
Nowadays, even though there are lots of home securities system out there towards
protecting house from intrusion, but still there is not much guarantee that the house be safe.
Today in the twenty-first century where digitization and sophistication of technology have
become prominent, and the number of burglaries is growing at an ever-increasing rate,
people use the various kind of security system in home zone to protect from intruder. A
good lock for doors and windows is just not sufficient. According to (Maxphi, 2016), there
are many different home security systems in the market depending on their applications.
The security of every house should be upgraded to the next proper level.
Furthermore, even though there is many of Closed-Circuit TV (CCTV) in the house,
the thief still can escape. Application of security system for home do not mean anything if
the user is not alert when sensors are triggered. Basic security system implementation only
allowing the user alerted if they are still inside the house or if the user is away from the
home,
the security system installed becomes less helpful as no person will be alerted. Plus,
when there is any intrusion occurs when the user is far away from their house, probably
they don’t know to whose they should ask for help around that residential because it may
be troublesome to people around or to neighborhoods.
3
Hence, a combination of home security alert system has been designed to send an
alert message to the owner of the house and to the guard or security forces nearby in an
attempt to get rid of the theft taking place. The system is designed by interfacing sensor
modules using 3 alerting system via SMS and embedded the motion sensor and vibration
sensor to every doors and windows detect the motion in the house. Residents and guard of
a residential will receive a Short Message Service (SMS) whenever door or window of the
house is forced to open without permission or intrusion in the absence of owner in real time.
So, the user will feel more secure and both user and guard are able to respond earlier when
an intruder is detected in the house.
1.3 Scope
The scope of the project listed as following:
i. The main target group for this project is particularly for residents which stay in
bungalow house that need security system to protect from intruder and thief especially when
the owner is not around.
ii. This system will detect any motion and vibrations from the door or window.
iii. User and guard of a residential will get the notification through Short Message
Service (SMS).
4
1.4 Aim & Objectives
The following objectives are outlined to achieve the project aim:
i. To design and develop a system for intruder detector at home zone.
ii. To provide a real time alert notification if any intrusion occurs through SMS to
the user and guard whenever door or window of the house is forced to open without
permission or intrusion.
iii. To display a report to a guard that shows the information which house the
intrusion occurs through SMS.
1.5 Brief Methodology
The methodology chosen to develop the proposed application is using Rapid
Application Development (RAD) model. By using iterative development process, Rapid
Application Development model can be adaptive to changes in requirements with minimal
development time where the development stages are repeated as required. RAD is chosen
for this project, because it is a flexible method, plus easily adapt to the changing requirement
of the user. Furthermore, it can help developer to improve the application by collecting
feedback from users, develop a higher quality application within a shorter time, as the
project schedule of this project is less than one year (Idesis, 2017).
5
Figure 1.1: Rapid Application Development (RAD) Model (Ralph Stair, 2017)
In the analysis and quick design phase, all the preliminary requirements needed to
develop this project that is suitable by gathering information from any sources. The
requirements gained will then be analyzed by querying and gathering information from
users. Developer will more understand the requirement needed for this project with the
collected information. Therefore, the process of analyzing information and design will
continue. This phase will also cover the analysis of the current method and the proposed
application as well as the design of the proposed application.
Second phase is the prototype cycle. There are three steps in this phase that will keep
iterate if there are changes required. These three steps are developing, demonstrate and
refine. The development stage will be carried out when the analysis phase is done. At this
stage, the prototype is developed rapidly following the wireframe that has been outlined.
Then after the completion of the development stage, it will enter the next stage which is
demonstration stage. In this stage, the prototype will be demonstrated to the stakeholder to
ensure that the prototype meets the design goals. If the demonstrated prototype does not
meet stakeholder’s expectation and requirement, then it will undergo the next stage which
is the refining stage. At this stage, the prototype will be refined in terms of interface design,
6
concepts, and features if there are any changes required. Then it will be demonstrated again
to check if it has meet stakeholder’s expectation after the prototype is being re-developed
based on the new requirement. The process of demonstration, refinement and development
keep iterate until user and developer satisfied with the final prototype.
After the stakeholders satisfied with the proposed prototype before implemented in
the real world, the project will then be tested thoroughly in the testing phase. In this phase,
the proposed application will be validated and verified to meet the technical requirements
that guided throughout the design and development phase. The product soon will be tested
for its functionalities as well as for the errors. This phase is to fully test the final prototype
to ensure the application function as expected. Next, after completed all the testing, the
application will be deployed to a user environment and the maintenance of this application
will take place in this phase.
1.6 The significance of the project
This project will attain benefits to the society, especially for the home residents. The
purposed of this project is allowing user and guard a residential to be notified through SMS
if the sensor detects any motion or vibration of the door or window. This system consists of
wireless sensor network and SMS notification as the main medium for user to get the alert
from the system. Thus, the user and guard will be alert to their surrounding home residential
even they are away. This project is using wireless sensor network based on Arduino.
7
1.7 Project Schedule
Project schedule is used as progression guidance for the project. Figure 1.2 and
Figure 1.3 shows the Gantt Chart as a timeline progress of the project for Semester 1 and
Semester 2.
8
Figure 1.2: Gantt Chart
Figure 1.3: Project Schedule
9
1.8 Expected Outcome
At the end of the project, the motion and vibration sensor will detect a movement of
intruder or whenever door or windows are forced to open without permission. The
notification SMS will be sending through user and guard’s phone device by using GSM
module. Through SMS notification, a guard will receive the display of report that shows the
information of the house to know which house the intrusion occurs. The programming
language is used to program the Arduino which are contains Passive Infrared (PIR) motion
sensor, vibration sensor and GSM module. PIR sensors allow you to sense motion, almost
always used to detect whether a human has moved in or out of the sensors range. This
system is very accessible by the user.