Design and Implementation of Smart Home

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/293173717

Design and Implementation of Smart Home Security System

Article · December 2014

CITATIONS READS

9 42,124

1 author:

Mohammed Mynuddin
North Carolina Agricultural and Technical State University
22 PUBLICATIONS   126 CITATIONS   

SEE PROFILE

All content following this page was uploaded by Mohammed Mynuddin on 08 December 2021.

The user has requested enhancement of the downloaded file.


International Journal of Modern Embedded System (IJMES) ISSN: 2320-9003(Online)
Volume No.-2, Issue No.-6, December, 2014

Design and Implementation of Smart Home Security System


Md. Kamal Hossain 1st Prodip Biswas 2nd
Lecturer of EEE Dept. Sr. Software Engineer, ML-2
Atish Dipankar University of Science & Technology Samsung R & D Institute Bangladesh (SRBD)
Dhaka, Bangladesh Dhaka, Bangladesh
E-mail:[email protected] E-mail: [email protected]

Mohammed Mynuddin 3rd Sayidul Morsalin 4th


Lecturer, of EEE Dept. Lecturer, of EEE Dept.
Atish Dipankar University of Science & Technology Bangladesh University of Business & Technology
Dhaka, Bangladesh Dhaka, Bangladesh
E-mail: [email protected] E-mail:[email protected]

Abstract: All over the world, security has been a major concern in every home. Automated security systems are a useful addition to todays
home where safety is an important issue. Vision-based security systems have the advantage of being easy to set up, inexpensive and non-
obtrusive. Here, a security system has been developed that uses sensors to detect any security violation and sends out the alert signal by high
intensity Buzzer. In this paper it has been ensured three level security systems. NFC tag use, providing Password and PIR motion sensor. To
open the door a person should provide NFC tag and password. If one of them absence the door will not open. The door will opened by
servomotor with a lock coupled in its shaft. When wrong password is pressed, error text is displayed in the LCD. When an authorized person
leaves the door, he has to show his tag in the reader. Otherwise the door will not close. Now if an unwanted man enters the room by password
breaking or without NFC the PIR sensor works .It sounds the buzzer. NFC card reader, PIC 16F877A, Arduino Uno, PIR sensor is used for this
project .So, maximum security will be maintained in home. This security can be applied not only home but also the place where important
document, file are preserved also the bank vault.

Keywords: Security system, NFC shield and NFC tag, Arduino Uno, EEPROM, Proteus, PIR sensor
the human presence of security guard may not be completely
I. INTRODUCTION
trustworthy. Every system from the past has been found to be
A security system is defined as to detect intrusion, very much vulnerable. Home is a place where security is must,
unauthorized entry into a building or a protected area and deny to keep all the valuables and appliances safe. The owner
such unauthorized access to protect personnel and property should have the confidence to step out of the house with the
from damage or harm. Security systems are mainly used in feel that nothing can happen to the Home. This feel will only
residential, commercial, industrial, and military properties for arise when the home is equipped with a reliable security
protection against burglary (theft) or property damage, as well system. For this reason, in this paper it has focused about the
as personal protection against intruders. Car alarms likewise maintenance of home security.
protect vehicles and their contents. Prisons also use security
systems for control of inmates. Among home security in II. METHODOLOGY
residential is most prominent. Now days, home security and
surveillance system is an essential part of any modern
automated home. The basic design of a security system begins
with analyzing the needs of the inhabitants, surveying existing
technology and hardware, reviewing system costs, considering
monitoring choices and finally planning the installation.
According to the European Institute for Crime Prevention and
Control International statistics on crime and control 2011, to
analyze the no. of burglaries in a year we experienced that
Bangladesh got 2.2 points and ranked 53rd position as well as
0.7 points and ranked 71st position for autotheft in the world.
Now if we look the worlds one of rich country USA we see Figure 1.1: Block Diagram of Operational Method.
that they positioned 6th in autotheft and 9th in burglary [8].
Above block diagram shown in figure 1.1 represents the
Their surveying also shows that most of the burglary occurred
in residential area, office as well as bank. Non-Automated working method of our project work. Here we have taken NFC
security systems were found non-reliable. Doors were fitted (Near field Communication) tag card, password from keypad
and infrared ray i.e motion by PIR sensor as input. The output
with lock and key system which can be opened easily. Even
RES Publication © 2012 Page | 7
http://ijmes.info
International Journal of Modern Embedded System (IJMES) ISSN: 2320-9003(Online)
Volume No.-2, Issue No.-6, December, 2014

