smart home system: secure postage with …smart control based system has been proposed. many of the...
TRANSCRIPT
SMART HOME SYSTEM:
SECURE POSTAGE WITH
NOTIFICATION
MOHAMAD AIDIL BIN SAWALUDIN
BACHELOR OF COMPUTER SCIENCE
(COMPUTER NETWORK SECURITY) WITH HONORS
UNIVERSITI SULTAN ZAINAL ABIDIN
2018
SMART HOME SYSTEM:
SECURE POSTAGE WITH
NOTIFICATION
MOHAMAD AIDIL BIN SAWALUDIN
BACHELOR OF COMPUTER SCIENCE
(COMPUTER NETWORK SECURITY) WITH HONORS
UNIVERSITI SULTAN ZAINAL ABIDIN
2018
DECLARATION
I hereby declare that this report 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 University Sultan Zainal Abidin or other institutions.
Signature : ……………………
Name : Mohamad Aidil Bin
Sawaludin
Date : 07th December 2018
CONFIRMATION
This is to confirm that:
The research conducted and the writing of this report was under my supervision.
Signature : _________________________
Name : Dr Aznida Hayati Binti Zakaria@Mohamad
Date : 07th December 2018
DEDICATION
All praise is due to Allah who has given me this opportunity to conduct this report for this final
year project.
I would like to express my greatest appreciation to my family and friends who supported
me and encourage me throughout the process of completing my project. I would like to express
my sincere appreciation and gratitude to my supervisor Dr, Aznida Hayati Binti Zakaria @
Mohamad for encourage, guidance, critics, advice, motivation and supports.
Sincere thanks to all my fellow friends for their help in completing my final project.
ABSTRACT
Smart Home System technology began more than a decade to introduce the concept of
network devices and equipment in the home. According to the Association of Smart Homes, the
best definition of smart home technology is: the integration of technology and services through
home networks for a better quality of living. Its is because most of user use the old ways that use
the system manually such as often open mailbox for checking letter. To overcome this problem a
smart control based system has been proposed. Many of the tools used in computer systems can
also be integrated into Smart Home Systems. In this project, I reduce the scope of the Smart
Home System that just focus on how to secure the postage with notification. This device will
help and ease the user in their daily life .
ABSTRAK
Teknologi Home Smart System bermula lebih daripada satu dekad untuk memperkenalkan
konsep peranti dan peralatan rangkaian di rumah. Menurut Persatuan Rumah Pintar, definisi
teknologi pintar rumah pintar adalah integrasi teknologi dan perkhidmatan melalui rangkaian
rumah untuk kualiti hidup yang lebih baik. Ia adalah kerana kebanyakan pengguna menggunakan
cara lama yang menggunakan sistem secara manual seperti peti mel yang sering dibuka untuk
memeriksa surat. Untuk mengatasi masalah ini, sistem berasaskan kawalan pintar telah
dicadangkan. Banyak alat yang digunakan dalam sistem komputer juga boleh diintegrasikan ke
Smart Home Systems. Dalam projek ini, saya mengurangkan skop Sistem Rumah Pintar yang
hanya memberi tumpuan kepada cara untuk mengamankan pos dengan notifikasi. Peranti ini akan
membantu dan memudahkan pengguna dalam kehidupan seharian mereka.
CONTENT
Table of Contents
DECLARATION........................................................................................................................... 3
CONFIRMATION ........................................................................................................................ 4
DEDICATION............................................................................................................................... 5
ABSTRACT ................................................................................................................................... 6
CHAPTER 1 .................................................................................................................................. 9
INTRODUCTION ..................................................................................................................... 9
1.1 Background ................................................................................................................. 9
1.2 Problem Statement ................................................................................................... 10
1.3 Objective .................................................................................................................... 11
1.4 Scope .......................................................................................................................... 11
1.5 Limitation of work .................................................................................................... 11
1.6 Expected Result......................................................................................................... 12
CHAPTER 2 ................................................................................................................................ 13
LITERATURE REVIEW ....................................................................................................... 13
2.1 Introduction .................................................................................................................. 13
2.2 Related Works .............................................................................................................. 13
CHAPTER 3 ................................................................................................................................ 18
METHODOLOGY .................................................................................................................. 18
3.1 Introduction .............................................................................................................. 18
3.2 Methodology Phases ...................................................................................................... 19
3.2.1 Planning ................................................................................................................. 20
3.2.2 Data Model (Requirement) ....................................................................................... 20
3.2.3 Design ........................................................................................................................... 22
3.2.4 Implementation ..................................................................................................... 26
3.2.5 Testing .................................................................................................................... 26
3.2.6 Deployment ............................................................................................................ 27
3.3 Summary ........................................................................................................................ 27
CHAPTER 1
INTRODUCTION
1.1 Background
Smart Home System: Secure Postage with Notification is design to overcome the
problem that face by people nowadays who cannot control/monitor their postage in daily
life. This project work similar to letterbox or pigeon hole where the letter or postage will
be placed in their letterbox or pigeon hole. The method of checking letter or postage in
mailbox has not updated until today where most people still checking the mailbox by them
self every day.
For this project, the electronic technology or the internet of things (IOT) was
applied to overcome this problem. This project is build up by using Arduino Uno and secure
with Radio-frequency identification (RFID). The installed sensor in the project will start
function once it detect the document/letter/postage receive and automatically send alert
signal via notification on smartphone. This project also make people life easier by sending
short message notification to notify the user about the postage or letter receive and save
time in checking the mailbox every day.
This project can operate automatically without the human inspection. When the
project completed, people do not have to repeatedly go to their mailbox to check whether
a mail or postage is deliver or not. People also will never worry of forgetting to pick up
their mail or postage as there will be instant notification about the delivered mails or
postage.
1.2 Problem Statement
There are several problems that have been identify in this project. This
problem statement will be the core statements in replacing the existing mailbox
system which are:
i) People busy with daily life.
People is too busy working from morning and come back home at night.
Sometimes they forgot to check whether the mailbox has postage or letter in it.
People also tired to check the mailbox regularly and the mailbox are often located
outside the house as they must walk to check the mailbox.
ii) Waste time.
If the mailbox is outside the house, it might take a time to collect their
postage or letter. If they are waiting for important postage, they might check the
mailbox regularly. It is frustrated if they come from the high floor and looking from
their postage, but the postage is not there yet or the mailbox is empty.
` iii) Anyone can steal the postage
The user sometimes are too busy and sometimes the user not at home in
long time period. The possibility of others people to steal are high and maybe the
mail or postage are very important to the user.
1.3 Objective
1. To design the Smart Home System, secure postage notification.
2. To implement the design of the model into Smart House System.
3. To test evaluate whether the Smart House System is fully functioned.
1.4 Scope
This Project focuses on two scope:
1. Scope of client which is to all people that have house.
2. Scope of technology which is tis technology will use Arduino kit.
1.5 Limitation of work
This project is only work in a wireless network connection to send the notification
Because of the notification will be deliver to user when the project connect to home
wireless network. Next, this project only use the battery for power supply.
1.6 Expected Result
At the end of this project, the expected outcome from this project will be the Smart
Home System, Secure Postage with Notification is fully developed, installed and
functioned for user to use. (Refer Chapter 5.2)
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
Literature review is a text of scholarly paper, which included in the current
knowledge include substantive findings, as well as a theoretical and methodological
contribution to a related works. There are a few devices related to Smart House System
Secure Postage with Notification. However, most of the device did meet the requirement
that needed by the users.
2.2 Related Works
2.2.1 Smart Postal Mailbox Device
Figure 2.1: Smart postal mailbox
In this article [1], tell us that when the device is in place inside a postal
mailbox and the motion sensor is activated by, for instance, having a content
element either place in, or removed from, the mail box, the device may cause a
content-altered signal to be issued. Means that if the letter is put into the mailbox
trough the sensor, the sensor will generate the LED light first then will send to user
the notification through the wireless network connection. This project also give the
tool and component that can be include into this project and can be referred from
this article [1].
2.2.2 Smart Mailbox System And Related Method
Figure 2.2 : Mailbox secure with code
In this article [2], this project provides a smart mailbox and a corresponding
Smart mailbox system. This invention also provides a related controlling method,
a method of automatically receiving mail and a method of automatically sending a
mail. With this invention, it will be safe and convenient to automatically receive
and/or send the mail, so that the troubles are saved. Furthermore, this invention
provides intelligent monitoring, so that the mail can be safely handed over.
According to one aspect of this invention, it is provided a Smart mailbox, which
including a box body having a door with a lock; a box opening code input device
for inputting box opening code so as to unlock the box and thus open it; and a
communication unit for communicating with a remote management terminal;
wherein the mailbox or the remote management terminal is also provided with a
storage, for at least storing one or more preset box opening codes; the mailbox or
the remote management terminal is provided with a processor, for identifying
whether the input box opening code matches the one or more preset box opening
codes, and being capable of issuing a box opening instruction; the processor
comprises a box opening code management circuit, for invalidating the matched
box opening code after opening the box, and generating new box opening code(s)
when there is no valid box opening code, and the processor is capable of storing the
new box opening code in the storage.
2.2.3 Address Digitization and Smart Mailbox With RFID Technology
Figure 2.3 : RFID installation
This article [3] is a project focused on digitizing addresses of locations and
building a smart mailbox in combination with sensors, cameras, locks, and RFID
readers and tags into a system controlled by an Arduino board. This project is to
explore the idea of address digitization (using RFID tags to store addresses) and
incorporate it into a mailbox that can communicate wirelessly with the homeowner
to provide mail status updates and home security footage through digital
photographs. The idea of the RFID Reader can be use in this project that the
mailbox will be secure with the RFID Reader. This project can be refer from this
article [3].
2.2.4 Smart Pigeonhole System By Sending Notification Through Short Messaging
System
The article [4] is Smart Pigeonhole using Short Messenger System.
This system is a hardware that operates by using Arduino Yun, infrared sensor
and adjustable sensor that will inform the user about mail that got into the
pigeonhole. Every mail that got into the pigeonhole will alert a phone by
sending message to the user. The system designed by using IR sensor that acts as a
detector to detect the letter that arrive. The IR sensor is placed on the top of the
mailbox. It locate in the good position to make sure it can detect the mail arrive
accurately in every time the mailman inserts the mail. This sensor is an
adjustable sensor. User can adjust the transmitter and receiver. It will be
mounted to the board and will be connected with the arduino yun board.
2.2.5 Real-Time Sms Alert System For Centralize Mail Compartment
The article [5] mail compartment alert system will operate via short
messaging service (SMS) notification. Two infra-red (IR) sensors, one for
transmitter and the other for receiver will be installed in mailboxes. Once a mail is
inserted into the mailbox and cuts the IR signal, the circuit will automatically send
a signal to the programmable logic controller (PLC) control systems. Then the PLC
will send the preprogrammed message to the user’s hand phone through the global
system for mobile communication (GSM) modem.
CHAPTER 3
METHODOLOGY
3.1 Introduction
Methodology is the outline of the way a process or task will be carried out. Thus, the development
of this device is carried out by applying the methodology of Smart Home System Secure Postage
Notification development. The development of this project is carried out by applying the
methodology of Agile Development. Figure below shows the iterative and incremental model that
is chosen to develop the project. This model is chosen because the project can be developed
through repeated cycle which is iterative. The project can be proceeds if there are any changes in
the middle of the project.
3.2 Methodology Phases
This model consists of six phases which are planning, requirement, analysis and design,
implementation, testing and deployment.
Figure 1: Agile Development Model Methodology
3.2.1 Planning
The first step of the Agile Development is planning where in this step included the
development of Arduino UNO and implemented coding from the Arduino IDE. By
referring from previous project, Arduino UNO is important part in this project because
Arduino UNO is the main part of this project and will be attached with others part and
sensor. This step also include the development of selection the right sensor that 40 kHz
ultrasonic sensor (HCSR04). This step is important to develop the Arduino UNO board for
combined with the ultrasonic sensor to detect the postage that are put inside the mailbox.
3.2.2 Data Model (Requirement)
3.2.2.1 Entity Relation Diagram
3.2.2.2 Software
3.2.2.2.1 Arduino IDE
IDE is stands for Integrated Development Environment. Arduino IDE is a
software that are running in windows to write and upload code to the
Arduino UNO. Its use basic C/C++ language. It is also easy to use and
flexible.
3.2.2.2.2 Google Firebase
GOOGLE FIREBASE provide a realtime database and backend as a
service. Data is synced across all clients in realtime, and remains available
when your app goes offline. The Firebase Realtime Database is a cloud-
hosted database.
3.2.2.3 Hardware
3.2.2.3.1 Arduino UNO
Arduino UNO is a microcontroller based on the ARmega328. This
hardware is choose because it easy to use and configure. It also compatible
with other part and sensor that will be installed in this project. The price
also reasonable to buy and the main part in this project.
3.2.2.3.2 ESP8266
This part are the important part that act as the medium for this project to
connect with the wireless network such as home wifi. This part also
compatible with the Arduino UNO .
3.2.2.3.3 Servo Motor (180º)
Servo Motor is use for locking the mailbox door. It easy to install into the
mailbox. Servo is act as auto-lock mailbox door. It also compatible with the
Arduino UNO and easy to handle to the user.
3.2.2.3.4 HC-SR04 Ultrasonic Sensor
HC-SR04 Ultrasonic Sensor is act as sensor for sense the letter come in and
out from the mailbox.
3.2.3 Design
This step is required so that the flow of project will be successful. In this step, a design of
a circuit as shown as in figure below.
Figure 2: Circuit Diagram of RFID Reader
Figure 3: Circuit Diagram of HC-SR04 Ultrasonic Sensor
Figure 4: Circuit Diagram of Servo Motor
Figure 5: Circuit Diagram of ESP8266
Figure 6: Flowchart of the Smart Home System Figure 7: Flowchart of the RFID Reader
The flowchart of the Smart Home System shows that when the power is on, all of the
component will start working, the ESP8266 will connect to the wireless network. When the
network establish, the Ultrasonic sensor will generate pulse. When the waves of the pulse hits an
obstacle, it will reflect back to the receiver to get reflection time. The Ultrasonic sensor will
generate pulse of wave in every 1 minute. Then if the Ultrasonic sense the obstacle, the information
will be send to the user’s smartphone.
The second flowchart that the flowchart of the RFID Reader shows that when the
power is on, the RFID Reader will start working. When the user swipe the RFID, the RFID
Reader will scan and reader the detail and try to match the detail. If the detail is not match,
message will be send to user’s smartphone, tell that someone try to open the mailbox. If
the detail is match, the mailbox door will be open and the detail will be send to user’s
smartphone.
3.2.4 Implementation
After the design phase has been develop, the configuration and the coding of the
Arduino is implement. The circuit is installed and connected. The coding for the pulse of
waves include the 1-minute looping time for generate the pulse. If else rule is used in the
coding to determine whether there has obstacle or not.
3.2.5 Testing
In this step the complete circuit will be test. If there is still error occurred, it will be
solve in this step. If there is any change need to implement, the project must start back at
design step for revision flow.
\
3.2.6 Deployment
After the circuit has been completely installed without error, the complete circuit
will be attached to the mailbox.
3.3 Summary
In this chapter, the methodology of the project is explained. The flow of this project
followed the steps that need to develop the Smart Home System. The requirement of the hardware
and software is listed properly for the development of the Smart Home System.