Home Automation System with Security
Home Automation System with Security
Abstract— With advancement of technology things are becoming A home automation system integrates electrical devices in a
simpler and easier for us. Automatic systems are being preferred house with each other. The techniques employed in home
over manual system. This unit talks about the basic definitions automation include those in building automation as well as the
needed to understand the Project better and further defines the control of domestic activities, such as home entertainment
technical criteria to be implemented as a part of this project. systems, houseplant and yard watering, pet feeding, changing
the ambiance "scenes" for different events (such as dinners or
Keywords-component; Automation, 8051 microcontroller, LDR, parties), and the use of domestic robots. Devices may be
LED, ADC, Relays, LCD display, Sensors, Stepper motor
connected through a computer network to allow control by a
personal computer, and may allow remote access from the
I. INTRODUCTION internet.
With advancement of technology things are becoming Typically, a new home is outfitted for home automation
simpler and easier for us. Automation is the use of control during construction, due to the accessibility of the walls,
systems and information technologies to reduce the need for outlets, and storage rooms, and the ability to make design
human work in the production of goods and services. In the changes specifically to accommodate certain technologies.
scope of industrialization, automation is a step beyond Wireless systems are commonly installed when outfitting a pre-
mechanization. Whereas mechanization provided human existing house, as they reduce wiring changes. These
operators with machinery to assist them with the muscular communicate through the existing power wiring, radio, or
requirements of work, automation greatly decreases the need infrared signals with a central controller. Network sockets may
for human sensory and mental requirements as well. be installed in every room like AC power receptacles.
Automation plays an increasingly important role in the world
economy and in daily experience. Although automated homes of the future have been staple
exhibits for World's Fairs and popular backgrounds in science
Automatic systems are being preferred over manual fiction, complexity, competition between vendors, multiple
system. Through this project we have tried to show automatic incompatible standards and the resulting expense have limited
control of a house as a result of which power is saved to some the penetration of home automation to homes of the wealthy or
extent. ambitious hobbyists.
60 | P a g e
[Link]
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 1, No. 6, December 2010
GN D
A. Transformer: VIN VOUT
The main source of power(Fig 1) supply is a transformer.
The maximum output power of power supply is dependent on T2 R16
maximum output power of transformer .We determine power J6
from its current and voltage rating. e.g.: if there is a transformer 1 5 D11 1N4007 C12 220E
2
of 12V, 500mA then maximum power delivered by transformer
2 C11
1000uf / 25v
is 6Watt.
100uf / 50v
It means we can drive a load from this transformer up to 1 D10 1N4007
6w. In our project our maximum power requirement is 1watt. D6
So to provide this power we use 12V/250mA transformer. The
maximum output power of this transformer is [Link] means it 4 8 LED
can easily drive load up to 4 watt. 220v
B. Rectifier 0-9
Rectifier is a circuit which is used to convert ac to dc. D12 1N4007
Every electronic circuit requires a dc power supply for
rectification. We have used four diodes. Fig 1-volt DC supply
C. Input filter: This supply is for the microcontroller, display and relay
After rectification we obtain dc supply from ac but it is not unit. . The microcontroller requires 5 volt supply to perform
pure dc it may have some ac ripples .To reduce these ripples any desired task.
we use filters. It comprises of two filters –low frequency ripple
filter and high frequency ripple filter. G. Control Unit
To reduce low frequency ripples we use electrolytic Two control units were used one for internal system and
capacitor. The voltage rating of capacitor must be double from one for external system and these control unit based on
incoming dc supply. It blocks dc and passes ripples to ground. ATMEL’sAT89S52 microcontroller(Fig 2). The given capture
shows the pins and basic requirement of microcontroller to
make it functional. Detailed description of the controller is
61 | P a g e
[Link]
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 1, No. 6, December 2010
given as follow: two-level interrupt, a full duplex serial port, on-chip oscillator,
and clock circuitry.
In addition, the AT89S52 is designed with static logic for
operation down to zero frequency and supports two software
selectable power saving modes. The Idle Mode stops the CPU
while allowing the RAM, timer/counters, serial port, and
interrupt system to continue functioning. The Power down
Mode saves the RAM contents but freezes the oscillator,
disabling all other chip functions until the next interrupt or
hardware reset.
The Downloadable Flash can be changed a single byte at a
time and is accessible through the SPI serial interface. Holding
RESET active forces the SPI bus into a serial programming
interface and allows the program memory to be written to or
read from unless Lock Bit 2 has been activated.
H. Features
Compatible with MCS-51™Products
8K bytes of In-System Reprogrammable
Downloadable Flash Memory
SPI Serial Interface for Program Downloading
Endurance: 1,000 Write/Erase Cycles
4.0V to 5.5V Operating Range
Fully Static Operation: 0 Hz to 33 MHz
256 x 8 bit Internal RAM
32 Programmable I/O Lines
Three 16 bit Timer/Counters
Eight Interrupt Sources
Full Duplex UART Serial Channel
Fig 2-Chip Board Low Power Idle and Power Down Modes
AT89S52 is an ATMEL controller with the core of Intel Interrupt Recovery from Power Down Mode
MCS-51. It has same pin configuration as give above. The
AT89S52 is a low-power, high-performance CMOS 8-bit I. Advantages
microcomputer with 8K bytes of Downloadable Flash
programmable and erasable read only memory and 2K bytes of Less power consumption
EEPROM. The device is manufactured using Atmel’s high Low cost
density nonvolatile memory technology and is compatible with
the industry standard 80C51 instruction set and pin out. Less space required
62 | P a g e
[Link]
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 1, No. 6, December 2010
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal PSEN: Program Store Enable (PSEN) is the read strobe to
pull-ups. The Port 1 output buffers can sink/source four TTL external program memory. When the AT89S52 is executing
inputs. When 1s are written to Port 1 pins, they are pulled high code from external program memory, PSEN is activated twice
by the internal pull-ups and can be used as inputs. As inputs, each machine cycle, except that two PSEN activations are
Port 1 pins that are externally being pulled low will source skipped during each access to external data memory.
current (IIL) because of the internal pull-ups.
EA/VPP: External Access Enable. EA must be strapped to
In addition, P1.0 and P1.1 can be configured to be the GND in order to enable the device to fetch code from external
timer/counter 2 external count input (P1.0/T2) and the program memory locations starting at 0000H up to FFFFH.
timer/counter 2 trigger input (P1.1/T2EX), respectively, as Note, however, that if lock bit 1 is programmed, EA will be
shown in the following table .Port 1 also receives the low-order internally latched on reset. EA should be strapped to VCC for
address bytes during Flash programming and verification. internal program executions.
Port 2: Port 2 is an 8-bit bidirectional I/O port with internal This pin also receives the 12-volt programming enable
pull-ups. The Port 2 output buffers can sink/source four TTL voltage (VPP) during Flash programming.
inputs. When 1s are written to Port 2 pins, they are pulled high
by the internal pull-ups and can be used as inputs. As inputs, XTAL1: Input to the inverting oscillator amplifier and input
Port 2 pins that are externally being pulled low will source to the internal clock operating circuit.
current (IIL) because of the internal pull-ups. XTAL2: Output from the inverting oscillator amplifier.
Port 2 emits the high-order address byte during fetches H. Display Unit
from external program memory and during accesses to external
data memory that uses 16-bit addresses (MOVX @ DPTR). In
this application, Port 2 uses strong internal pull-ups when
emitting 1s. During accesses to external data memory that uses J2 LCD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
P2 Special Function Register. Port 2 also receives the high-
VCC
R52
order address bits and some control signals during Flash 56E
programming and verification.
VCC
VCC
VCC
Y1 P1.0/T2 2
inputs. When 1s are written to Port 3 pins, they are pulled high 4
P1.1/T2-EX
P1.2
3
4
12
P1.3
by the internal pull-ups and can be used as inputs. As inputs, 3
19
18 XTAL1
XTAL2
P1.4/SS
P1.5/MOSI
5
6
33pF C2 7
Port 3 pins that are externally being pulled low will source 9
RST
P1.6/MISO
P1.7/SCK
8
RS
current (IIL) because of the pull-ups. 12
P3.2/INT0 P3.3/INT1
P3.4/T0
13
14
EN
15
Port 3 receives some control signals for Flash programming P3.5/T1
21
and verification. Port 3 also serves the functions of various VCC
P2.0/A8
P2.1/A9
22
23
special features of the AT89S52. P2.2/A10
P2.3/A11
24
25
C3 P2.4/A12 26
10uF 16V 32 P2.5/A13 27
RST: Reset input. A high on this pin for two machine R1
33
34
P0.7/AD7
P0.6/AD6
P2.6/A14
P2.7/A15
28
P0.5/AD5
cycles while the oscillator is running resets the device. This pin 10K 35
36 P0.4/AD4 P3.7/RD
P0.3/AD3 P3.6/WR
17
16
37 29
drives high for 98 oscillator periods after the Watchdog times 38
39
P0.2/AD2 PSEN
P0.1/AD1 ALE/PROG
30
10
GND
P0.0/AD0 P3.0/RXD
out. The DISRTO bit in SFR AUXR (address 8EH) can be P3.1/TXD
11
AT89S52
used to disable this feature. In the default state of bit DISRTO,
20
63 | P a g e
[Link]
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 1, No. 6, December 2010
automatically(Fig 4) at dark or when someone approaches and outside can just see the closed door and not the lock as it is
can see inbuilt. The password is given with the help of controller and
can be changed by simply making a small change in the
TEMPRATURE program and then burning the program in the controller.
LCD FIRE
Display MONITORING SENSOR
B. Counter dependent automatic switching system of
room
After opening the lock when the person enters the room the
counter gets incremented. Now if it is a day then the lights
would not be switched on but if it is dark then the lights will
automatically switch on. Now whatever may be the number of
people entering the room the counter will automatically get
incremented by itself and on leaving the room the counter will
get decremented but the system will keep on working .Once the
counter is zero in other words once everyone leaves the room
Led LDR the switching system will automatically stop working.
Light
8051 C. Temperature controlled cooling system
MICROCNTROLLER Once the person has entered the room he would not require
Led LDR to switch on anything everything will just happen
Light automatically. Like if the temperature is high then the fan will
switch on, on its own. Else it will remain in off state. This
temperature is predefined by us in the controller. But this
system will only work if there is a person in the room in other
words if the counter is not zero.
VII. CONCLUSION
DEVICE DEVICE
1 2 An automated home can be a very simple grouping of
Fig 4-Automatic System controls, or it can be heavily automated where any appliance
who is at the front door from any nearby television, and talk that is plugged into electrical power is remotely controlled.
to them or unlock the door from any nearby telephone. Have Costs mainly include equipment, components, furniture, and
the security system turn off lights, close drapes and setback the custom installation.
temperature when we leave and turn on the alarm system. The Ongoing costs include electricity to run the control systems,
possibilities are only limited by our imagination. maintenance costs for the control and networking systems,
including troubleshooting, and eventual cost of upgrading as
VI. FEATURES standards change. Increased complexity may also increase
maintenance costs for networked devices.
A. Password Based Locking System Learning to use a complex system effectively may take
In this system we have ensured a safe locking system. On significant time and training.
seeing from outside the lock would not be visible but this
inbuilt locking system ensures security. This lock can be Control system security may be difficult and costly to
opened and closed with the help of a password which we will maintain, especially if the control system extends beyond the
give using a keypad. The door will only open or close only if home, for instance by wireless or by connection to the internet
the password is correct else it will remain in its original state. or other networks.
The lock cannot be broken because to the person standing
64 | P a g e
[Link]
(IJACSA) International Journal of Advanced Computer Science and Applications,
Vol. 1, No. 6, December 2010
65 | P a g e
[Link]