of this project is LCD display, Buzzer alarm and servo motor. coil inside the tag is energized, get power from shield and
For hardware implementation we have used interfacing a PIC match. Then a signal comes from arduino uno to the base of
(Peripheral Interface Controller) microcontroller 16F877A NPN transistor. Transistor acts as a switch when it gets signal
16_2 LCD display, a matrix (4_4) keypad, a 21 servo motor its base and turned on. Then it connects servo to power supply
used for door locking and PIR sensor also incorporates a on the other side when the correct password is pressed then a
power supply unit. Arduino Uno provides power supply and signal goes to servo which in turn operates the shaft. and the
microcontroller provide PWM signal to operate the servo lock is operated. Password changing option is another
motor. If keypad only pressed or wrong password provided important part of the mentioned electronic lock system. It is
servo only get PWM. So it will not operate to open the door restricted to unauthorized person because there is a fixed
owing to absence of required power. Besides, if only NFC tag security code which is only known to the authority of the lock.
card is provided in front of shield the servo only gets power LCD shows the output result, the password is being inserted
but owing to PWM it will not operate. Here microcontroller whether correct or wrong. Keypad is used as input unit of the
also takes PIR sensor signal as input. When it gets this signal it lock system.
send signal to Buzzer and sounds alarm.

Figure 1.3: Different parts of Hardware Setup.

Figure 1.2: Circuit Diagram of required project.

The above figure 1.2 shows the complete circuit diagram of


the project. Here microcontroller PIC 16F877A has four port.
Port A Port B, Port C and Port D. Every port has eight pin
such as A0- A7 similarly B0- B7. Here port A is remained
unused. Port B is connected to 16 2 LCD display in where
8pin of port B is attached with LCDs 8 wire. Beside Port D is
connected with 4$_4 keypad similarly here all pin is connected
with keypad. Now remaining port C one of pin is connected
Figure 1.4: Keypad, LCD Display and NFC shield.
with PIR sensor, other pin is connected with servo motor and
another pin is connected with buzzer. Here 2pin for VDD and III. SOFTWARE IMPLEMENTATION
2 pin for VSS. We have connected VDD with power supply 5
volt through 1k resistor and VSS with ground. There is also a
pin MCLR for clearing any data saved in memory. It also
connects with 5 volt power supply through 10 kilo ohm
resistor. OSC1 and OSC 2 pin is used for supply clock for PIC
operation. Here crystal oscillator is used to generate clock and
capable of generating 20 MHz clock signal. When instructions
are loaded into the microcontroller, microcontroller verifies
the input from keypad with the stored password, to interface
with peripheral devices and to change the current password.
The EEPROM of PIC stores the passwords set by the user.
when any password is inserted through the keypad,
microcontroller decode the input, verify it with the stored
password..If password matches which was set by authorized
person, microcontroller sends signal to servo motor . On the Figure 2.1: Circuit Diagram after Simulation
other side when NFC tag card is placed near the shield, the
RES Publication © 2012 Page | 8
http://ijmes.info
International Journal of Modern Embedded System (IJMES) ISSN: 2320-9003(Online)
Volume No.-2, Issue No.-6, December, 2014

Proteus is software for microprocessor simulation, schematic


