A Novel Approach for Home Security System Based on ARM P.Satyanarayana

advertisement
International Journal of Engineering Trends and Technology (IJETT) – Volume 16 Number 9 – Oct 2014
A Novel Approach for Home Security System
Based on ARM
P.Satyanarayana1, B.Santosh Kumar2
1
pursuing M.Tech (ES) , 2Assistant Professor & HOD (ECE Department )
1,2
Visvesvaraya College of Engineering and Technology (VCET), M.P.Patelguda, Ibrahimpatnam, RangaReddy, Telangana,
INDIA
Abstract-Now a days Home security plays a vital role in
anywhere. In order to secure and monitor the home we design
this project. The second priority is the house safety like fire
accident or gas accidents. Both are plays a major role. We can
control the home appliances with the help of the transmitter
board which consist switches. While pressing the corresponding
switch we can switch on the corresponding device at the receiver
section or home section. Whenever person enters into the house
light and fans are automatically switched on and when the
person leaves the house light and fans are automatically switched
off. Irrespective of this person can manually switch on/off the
appliances with the transmitter kit which is situated in his hand.
Whenever the emergency situation happens like fire accident or
gas accident we can alert the house owner with the help of the
SMS. By detecting fire in advance we can prevent fire in most
cases.
Keywords: ARM 7 LPC2148, appliances control, GSM and
ZigBee.
I.INTRODUCTION
As technology is in advances, the several applications were
developed in many fields. It is easy to control the home
appliances using advanced technologies. There by we can
reduce the power waste. By placing automatic light and fans
we can switch off lights and fans whenever unnecessary and
switch on when necessary. By placing an obstacle detection
sensor at the entrance we can detect when a person is entering
into the house and when he is leaving. Lights and Fans are
automatically switched on when a person entered into the
house. When the person leaves the house they can be
automatically switched off. If he want to switch of the light
even he is inside the house then he can switch off/on the
electrical appliances with the help of the transmitter section
which is available in his hand. By pressing the corresponding
button on the board he can switch on or off the electrical
device. When we press the button the transmitter board sends
a bunch of commands to the receiver section with the help of
Zigbee. The transmitter section sends corresponding
commands of the switch pressed. Data can be received with
the help of the Zigbee module placed at the receiver terminal.
The device can be switches on by comparing the received
data.Corresponding operation is done regarding the received
data. We are UART (Universal Asynchronous and Receive
Transmit) protocol for the communication with the Zigbee
module.
ISSN: 2231-5381
At the same time we are monitoring some important
parameters like gas detection. The damage occurred when
there is a gas explosion is very high. We can prevent the gas
accident if we detect the gas in advance. If we have enough
timer to prevent gas explosion then we can easily prevent the
fire accident and reduce the damage. We are using the gas
sensor to detect the gas leakage. Whenever the gas leakage
occurs gas sensor detects and alerts the micro controller. If we
receive alert from gas sensor then we sends an emergency
message to the owner using GSM. The mobile no of the
person is stored in the micro controller. Whenever the
emergency situation occurs an alert message is send to the
mobile no stored in the micro controller.
We are using IR receiver for the obstacle detection. IR rays
are known as Infrared rays. They have the wave length of 700
nm to 1mm. They are placed right next to the visible rays.
Since the wave length of infrared rays are out of the visible
range they are invisible to human rays. We are placing IR
transmitter and IR receiver facing with each other. IR receiver
is known as the IR photo diode which means voltage is
generated whenever we are having infrared rays. Since we are
placing our project is placed in door we don’t have problems
with the sunlight. We are placing both the IR receiver and
transmitter either side of the door. When a person walks
through the door there is a brake ofIR rays. So that we can
detect if anyone is entering to the room or going outside.
GSM module is known as Global Service for Mobile
communication. Now a days GSM is widely used in many
applications like mobile phones. To communicate with the
GSM module we need network coverage. In modern world we
are having wide range of network. We are having mobile
network in almost all cities and villages. The frequency band
for the GSM modem in India are 900 MHz and 1800 MHz.
Here we are controlling high voltage applications like light,
fan. Operating voltage of light and fan are 230v AC supply.
We can’t control the high voltage with the micro controller. In
this case we are using the interface to control the AC 230v
mains. We are using relays to control the electrical appliances.
Relays are used to control the high voltage with the switching
voltage of 5v, 12v and 24v regarding to our requirement.
Relay is the combination of electromagnetic coil and single
pole double through switch which are placed nearby.
http://www.ijettjournal.org
Page 406
International Journal of Engineering Trends and Technology (IJETT) – Volume 16 Number 9 – Oct 2014
II. HARDWARE MODULE DESCRIPITION
5.
In-System Programming (ISP) and also In-
Application Programming (IAP) via on-chip boot-
A. Transmitter section
loader software.
LCD
6.
Controlling
Buttons
It has 2 CAN communication protocol,
interfaces for control of several devices.
ZigBee
7.
Micro-controller
It provide inbuilt ADC consists of 14
channel A/D converter.
8.
It has multiple serial interfaces including
two UARTs, Fast I2C (400kbps)
9.
It 2 SPIs and 2 CAN 60 MHz maximum
CPU clock available for programmable on-chip
Fig1: Block diagram of Monitoring section
Phase-Locked Loop with settling time of 100ms.
10.
B. Receiver Section
It has PWM unit (6 outputs), RTC,
Watchdog and two 32-bit timers (with 4 capture and
4 compare channels),
LCD
Power
supply
ZigBee
Microcontroll
er
Relay
driver
GSM
Appliances
control
Fig2: Block diagram of control section
B. GSM (Global system for mobile):
It is a long distance communication device used to
interact similar like our mobile phones. The modem is
used for voice (call), send and receive depending upon
require application. The ARM 7 have two serial ports
i.e. UART0 and UART1.By using these two serial
ports we are easy to communicate with GSM. We can
simultaneously send and receive data to ARM 7
microcontroller and perform the task depending upon
application. This Modem used to get alertness
whenever accident occurs to a respective owner or
hospital or police station.
VCC
VCC
The Block Diagram describes the overall system
development for vehicle tracking and detection. The system
consists of ARM 7 Microcontroller, appliances control,
ZigBee, GSM and LCD.
RX
A. ARM 7 Microcontroller:
It is advance Technology compares to different controllers
like 8051, PIC and AVR etc. It consists of features like
ARM 7
TX
GSM
MODEM
1.
It has 32 bit GPIO pins used for both input
as well as output.
2.
It has data memory16 kB on-chip Static
RAM.
3.
It consists of on-chip Flash Program
GND
GND
Fig 3: Interface ARM 7 Board to GSM Modem
Memorywith 128/256kB in size.
4.
It accelerates operating speed of 60 MHz
range of frequency.
ISSN: 2231-5381
The figure describes the interface with GSM modem to
ARM 7 for transmission and reception. This module is used to
get alertness whenever uneven condition occurs.
http://www.ijettjournal.org
Page 407
International Journal of Engineering Trends and Technology (IJETT) – Volume 16 Number 9 – Oct 2014
C. ZIGBEE:
It is a wireless communication and used to communicate
with one device to another device within distance 10- 20m. It
is easy way to communicate with one device to another
device. The communication is developed based on Bee, the
bird which would travel as speed as they can.
D. RELAY:
It is used for switch control of the two devices. In order to
operate both devices we can use this device. It is worked on
principle of electromagnet induction operates mechanical like
a switch.
wirelessly. Gas sensor is to detect the gas leakage. Relays are
used to control the high voltage appliances like the fan and
light. GSM is mostly used for the transition and reception of
message and data using mobile communication. GSM is used
to transmit the data using voice calls and transmit and
received the text using the SMS. Now a days we are having
network coverage for almost all areas.
The below figure represents the step by step
procedure for developing application related to home
appliance control.
Start
Checking for Data
The user sends the required data
which device is going to turn on or
off through GSM/ZIGBEE
The Appliances control like fan,
blub will control depends upon
user send commands
Fig 4: Schematic Diagram for Transmitter section
The data is continuously monitor
through wireless communication
(ZIGBEE) and display required
information on LCD and sends
emergency alert message through
GSM if required
STOP
Fig 4: Step by step overview of security control system
The above algorithm represents overview of Home security
control system based on wireless communication and advance
microcontroller. The system has implemented in Home
security system and gets required information using wireless
communication.
Fig 5: Schematic Diagram for Receiver section
The following figure shows the operation of security system
in home appliances. The above figure consists of LCD,
Zigbee, GSM, gas sensor, relays. LCD is for the display
purpose. Zigbee is for the transition and reception of data
ISSN: 2231-5381
IV WORKING
The main aim of the project is to operate the devices like
light and fan to switch ON/OFF and at the same time we
monitors parameters like obstacle detection and gas leakage.
When we switch on the project it sends initialization
http://www.ijettjournal.org
Page 408
International Journal of Engineering Trends and Technology (IJETT) – Volume 16 Number 9 – Oct 2014
commands to the LCD and GSM. It monitors the sensors like
obstacle detection and fire detection.
If obstacle detected Lights and Fans are ON/OFF according
to the previse condition. If lights are already on then they off
and vice versa.
If Gas is detected then an emergency message is send to the
number stored in the Micro controller.
[5] C. Spelta, V. Manzoni,A.Corti,A. Goggi, and S.M. Savaresi,
“Smartphone-based vehicle-to-driver/environment interaction system
for motorcycles,”IEEE Embed. Systems Lett., vol. 2, no. 2, pp. 39–
42, Jun.2010.
[6] A. Dardanelli,M. Tanelli, and S.M. Savaresi, “Active energy
managementof electric vehicles with cartographic data,” presented at
the 2012IEEE Int. Electr. Veh. Conf., 2012.
[7] Microchip Technology Inc., 16-bit dsPIC® Digital Signal
Controllers.
If data is received from the Zigbee the micro controller
compares the data with the predefined strings and checks if
any of them are matched. If matched then corresponding
operation is done like switching ON/OFF the fan or light.
[8] NIST Special Publication 800-121 Revision 1, Guide to
Bluetooth Security:Recommendations of the National Institue of
Standards andTechnology 2012.
If no message received and no sensor is active then micro
controller starts code from the first line.
[9] C. Hager and S. Midkiff, “Demonstrating vulnerabilities in
bluetoothsecurity,” in Proc. IEEE Global Telecommun. Conf.
(GLOBECOM’03),2003, vol. 3, pp. 1420–1424.
V.SOFTWARE REQUIRMENTS
To make micro controller work we need to write the code
in machine language. Machine language is complicated to
write or understand. In such case we are writing our code in
high level language like C and we are converting our C
language code to machine language. Keil compiler is used to
convert the C language code into the machine language code.
After compiling C language code HEX file is generated. Flash
magic is used to dump our HEX file into micro controller.
Keil and flash magic are two software toolsused.
[10] Atmel AVR Microcontroller Primer: Programming and
Interfacing Steven F. Barrett University of Wyoming Daniel J. PacK
[11] C. Haseman, Andriod Essentials, Berkeley, CA: A Press,
2008
[12] H. Gelgele, Kesheng Wang, “An expert system for engine
fault diagnosis: development and
VII. AUTHOR DETAILS
V. CONCLUSION
The project has been implemented in Home security and
control system based on GSM and ZIGBEE Technology. We
can control the appliances like fan, blub etc. through GSM and
also monitors the parameters like gas etc.In future we can
maintain database in http server and it is going to update data
in real time manner.
P.Satyanarayana, Pursuing
M.Tech
(ES)
from
Visvesvaraya
College
of
Engineering and Technology
(VCET),
M.P.Patelguda,
Ibrahimpatnam,RangaReddy
,Telangana, INDIA
VI .REFERENCES
[1] I. Rouf, R. Miller, H. Mustafa, T. Taylor, S. Oh, W. Xu, M.
Gruteser,W. Trappe, and I. Seskar, “Security and privacy
vulnerabilities of incarwireless networks: A tire pressure monitoring
system case study,” inProc. 19th USENIX Conf. Security, Berkeley,
CA, USA, 2010, pp.21–21.
[2] S. Checkoway, D. McCoy, B. Kantor, D. Anderson, H.
Shacham, S.Savage, K. Koscher, A. Czeskis, F. Roesner, and T.
Kohno, “Comprehensiveexperimental analyses of automotive attack
surfaces,” in Proc.20th USENIX Conf. Security, Berkeley, CA, USA,
2011, pp. 6–6.
[3] F. Stajano, Security for Ubiquitous Computing. Hoboken, NJ,
USA:Wile, 2002.
[4] A. Dardanelli, M. Tanelli, B. Picasso, S. Savaresi, O. di Tanna,
and M.Santucci, “A smartphone-in-the-loop active state-of-charge
managerfor electric vehicles,” IEEE ASME Trans. Mechatron., vol.
17, no. 3,pp. 454–463, 2012.
ISSN: 2231-5381
http://www.ijettjournal.org
B.SanthoshKumar,working
as Assistant Professor & HOD
(ECE
Department)
from
Visvesvaraya
College
of
Engineering and Technology
(VCET),
M.P.Patelguda,Ibrahimpatnam,
RangaReddy. He Pursuing
Ph.D
in
Wireless
Communications .He has
morethan nine years of
Experience in Teaching Field.
Page 409
Download