Professional Documents
Culture Documents
INTRODUTION
Today every body is very consious about the security of their assets and
home appilance. So home security system is very popular nowadays but it also have some
drawbacks. In case conventional home security system, any one can operate it that means
any one can swtich it on or off without permission of the owner. Introduction of code lock
home security system can greatly solve this problem. By using this system only user can
operate home security stystem. In this system, when correct code is entered the controller
senses it and triggers motor and whenever faulty code is entered the microcontroller senses
it and alarm turns on. Hence user can change the code and can keep it secret.
BLOCK DIAGRAM
CIRCUIT DIAGRAM
V C C
S E V E N S E G M E N T
V C C
47 0 oh m s *7 U 6
16
7 13 4
O U TA B I/ R B O
a
VCC
V C C 6 12 5
b
O U TB R B I
4 11 3
O U TC LT
c
R 1 U 4
D 16 A 2 10 7 R 2 R A T 89C 51
O U TD IN A +12 V
d
3 R
40
31
CC
1 9 1 3 9 21
O U TE IN B P 0 .0 P 2 .0
e
3 8 22
EA
P 0 .1 P 2 .1
VCC
9 15 2 3 7 23
O U TF IN C P 0 .2 P 2 .2
f
3 6 24
10 14 6 3 5 P 0 .3 P 2 .3 25
9
O U TG IN D P 0 .4 P 2 .4
g
3 4 26 1 16
P 0 .5 P 2 .5 IN A O U TA
GND
5 7 447 A 3 3 27 2 15
DP
P 0 .6 P 2 .6 IN B O U TB
COM
3 2 28 3 14
P 0 .7 P 2 .7 4 IN C O U TC 13
JP 1
8
1 10 5 IN D O U TD 12
2 P 1 .0 P 3 .0 11 1 6 IN E O U TE 11
3 P 1 .1 P 3 .1 12 2 7 IN F O U TF 10
4 P 1 .2 P 3 .2 13 3 IN G O U TG
5 P 1 .3 P 3 .3 14 4
P 1 .4 P 3 .4 5
GND
6 15
7 P 1 .5 P 3 .5 16 6
P 1 .6 P 3 .6 7 V C C
8 17 U LN 200 4
8
P 1 .7 P 3 .7 8 U 7
1 19 8 H E A D E R
X 1 C 26
2 18 9 V C C +12 V
X 2 R S T
GND
K 1
10 M FD 4
TO KEY BOARD R E LA Y S P D T 3
6M hz
20
C 25 C 15 5
1
18p F 18p F J6 2
R 12 2
L M 7805 1 V C C
V C C 10K
U 1 m o to r TO ALARM
3 1 J3
V O U T V IN TO MOTOR
D 3 1
J10
C 27 C A 2
1
GND
C A P N P b uzz er
2
C 23 3
1N 400 7
2
D 1 1 5 -0 -1 5
+12 V C A
2 2 0 0 M F D /2 5 v
U 5
1N 4 007
3 1
V O U T V IN
GND
C 24
C A P N P
2
L M 7812
CIRCUIT DESCRIPTION
Micro controller:
7-SEGMENT DISPLAY-:
The present chapters the operation of power supply circuit built using
filter, rectifier, and then voltage regulators. Starting with an ac voltage, a steady dc
voltage is obtained by rectifying the ac voltage, then filtering to a dc level, and
finally, regulating to obtain a desired fixed dc voltage .The regulator is usually
obtained from an IC voltage regulator unit, which takes a dc voltage, which remain
the if the input dc voltage varies, or the output load connected to the dc voltage
changes
The ac voltage, typically 220 v rms is connected to a transformer, which step that ac
voltage down to the level for the desired dc output. Diode rectifier then provides a
full wave rectified voltage that is initially filtered by simple capacitor filter to
produce a dc voltage. This resulting dc voltage usually has some ripple or ac voltage
variation. The regulated circuit can use this dc input to provide a dc voltage that not
only has much less ripple voltage but also remain the same dc value even if the
input voltage vary some what, or the load connected to the output dc voltage
changes. This voltage regulation is usually obtained using regulator IC .
VOLTAGE REGULATOR
The voltage regulator plays an important role in a power supply unit .The primary
purpose of the regulator is to aid the rectifier and filter circuit in providing a constant dc
voltage to the device. Power supplies without regulators have an inherent problem of
changing of dc voltage values due to variations in the load or due to fluctuations in the ac
linear voltage. With regulator connected to the dc output, the voltage can be maintained
with a close tolerant region of the desired output.
IC VOLTAGE REGULATIOR
Voltage regulator comprises a class of widely use ICs. Regulator IC outs contain the
circuit for reference source, comparator, amplifier, control device, and overload protection
all in a single IC. Although the central construction of the IC is some what difference from
that described for discrete voltage regulator circuits, the central operation is much the
same .IC units provides regulation of either a fixed positive voltage, a fixed negative
voltage or an adjustable set voltage.
A power supply can be built using a transformer connected to the ac supply line to step
the ac voltage to desired amplitude, then rectifying that ac voltage, filtering with a
comparator RC filter, if desired, and finally regulating the dc voltage using IC regulator
The fixed voltage regulator has an unregulated dc input voltage, vi, applied to one
input terminal and a regulated output dc voltage, from a second terminal, with third
terminal connected to the ground. For a selected regulator, IC device specifications list a
voltage range over which the input voltage can vary to maintain a regulated output voltage.
Over a range of load, current .The specifications also list the amount of output voltage
change resulting from a change in load current (load regulation) or input voltage (line
regulation).
The third IC terminal is connected to ground. While the input voltage may vary over
some permissible voltage range and the output load may vary over some acceptable range.
The output voltage remains constant within specified voltage variation limits
78xx series are three terminal positive fixed voltage regulators. There are some output
voltage options available such as 5, 6, 8,10,12,18and 24 v.
PCB LAYOUT
FABRICATION OF PCB
The PCB must be fabricated first. Then the components are soldered carefully to PCB.
We should keep in mind that the quality of soldering affects the quality of output. The
procedure for fabricating the PCB for setting up the circuit of any multi purpose
project is described below.
PCB MAKING
PCB DRAWING
PCB FABRICATION
The copper clad PCB laminate is now prepared by rubbing away the oxide, grease etc.
With fine emery paper or sand paper on this, the final PCB drawing may be traced by
using a carbon paper. Clips are used to prevent the carbon paper from slipping while PCB
pattern is being traced on the laminate. Only the connecting lines in PCBs, slants and
holes, should be traced. The components position can be marked on the PCBs reverse side
if desired.
The marked holes in PCB may be drilled using 1mm or 3mm drill bits and the traced
PCB pattern created with black, quick drilling enamel paint, using a thin brush or a small
metal case. In case, if there is any shorting of lines due to spilling of paint, there may be
removed by scrapping with a blade or knife, after the paint has dried.
After drying, 20-30gms of Ferric chloride in 75ml of water may be heated to about
60deg and over the PCBs placed with its copper side upwards in a plastic tray. Stirring the
solution helps speedy etching. The dissolution of unwanted copper would take about 45
minutes. If etching takes longer, the solution may be heated again and the process is
repeated. The paint on the pattern can be removed by rubbing with a rag soaked in thinner,
turpentine or acetone. The PCB may then be washed and dried.
Depending on the wiring diagram, the resistors are taken care at first, and then the ICs
are soldered.
FLOW CHART
.org 0000h
sjmp key0
.org 0050h
key0:mov sp,#50h
mov r0,#00h
mov 74h,#06h
mov 75h,#07h
mov 76h,#08h
mov 77h,#09h
mov r1,#00h
mov r2,#00h
mov p2,#0ffh
mov p1,#0ffh
clr p0.0
clr p0.1
key12: acall key1
ljmp store
key1:mov p3,#0feh
jb p3.7,skip1
ljmp a0
skip1: jb p3.5,skip2
ljmp a1
skip2: jb p3.4,skip3
ljmp a2
chan:mov a,70h
cjne a,74h,alarm1
mov a,71h
cjne a,75h,alarm1
mov a,72h
cjne a,76h,alarm1
mov a,73h
cjne a,77h,alarm1
mov p1,#0ffh
mov p2,#0ffh
cjne r2,#01h,elev
inc r0
ljmp key12
elev: setb p0.0 ;motor open
lcall delay
clr p0.0
mov r0,#00h
mov r1,#00h
dis15: ljmp key12
.org 032dh
ljmp key0
mov tl1,#3ch
mov th1,#0afh
disp:
setb tr1
jnb tf1,disp
clr tr1
clr tf1
djnz r6,s9
djnz r5,s8
ret
delay1: mov r5,#02h
s1: mov r6,#0e4h
s2: mov tmod,#10h
mov tl1,#00h
mov th1,#00h
setb tr1
disp1: jnb tf1,disp1
clr tr1
clr tf1
djnz r6,s2
djnz r5,s1
ret