Sei sulla pagina 1di 6

Internet of Things Based Home Security

Using Raspberry Pi.


Ms. Ashwini Pawar Prof. V. M. Umale
Electronics and Telecommunication Engineering Electronics and Telecommunication Engineering
S. S. G. M. C. E, Shegaon. S. S. G. M. C. S, Shegaon.
Shegaon, India. Shegaon, India
ashpwr101@gmail.com vmumale@reddifmail.com

Abstract: In our daily life everywhere, every time, to digital and sends to the third layer for
every second we need internet to fulfil our needs/ further procedure.
search. In home automation to operate or monitor
things within home, from outside we require internet.
Looking at the huge usage of Internet of Things (IoT)
we decided to use IoT in home security system. For
IoT based home security we require Some platform to
connect the things and perform a program so, we
have selected the latest version of Raspberry Pi model Fig 1: Four stage layer of IoT
which is Raspberry Pi 3 Model B. In this paper our
approach is to secure home in terms of any damage 3. Management layer: Management layer is
and theft. interface between internet gateway and
application layer. This layer manages device
Keywords: Internet of Things (IoT), home security, is
data and data collected by internet gateway. It
Raspberry Pi 3 Model- B.
collect large amount of raw data and extract
I. INTRODUCTION real time data from it.
4. Application layer: Application layer is the
Internet of Things was introduced by Kevin Ashton extreme layer which provides interaction
in 1999. The key term of Internet of Thing is to between user and things connected to the
connect things, devices, vehicles, to the internet via internet. The things like transportation, health
GSM, RFID, WiFi. A concept of interconnecting care, agriculture, supply chain, government,
Bluetooth and things is there to control appliances retail etc
[2] etc. IoT is machine to machine type of
communication in which under some platform we In this way IoT works in four layers, and by 2020
connect the things or devices and the data is there will be millions of objects connected to the
exchanged between the devices via the platform IoT. All cities, vehicles, industries will be
that we use to connect the devices and our automated after few years
computer/ laptop/ mobile via internet.
II. LITERATURE SURVEY
IoT works on four stage layer [7] which we can
In the home automation system (HAS) Vikram N.
study for better understanding of IoT as follows.
[1] used ATmega microcontroller as base, and
1. Network Layer: In network layer the sensors or provides low cost home automation system. The
actuators are connected to the interlinked HAS provide us the security aspects such as motion
platform to sense the external environment and detection, gas leakage protection, flame protection
provide the data to the intermediate platform to and power saving in the home.
take appropriate action.
2. Internet gateway: The data acquired by the In the smart home system by Praveen Kumar and
sensor is analog in nature which is then Umesh Chandra Pati [2], both Arduino and
converted into digital streams for future Raspberry Pi are used. To monitor and control
processing and this is done by data acquisition home appliances such as light, fan, heater, washing
system (DAS). DAS converts data from analog machine, tap, etc. Arduino is used and to record
voice and capture video Raspberry Pi is used all

978-1-5386-5257-2/18/$31.00©2018IEEE
this is done by graphic user interface (GUI) on sensors which are connected to the input/
mobile applications. output ports of this Raspberry Pi board. The
Python script communicates with the
The smart home automation by Eleni Isa, Nicolas Raspberry Pi board and operates the devices,
Sklavos [4] gives us the smart home concept which Python script allows controlling of the
is based on Ethernet shield and ATmega 328 board. Raspberry Pi board
The process involves capturing the photo and stores
it in the memory card, b) the ethernet shield
initializes the connection, 3) the photo is
transferred from the memory card to the internal
buffer, and finally d) the shield schedules the
process, which will send the data through the
Ethernet [4].

All the above system’s purpose is to solve the


security issues but, the time required to perform the
task is not mentioned anywhere, so as to improve
Fig 3: Raspberry Pi 3 Model B [10]
the time in our system. Also the platforms used in
the previous systems are old one. In this paper our Raspberry Pi 3 is having faster speed than the
approach is to mention the time required for the earlier models of Raspberry Pi that is 1.2 GHz.
system output and to use latest version of Also it is having 802.11n wireless LAN (WiFi)
Raspberry Pi which is having higher speed than and Bluetooth 4.1which was not present in the
previous ones. earlier models of Raspberry Pi 3. As Raspberry
Pi 3 model B is more efficient than the
The remaining paper is organized as follows: In previous models we are going to use this in our
system.
section III, system overview is described. In section
IV, material and methodology of the system is IV. MATERIAL AND METHODLOGY
given. In section V results, conclusion and future
work are discussed and finally references are given. A. Material :

III. SYSTEM OVERVIEW The various peripherals in the systems are