capture, and printed circuit board (PCB) design. Anyone cab
build any project on computer screen using Proteus. It has
been used 7.7SP2 software to simulate the project. For
simulation the proteus window has opened. Then it has placed
the all necessary component from library (E.g. PIC16F77A).
The Port B is connected with LCD display 8 pin. Port D all
Figure 3.3: Wrong Password.
pins are connected with Keypad. Here one pin of port C is
connected with servo motor. Then we loaded the HEX file
generated from microC Pro into microcontroller. After
simulating the circuit it found no error. Then the correct
password has pressed which represents the password is right
beside servo operates.

IV. RESULT & DISCUSSION


When it shows NFC tag in front of NFC shield and presses Figure 3.4: Enter Old Code.
password there is a text in a LCD display Enter Code is shown
in figure 3.1 If correct password is pressed then it shows
Correct Password and wrong password pressed it shows
Wrong Password in display shown in figure 3.2 and 3.3

Figure 3.5: Enter New Code.

V. CONCLUSION
In this paper it has been seen the prototype model works
Figure 3.1: Enter Code.
without any basic error. So it can be implemented in practical
field. Beside the cost of the project is not too much. Here it has
provided utmost security so it is quite impossible to any
burglar to enter the room without concern of owner. If
available financial and technical support from the concerned
Govt. section and organizations is found, then it will be
possible to commercialize the proposed lock for the benefit of
the people of our country. Some feature has been added to
Figure 3.2: Correct Password. make the project more efficient. It could be implemented it by
When password is correct servo motor gets power and open GSM based home security system. For this when a burglar
the door. After entrance, PIR sensor will not work [16]. When enters the room without the concern of owner a sms will be
the person goes out of the door, he should provide NFC tag in sent to the user. Then he will take precautionary measure. It
the door and then press C for close in keypad. For password may be used another technique called biometrics which is
changing the person should press A in keypad. Then there is a more prominent and a recognized means of positive
text in a display Enter Old Code. After pressing old code, identification. Some new technologies such as fingerprint
display shows it wants Enter New Code. Providing new code, scanning, retinal scanning and iris scanning, and voiceprint
the password will be unchanged until user does not want to identification also can be inserted. Moreover it could be useful
change password is shown in figure 3.4 and 3.5. Now if a for various sensors such as gas sensor, fire sensor for more
person enters the room without providing NFC tag and improvement of the security of home.
password PIR sensor works and sounds alarm.
REFERENCES
[1]. Electronics for You Magazine, Smart Homes Technology
Vol. 43, No. 10.
[2]. Tabinder Akter, Mahfuja Akter, Mohammad,Mozammel
Hoque, Md. Afzalur Rab & Dr MdHabibur Rahman, Design,

RES Publication © 2012 Page | 9


http://ijmes.info
International Journal of Modern Embedded System (IJMES) ISSN: 2320-9003(Online)
Volume No.-2, Issue No.-6, December, 2014

Development and Performance Study of Microcontroller-


