Professional Documents
Culture Documents
Autoalarm Article
Autoalarm Article
Autoalarm Article
com)
Colombo, Sri Lanka
Integrated Circuits The PCB design given with this article makes the
assembly much simpler. As PCB contain 230V AC
This system uses a Microchip’s PIC16F877A as a main main lines care must be taken while assembling the
controller, LM339 as sensor interface, UM3561 as a circuit. As shown in the fig.1 all the photoelectric
This work is licensed under the Creative Commons
All the software and firmware programs are All the schematics, PCB designs and other Attribution-ShareAlike 3.0 Unported License. To view
distribute under the terms of documents are distribute under the terms of a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/ or
send a letter to Creative Commons, 171 Second
Street, Suite 300, San Francisco, California, 94105,
USA.
RS232 Serial Interface Connector
DC Power Input (18V) PHONE / LINE Connector
Program/Run switch connector
Reset switch
Tone Selector
Fig.1 - Connectors, Jumpers and other controls of the Programmable Home Security Alarm System
sensors, some of the switches and alarm speaker are system. This button enable only when the audible
connected with the circuit through the connector alarm get activated. It is not possible to use this
bars. function at the phone dialing/ringer states.
External connectors and controls Phone dialer enable switch : Turn on this switch to
enable the phone dialing feature of this system.
DC Power input : Attach DC power supply with 18V -
25V (2A Max.) output. Environment Sensor : In-circuit LDR to detect light
conditions of the environment.
RS232 Connector : Connect RS232 serial cable to the
port to configure the system. Do not use RS232 Null Alarm Volume Control : Use this to control the
Modem cable with this port. output power (volume) of the audible alarm.
PHONE/LINE connector : Attach standard RJ12/RJ11 230V Light connector : Attach 230V AC light (or
telephone cable connector to this port. One port is related peripheral) to these terminals.
need to use with the phone line and remaining port is Tone Selector : Configure the master alarm tone
for the phone (and it is optional). from this jumper as follows,
3V LASER supply : 3V supply line for LASER diode 1—2 : Fire Engine Siren
assembly. 2—3 : Ambulance Siren
Connectors for Sensor 1/2 : Attach high sensitive Open : Police Siren
LDRs for these ports. To get the maximum sensitivity (Do not connect jumper terminal 1—3, this
it is recommended to use EG&G VACTEC LDRs. combination may permanently damage the entire
Status Indicator : Indicate run, program and sensor system)
trigger modes. Beeper : Produce beeps (e.g: at the input error, etc.)
Reset Switch : Press this button to reset entire alarm
Program / Run Switch connector : Attach switch to
this header to select Program or Run mode.
Data bits 8
Stop bits 1
Parity OFF
47K
R41
R4, R8 - SENSOR GAIN D2
GND 1 1N4148DO35-10
C1
2
3
68K SG1
BEEPER
22K
7 IC2B 9 IC2C STATUS LED
R5
R12
SENSOR 0 1 14 F/QMX
10K
10K
10K
green
LD1
6 8 - +
R3
R2
R1
+5V
LM339N GND GND LM339N
IC1 CB1
32
11
20K LIN
30K LIN
SENSOR INPUTS
VDD
red
2 2 1
330R
MCLR/THV
40
R6
R4
R21
SYS. GAIN
PGD/RB7 CB5
1
2 39
3
RA0/AN0 PGC/RB6
38
330R
RA1/AN1 RB5
+5V
GND 5 IC2A 4 37
RA2/AN2 RB4 CB4 R22
SENSOR 1 2 5 36
RA3/AN3 PGM/RB3
4 6 35 1MFD/50V GND GND
RA4/T0CKI RB2
LM339N 7 34
RA5/AN4 RB1
30K LIN
8 33 IC3 C6 C7
3
RE0/RD/AN5 INT/RB0
2 9 C4 1
RE1/WR/AN6 C1+
22K
1MFD/50V
R7
R8
10 30 2
RE2/CS/AN7 PSP7/RD7 1MFD/50V V+
1
29 3
PSP6/RD6 C1-
+5V 13 28 6
OSC1/CLKIN PSP5/RD5 V- D-SUB9-H3M09RA
GND GND 14 27 4
20.00MHz
IC2D OSC2/CLKOUT PSP4/RD4
C5 C2+ X3-1
11 15 26
2
22K RC0/T1OSO RX/RC7 X3-5 X3-6
13 16 25 5
RC1/T1OSI TX/RC6 1MFD/50V C2- X3-4
10 17 24
R9 RC2/CCP1 SDO/RC5
Q1
LDR1
1
LM339N 18 23 11 14 GND
RC3/SCK SDI/RC4 T1IN T1OUT
19 22 SERIAL BUS 10 7
+5V RD0/PSP0 RD3/PSP3 T2IN T2OUT X3-2 X3-7
20 21 12 13
RD1/PSP1 RD2/PSP2 R1OUT R1IN X3-8
ENV. SENSOR C3 C2 9 8
X3-3
VSS 47K R2OUT R2IN
50K LIN
CB0
10pF 10pF
31
12
PIC16F877P MAX232 SERIAL OUTPUT
3
22K
R10
R39
2
1
2
47K
CB3
R11
GND GND
S1
1
1
J2
3
CONTROL BUS GND 3 - 2 : AMBUL. ALARM
ALARM RESET SWITCH OPEN : POLICE ALARM
CB3 CB0 +3V
2RJ11-6L-B CB6 CB7 CB2 CB2
RL1
GND
TELEPHONE INPUT/OUTPUT
6 10K
D1
R20
R16
RL1 RL2
1K
1K
TRN1
2.2K
R14
3 330K
K1
K1
RSB-5-S JZC-23F
N1
L1 Q2 1 7
2 SEL2 OSC1
H1 BS170
1
C8 R15
L2 8
J1-2 OSC2
K2
K2
H2 M1
MOV 221 T1 T2 5 2
2RJ11-6L-B VDD VSS
RL1
2
1 MASTER ALARM VOLUME
+12V +5V
J1-1 GND GND GND GND
PAD1 230V / 5A MAX. LOAD
LIGHT INPUTS
10MFD/35V
1000MFD/35V
12 3
1MFD/100V
C13
WIREPAD3,17/1,3
O1
C14 C9
PAD2 P1 15 16
IC3P
1MFD/100V GND VCC
10K
R19
S1
WIREPAD3,17/1,3
C10
GND GND Q3 1 IC5 GND +
IRF9640 4
T3 2
DC0 C11
DC7 2SC945 UPC2002
220MFD/35V
3
R31
R32
R33
R34
R35
R36
R37
R38
220R
220R
220R
220R
220R
220R
220R
220R
0.22MFD/100V
IC5 - HEAT SINK REQ.
GND
4R SPEAKER
C12
100R 100R 100R 100R 100R 100R 100R 100R
2 4.8uH 1
R23 R24 R25 R26 R27 R28 R29 R30
GND IC8 - HEAT SINK REQ.
IC6 - HEAT SINK REQ. IC7 - HEAT SINK REQ. L1
IN OUT
IC6 IC7 ADJ +3V
7805TV 7812TV 0.1MFD (25V) IC8
R43
240R
1 3 1 3 LM317
+
VI VO VI VO
C19
J3 1 C16 GND C17 GND C20
C21 0.1MFD (25V)
2
2
R42
330R
GND GND
J3
S1
C21
1 2
SG1
E$4
2 1
S2 3 4
470MFD/50V
D2
LDR1
F/QMX
E$3 E$2 D1
1 2 3 1 2 3
N1
IC7
C18 IC6 1N4004
R9 7812TV 7805TV
22K 0.1MFD (25V)
1N4148DO35-10
47K
47K
22K
R41
R40
C17
C16
R11 R10
0.1MFD (25V)
N2
C1
R12
68K E$13
E$11
50K LIN E$12
0.33MFD/50V
0.33MFD/50V
X1
N$21
1MFD/50V
C6
LM339N N$20
MAX232
IC2
X3
E$17
IC3
1751248
R4
R7
E$10
R39
X2
D-SUB9-H3M09RA
22K
47K
E$16
30K LIN
1MFD/50V
C7
22K C4 C5
R5 1MFD/50V 1MFD/50V
1751248
R6
R38
R8
30K LIN
220R
20K LIN
E$9 R37
LD1
R22 220R
330R R30
R21 E$15
N3
100R
330R E$14
J2 R36
220R
100R
PAD2
R29
RL2 R35
E$5
220R
R14
JZC-23F
2.2K
PIC16F877P R28
100R
PAD1
IC1
R34
220R
E$19
T2
N1
20.00MHz E$6
E$18 100R
10K R33 R27
2SD400 R1 220R
R20
N2
10K Q1
T3 1K R2 10pF C2 R26
10K 100R
R3 C3 10pF R32
2SC945 220R
N3
E$8 100R
1000MFD/35V R31 R25
100MFD/35V
C20
C19
220R
R19
10K
R13
R24
C12
2.2K
C10 T1
1K
R16
C11 100R
E$7
R23
R15 A O I
R43
220MFD/35V
C9 330R
IC5
BS170
10MFD/35V TPTRANS
UM3561
IC4
L1
1
UPC2002
JP1
MOV 221
C8
R17
3
4.8uH E$1
10K
RSB-5-S
2RJ11-6L-B
TRN1
X4
X5
RL1
50K LOG POT