sensor’s, hardware’s, relays and for
programming purpose keyboard and mouse are
also required. Python script is used to control
the various interfaced devices. The peripherals
used are as follows.
a. Pi camera module: It is used to capture images
as well as videos. The module has a two
megapixel camera that supports 1080p30, 720p60
and VGA90 video modes, as well as stills
capture. It is connected to the Raspberry Pi board
via a CSI cable ribbon in CSI port. It's important
to sleep for at least 2 seconds before capturing, to
give the sensor time to set its light levels.
b. PIR Sensor: A passive infrared sensor (PIR
sensor) is an electronic sensor that detects heat
emitted from humans and animals body and
accordingly produces results. They are mostly
found in PIR-based motion detectors. PIR
Fig 2: Block diagram of home security system detector works in 120º angle and 20 feet area
in front of it.
Block diagram of system consist of peripheral c. Magnetic sensor: A reed type magnetic switch
sensors for motion detection, Pi camera, gas is used over here which is used at the door for
leakage detector, fire (smoke) detector, exhaust security purpose. In this switch mechanism
fan, buzzer, light, magnetic sensor, relay, when circuit is closed it produces magnetic
vibration sensor, power supply, and the main flux and after taking the reed apart the flux are
platform of the system is Raspberry Pi 3 which disturbed. In this way at the door it works on
accepts environmental changes and activates opening and closing of doors or windows.
output according to the changes. The design is
based on only Raspberry Pi board and the

2018 Forth International Conference on Computing Communication Control and Automation (ICCUBAE)
d. Buzzer: A buzzer is a small and efficient the system while exiting the home. After
component to add alert sound to our starting up the system the GPIO pins are
project/system. It is a very small and compact assigned to their dedicated tasks.
2-pin structure which can be easily used on
breadboard and even on PCBs which makes
this a widely used component in most
electronic applications.
e. Gas detector: A gas leakage may occur due to
damage in gas pipe, like if someone is digging
a hole and accidentally breaks an underground
gas line. The gas detector require 5V of supply
and when the gas is detected the output
becomes 5V else the output becomes low that
is 0V. Likewise every time our sensor will
sense the environment and if the gas is
detected digital pin will go high (5V) else will
remain low (0V).
f. Vibration Sensor: Vibration sensor produces
electrical signals in proportion to the vibrations
produced in component. The sensitivity of
Vibration sensor typically range between 10 to
100 mV. The module outputs logic level high
(VCC) when it is triggered and a low (GND)
when it isn’t. The LED on the module is turned
on when it is triggered. The supply voltage
required to the sensor is 3.3V-5V.
g. Relay: A relay is used as current amplifier.
When a current flows through the coil an
electromagnetic field is generated. The field
generated in the relay which attracts an iron
armature, whose other end pushes the contacts
together to complete the circuit. A relay driver
IC is used whenever we want to switch a bulb
ON and OFF.
h. Flame sensor: Flame sensor is Sensitive to fire
flame. It has wide range voltage comparator
LM393 and adjustable sensitivity. Its Spectrum
range is 760nm ~ 1100nm and 0 - 60 degree. Fig 4: Peripherals with Raspberry Pi 3
Power requirement of flame sensor is 3.3V ~ Outside the door there is PIR sensor which detects
5.3V and the Operating temperature is 25℃ ~ the motion of intruder. Whenever any motion is
85℃. Dimension of the sensor is 27.3mm * detected within the range of 5 to 6 meter and 180
15.4mm. This module can be applied to fire degree the PIR sensor sends signal to Raspberry Pi
detection system, fire-fighting robot, fire alarm and Rasberry Pi starts the bulb inside the home to
system, etc alert the intruder.
After studying all the peripherals in detail we can
There is magnetic sensor at the door, if someone
interface them with Raspberry Pi 3 as shown in tries to break or open the door the magnetic sensor
figure 4. breaks and the signal is sent to the Raspberry Pi
and within seconds the Raspberry pi activates Pi
B. Methodology: The flow of the complete camera to capture image of intruder. Along with
system is given over hear in the following flow this procedure at a time the buzzer will turn on and
chart in figure 5. First of all we have to turn on captured image will be sent to the users mail.

2018 Forth International Conference on Computing Communication Control and Automation (ICCUBAE)
Fig 6: Complete home security system

Whenever the motion is detected by the PIR sensor


outside, the bulb inside home become ON and we
get ‘light on’ in output.

Fig 7: Bulb on when motion is detected

When the magnetic sensor is pulled, means when


