Professional Documents
Culture Documents
com)
Colombo, Sri Lanka
SYSTEM FEATURES
Integrated Circuits
This system uses a Microchips PIC16F877A as a main
controller, LM339 as sensor interface, UM3561 as a
All the software and firmware programs are
distribute under the terms of
Assembly
The PCB design given with this article makes the
assembly much simpler. As PCB contain 230V AC
main lines care must be taken while assembling the
circuit. As shown in the fig.1 all the photoelectric
Beeper
Environment Sensor
Fig.1 - Connectors, Jumpers and other controls of the Programmable Home Security Alarm System
DC Power input : Attach DC power supply with 18V 25V (2A Max.) output.
RS232 Connector : Connect RS232 serial cable to the
port to configure the system. Do not use RS232 Null
Modem cable with this port.
PHONE/LINE connector : Attach standard RJ12/RJ11
telephone cable connector to this port. One port is
need to use with the phone line and remaining port is
for the phone (and it is optional).
12
23
: Ambulance Siren
Open
: Police Siren
X2 connectors.
11. Press 3 and execute Self Test.
12. Adjust R4*, R6* and R8* preset controls, if the
sensors are not trigged as expected.
13. Adjust R11 preset to control the Day and
Night mode detection.
14. Open the Jumper J2 and press 5 to return to the
Run mode.
15. Shutdown the power supply and disconnect the
RS232 cable.
Speed (baud)
9600
Data bits
Stop bits
Parity
OFF
Flow control
XON/XOFF
Parts List
C1, C18, C19
0.1F (25V)
IC1
PIC16F877A
C2, C3
10pF
IC2
LM339N
C11
0.22F (100V)
IC3
MAX232
C16, C17
0.33F (50V)
IC4
UM3561
1F (50V)
IC5
PC2002 / TDA2002
C13, C14
1F (100V)
IC6
7805TV
C9
10F (35V)
IC7
7812TV
C10
1000F (35V)
IC8
LM317
C12
220F (35V)
D1
1N4004 Diode
C20
100F (35V)
D2
1N4148 Diode
C21
470F (35V)
C8
VE09-0151 MOV
10K
T1, T3
2SC945
22K
T2
2SD400
R12
68K
Q2
BS170
R13, R14
2.2K
Q3
IRF9640
R15
330K
Q1
20.00MHz Crystal
R16, R20
1K
R4, R8
330
R6
100
R11
R18
220
L1
4.8 H Inductor
47K
LDR1
VT90N2 LDR
R43
240 (0.5 W)
LD1
TRN1
JP1
J1
SG1
F/QMX Buzzer
J2
1X2MTA header
RL1
J3
RL2
X3
S1
SPK
S2
0.1MFD (25V)
LM339N
3
10pF
WIREPAD3,17/1,3
O1
R23
R24
R25
R26
R27
R28
R29
R30
IC7
7812TV
3
C17
VI
1K
R16
1K
C10
5
3
0.1MFD (25V)
IC8
LM317
C19
0.1MFD (25V)
C18
+12V
4.8uH 1
GND
+3V
C20
GND
0.33MFD/50V
+5V
4R SPEAKER
ADJ
VO
0.33MFD/50V
0.22MFD/100V
L1
OUT
330R
470MFD/50V
C11
IC6
7805TV
GND
GND
16
VCC
GND
IN
C16
UPC2002
GND
R20
GND
+5V
15
+3V
100R
C12
100R
VSS
R43
100R
R15
12
T3
2SC945
DC7
IC5
240R
100R
Q3
IRF9640
R42
100R
VDD
R17
330K
GND
C9
10K
100R
C21
OUT
OSC1
GND
C13
100R
VO
SEL1
SEL2
+12V
GND
R38
220R
R37
220R
R36
220R
R35
220R
R34
220R
R33
220R
R32
220R
R31
220R
100R
D1
1N4004
red
32
11
DC0
VI
10K
3
R18
UM3561
50K LOG POT
R19
GND GND
1 - 2 : FIRE ALARM
3 - 2 : AMBUL. ALARM
OPEN : POLICE ALARM
OSC2
DAC_BUS
S1
1MFD/100V
1MFD/100V
RL2
P1
WIREPAD3,17/1,3
Q2
BS170
10MFD/35V
C14
SERIAL OUTPUT
IC4
6
T2
2SD400
GND
PAD1
GND
X3-7
X3-8
X3-3
TONE SELECTOR
1 JP1
2
3
K2
K1
R14
T1
2SC945
TPTRANS
C2
RL2
JZC-23F
X3-2
RL1
L2
M1
K2
H2
2.2K
H1
M2
PAD2
GND
R40
D-SUB9-H3M09RA
X3-1
X3-6
X3-4
GND
MAX232
CB2
CB2
14
7
13
8
T1IN
T1OUT
T2IN
T2OUT
R1OUT
R1IN
R2OUT
R2IN
R39
47K
+12V
RL1
RSB-5-S
K1
R13
L1
D2
CB7
J1-1
LIGHT INPUTS
CB3
J2
N1
TRN1
MOV 221
DC1
2.2K
C1
J1-2
C2-
+3V
CB6
+5V
C8
X3-5
11
10
12
9
SERIAL BUS
VC2+
1MFD/50V
PIC16F877P
V+
C5
1MFD/50V
C1-
GND
C7
C6
C1+
CB0
RL1
D1
6
5
4
3
2
1
1MFD/50V
3
4
1
2
3
IC3
C4
47K
GND
GND
1MFD/50V
GND
2RJ11-6L-B
J3
R22
10pF
N2
TELEPHONE INPUT/OUTPUT
GND
6
5
4
3
2
1
C2
GND
S1
2RJ11-6L-B
C3
1
2
R10
22K
3
2
1
R11
50K LIN
ENV. SENSOR
31
12
+5V
CB4
100MFD/35V
GND
GND
Q1
LM339N
13
10
R9
R21
330R
30
29
28
27
26
25
24
23
22
21
PSP7/RD7
PSP6/RD6
PSP5/RD5
PSP4/RD4
RX/RC7
TX/RC6
SDO/RC5
SDI/RC4
RD3/PSP3
RD2/PSP2
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO
RC1/T1OSI
RC2/CCP1
RC3/SCK
RD0/PSP0
RD1/PSP1
VSS
CB5
1000MFD/35V
22K
220MFD/35V
11
IC2D
20.00MHz
GND
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
PGD/RB7
PGC/RB6
RB5
RB4
PGM/RB3
RB2
RB1
INT/RB0
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3
RA4/T0CKI
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
+5V
LDR1
LM339N
CB1
CB0
R8
30K LIN
SYS. GAIN
IC2A
STATUS LED
F/QMX
330R
MCLR/THV
2
3
4
5
6
7
8
9
10
22K
R7
GND
GND
GND GND
VDD
2
BEEPER
14
8
IC1
R4
30K LIN
R6
20K LIN
SENSOR INPUTS
LM339N
SENSOR 1
SG1
IC2C
IC3P
R3
10K
68K
R12
10K
R1
10K
R2
SENSOR 0
22K
R5
IC2B
D2
1N4148DO35-10
green
+5V
LD1
GND
+5V
+5V
S2
+5V
C1
+5V
R41
+5V
47K
1751248
IC2
1751248
R8
LD1
PAD2
PAD1
C12
C9
Q2
BS170
N3
10MFD/35V
UM3561
TRN1
JP1
1
IC4
2
3
RL1
RSB-5-S
1K
R16
1751248
R43
240R
R18
C20
R17
10K
TPTRANS
A O I
2SC945 1MFD/100V
1MFD/100V
IC8
LM317 R42
C14
C13
330R
0.1MFD (25V)
T1
C19
E$8
10pF
Q1
C2
R31
220R
R32
220R
R33
220R
R34
220R
R35
220R
R36
220R
R38
220R
R37
220R
N$20
N$21
MOV 221
1751248
IC1
C3
10pF
E$6
E$7
UPC2002
30K LIN
R14
2.2K
R19
10K
IRF9640
Q3
R15
330K
100MFD/35V
IC5
D2
0.22MFD/100V
20K LIN
20.00MHz
R13
2.2K
E$20
30K LIN
10K
R1
10K
R2
10K
R3
C5
1MFD/50V
C4
MAX232
C21
C11
R6
C10
R4
N1
2SC945
N3
N2
1000MFD/35V
N1
R20
1K
R7
22K
E$18
47K
R41
2SD400
T3
E$16
PIC16F877P
E$17
E$19
T2
47K
R40
R39
47K
E$5
C6
1MFD/50V
IC3
J2
1MFD/50V
E$15
E$12
1N4004
D1
100R
R23
R24
100R
100R
R25
R26
100R
100R
R27
R28
100R
100R
R29
R30
100R
X3
E$14
0.33MFD/50V
E$13
C1
E$2
1 2 3
C7
E$9
R22
330R
R21
330R
C17
IC6
7805TV
0.1MFD (25V)
0.1MFD (25V)
IC7
C18
7812TV
E$3
1 2 3
1MFD/50V
RL2
JZC-23F
1N4148DO35-10
22K
R5
0.33MFD/50V
E$10
N2
LM339N
470MFD/50V
X2
LDR1
50K LIN
F/QMX
X1
SG1
R12
68K
E$11
R9
22K
1
S2
S1
E$4
R11
22K
R10
J3
D-SUB9-H3M09RA
2RJ11-6L-B
C16
N$25
J1
C8
X5
220MFD/35V
L1
4.8uH E$1
X4