Based Home Security System Using Mobile Phone Global [18]. http://www.engineersgarage.com/electronic-
Journal of researches in engineering Electrical and components/16x2-lcd-moduledatasheet 28 September, 2013
Electronics, Volume 12 Issue 6 Version May2012. 37 vi, 42
[3]. Sudhaker Samuel. The 8051 Microcontroller and Embedded
Systems Using Assembly and C 2nd Edition by Muhammad
Ali Mazidi, Janice Gillispie Mazidi and Rolin AUTHOR’S BIOGRAPHIES
D.McKinlay,Sheikh Izzal Azid, Sushil Kumar, Analysis Md. Kamal Hossain has received his B.Sc degree with
andPerformance of a Low Cost SMS Based HomeSecurity Engineering in Electrical and Electronic Engineering (EEE) from
System International Journal of SmartHome Vol.5, No. 3, Chittagong University of Engineering & Technology (CUET),
July, 2011. Chittagong-4349, and Bangladesh in 2013. Currently he is a Lecturer
dept. of EEE at Atish Dipankar University of Science and
[4]. Inderpreet Kaur,Microcontroller Based HomeAutomation
Technology, Dhaka, Bangladesh. His current research interest is in
System withSecurity, InternationalJournal of Advanced the area of Signal & Systems, Power System Analysis and Electrical
Computer Science andApplications (IJACSA), Vol. 1, No. 6, Machine, Renewable energy, Free Electros.
December 2010.
[5]. Y.-K.Choi, K.-M. Kim, J.-W. Jung, S.-Y. Chun, and K.-S. Prodip Biswas has received his B.Sc. degree with Engineering in
Park. K Hagiwara, Y. Chigira, N. Yoshiura, and Y. Fujii Electrical and Electronic Engineering (EEE) from Chittagong
Acoustic intruder detection system for home security , The e- University of Engineering & Technology (CUET), Chittagong-4349,
VigilanteNetwork Project, SICE 2004 Annual Conference. and Bangladesh. in 2011.Currently he is working in SAMSUNG
[6]. kiprakis, A.E.Wallace, analysis of an intelligent security RESEARCH & DEVELOPMENT INSTITUTE BANGLADESH
system,EEE Preceding on generation, Transmission and Ltd. (SRBD) as a Sr. Software Engineer. His current research interest
Distribution,2008,volume:151,IssIue:5,pages:611- 618 vi, 41
is in the area of Wireless & Communication Technology, Renewable
[7]. http://www.nationmaster.com/compare/Bangladesh/United-
Energy, Recycle Bin Technology, DSP and Power Systems.
States/Crime 27 September, 2013
[8]. http://www.hsmc-ul.com/customer-info/security-history 27
September, 2013 vi,2, 12 Mohammed Mynuddin has received his B.Sc degree with
[9]. http://www.protectyourhome.com/history-home-security Engineering in Electrical and Electronic Engineering (EEE) from
27 September, 2013 2 Chittagong University of Engineering & Technology
[10]. http://www.elecfreaks.com/wiki/index.php?title=RFID / NFC (CUET),Chittagong-4349, and Bangladesh.in 2011. Currently he is a
Shield 27 September, 2013 15 Lecturer dept. of EEE at Atish Dipankar University of Science and
[11]. http://www.elecfreaks.com/wiki/index.php?title=File:Arduino Technology, Dhaka, Bangladesh .He is a member of the Institution of
Shield NFC 27 September, 2013 Engineers, Bangladesh (IEB) His membership ID is M-32776. His
[12]. http://en.wikipedia.org/wiki/Radio-frequency identification current research interest is in the area of OFDM, Cognitive Radio,
27 September, 2013vi, 16, 25, 26
Wireless Communication, Industrial Automation, Power System
[13]. http://rapidnfc.com/blog/72/the difference between nfc and
Analysis and Electrical Machine, Renewable energy.
rfid explained vi, 32, 33
[14]. http://www.differencebetween.net/technology/difference-
between-rfid-and-nfc/ 28 September, 2013 vi, 34 Sayidul Morsalin has received his B.Sc degree with Engineering
[15]. http://www.electroschematics.com/7642/pic16f877a- in Electrical and Electronic Engineering (EEE) from Chittagong
datasheet/ 28 September,2013 vi, 10 University of Engineering & Technology (CUET),Chittagong-4349,
[16]. http://www.ladyada.net/learn/sensors/pir.html 28 September, and Bangladesh.in 2013. Currently he is Lecturer dept. of EEE at
2013 vi, 37 Bangladesh University of Business & Technology (BUBT). His
[17]. http://www.seattlerobotics.org/guide/servos.html current research interest is in the area of Image processing,
28 September, 2013 vi, 5, 7, 9,11, 41 Renewable energy and Power Systems.

RES Publication © 2012 Page | 10


http://ijmes.info

View publication stats

You might also like