the door is opened by someone then the Pi camera
Fig 5: Flow chart of the system is activated soon and capture the image of intruder.
The text message ‘shor Machao Chor Aya’ along
We have fixed a temperature sensor inside home with the captured image is sent to the users mail
which gets activated if the temperature exceeds within a minute or minutes depending upon
above the threshold value which is set to 50 degree network connectivity.
Celsius, the temperature sensor will be activated
and at a time Raspberry Pi will turn on the buzzer Gas sensor is activated when the gas leakage is
and send a message in mail to alert the owner about detected and Raspberry Pi will turn on the buzzer
danger. and the exhaust fan after this ‘LPG gas leakage
alert’ such message in the mail is sent to the user.
There is a gas detector fixed near the LPG gas
cylinder which gets activated by the Raspberry Pi Similarly, all the peripherals are activated when the
when it senses gas leakage above threshold and one event is triggered. After every event the alert
by one the exhaust fan and buzzer will be on. At message is sent through mail to the user.
the same time an alert message is sent to the owner
through mail.
V. RESULTS , CONCLUSION AND
FUTURE WORK

Results: we get a complete hardware of Home


Security System (HSS). In which each and every
peripherals are attached to the Raspberry Pi 3
Model B so as to get the security alerts after every
event.

2018 Forth International Conference on Computing Communication Control and Automation (ICCUBAE)
break alert and captured image of intruder with
alert message are attached to the mail of the owner.
Future work: IoT is having the great attention in
home security and it is changing the way of living
of everyone. So we have covered the home security
aspects using IoT but the major reason of capturing
fire is short circuits in the wirings. So in Future
along with the covered parameter in our project we
can add short circuit protection which is mainly
responsible for major fires.

REFRENCES

[1] Vikram.N, Harish K.S, Nihaal M.S,Raksha


Umesh4, Shetty Aashik Ashok Kumar, ‘A
Low Cost Home Automation System
Using Wi-Fi Based Wireless Sensor
Network Incorporating Internet of
Things(IoT)’ 2017 IEEE 7th International
Advance Computing Conference, (pg -174
to 178)
[2] Praveen Kumar, Umesh Chandra Pati ‘ IoT
Based Monitoring and Control of
Appliances for Smart Home’ IEEE
International Conference On Recent
Trends In Electronics Information
Communication Technology, May 20-21,
2016, India, (pg -1145 to 1150)
[3] Moataz Soliman, Tobi Abiodun, Tarek
Hamouda, Jiehan Zhou, Chung-Horng
Lung ‘Smart Home: Integrating Internet of
Things with Web Services and Cloud
Computing’ 2013 IEEE International
Figure 8 Alert messages are sent to user’s mail after every event
Conference on Cloud Computing
Technology and Science, (pg -317 to 320)
[4] Eleni Isa, Nicolas Sklavos ‘Smart Home
Automation: GSM Security System
Design & Implementation’ ResearchGate
Conference Paper · January 2017, (pg -1
to 4)
[5] Ho-Kyeong Ra, Sangsoo Jeong, Hee Jung
Yoon, and Sang Hyuk Son ‘WiP Abstract:
SHAF: Framework for Smart Home
Sensing and Actuation’, 2016 IEEE 22nd
International Conference on Embedded
and Real-Time Computing Systems and
Applications, (pg - 258)
[6] T. Reichherzer, A. Mishra, E.
Kalaimannan, N. Wilde ‘A Case Study on
Fig 9: Image captured and received on mail the Trade-Offs between Security,
Scalability, and Efficiency in Smart Home
Conclusion: In our project Home security system Sensor Networks’, 2016 International
the security issues we covered over here are fire Conference on Computational
security, door security, glass break alert and gas Science and Computational Intelligence,
leakage protection. The various sensors are (pg -22 to 28)
connected to the Raspberry Pi board such as PIR
sensor, MQ2 sensor, Vibration sensor, Flame
sensor and Magnetic sensor. And the alert
messages for fire security, gas leakage alert, glass

2018 Forth International Conference on Computing Communication Control and Automation (ICCUBAE)
[7] Li Da Xu, Senior Member, IEEE, Wu He,
and Shancang Li, ‘Internet of Things in
Industries: A Survey’ ,IEEE Transactions
on Industrial Informatics, Vol. 10, No. 4,
November 2014 (pg – 2233 to 2243)

[8] Vaibhav Sharma, Chirag Fatnani , Pranjal


katara,Vishnu shankar , ‘Advanced Low-
cost Security System Using Sensors,
Arduino and GSM Communication
Module’ ,Proceedings of IEEE TechSym
2014 Satellite Conference, VIT
University, 7th-8th March (pg – 12 & 13)

[9] Sean Dieter Tebje Kelly, Nagender Kumar


Suryadevara, and Subhas Chandra
Mukhopadhyay, Fellow, IEEE , ‘Towards
the Implementation of IoT for
Environmental Condition Monitoring in
Homes’, IEEE Sensors Journal, Vol. 13,
No. 10, October 2013(pg - 3846 to 3853)
[10] An article available on: https: //www
.simple. m. wikipedia.org >Raspberry Pi 3.

2018 Forth International Conference on Computing Communication Control and Automation (ICCUBAE)

Potrebbero piacerti anche