Professional Documents
Culture Documents
This is the design and implementation of a fire alarm / smoke detector with
water sprinkler. This system was design to automatically detect fire or smoke
and triggers the alarm and the water sprinkler if not reset by the user.
The design makes use of a microcontroller AT89s52 to control the outputs
when it receivers input from the transducers.
This design can be used in different areas like the hospitals, school
environment and in banks etc.
INTRODUCTION
1
microcontroller which triggers the alarm system and stops when reset. This
concept was used as a result of many references gotten from other existed
designs we encounter during our research work.
The performance of this project in various ways made it possible to have a
high recommendation via homes, industries and any other required place
where the installation of this device is needed to perform its operation, many
companies who has suffered under this hazardous condition has carried out
for such a device to reach them at a high recommendation
Fire sensor 1
Power supply
Alarm unit
Smoke sensor1
Water sprinkler
Microcontroller unit
Reset butn
U2
B1
7805
12V
VI
VO
C2
GND
100u
10.00
+tc
RT1
R3
PTC_NICKEL
1k
RV1
U1
36%
R1
Q1
8
7
6
5
4
3
2
1
BD131
1k
10k
R4
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1/T2EX
P1.0/T2
31
30
29
1k
0%
R2
1k
Q2
BD131
X1
RST
18
XTAL1
10k
1
R6
17
16
15
14
13
12
11
10
1k
BUZ1
BUZZER
28
27
26
25
24
23
22
21
C1
10u
32
33
34
35
36
37
38
39
R9
R10
RL1
1k
R8
1k
R11
1k
AT89C52
TORCH_LDR
P0.7/AD7
P0.6/AD6
P0.5/AD5
P0.4/AD4
P0.3/AD3
P0.2/AD2
P0.1/AD1
P0.0/AD0
XTAL2
19
CRYSTAL
P2.7/A15
P2.6/A14
P2.5/A13
P2.4/A12
P2.3/A11
P2.2/A10
P2.1/A9
P2.0/A8
EA
ALE
PSEN
RV2
P3.7/RD
P3.6/WR
P3.5/T1
P3.4/T0
P3.3/INT1
P3.2/INT0
P3.1/TXD
P3.0/RXD
Q4
1k
R5
Q3
2N3904
R7
220r
10k
D1
LED-RED
LDR1
2N3904
12V
PROGRAM FLOWCHART
Alarm = 0
pump = 0
Goto start
If reset =
1
Start
If any is
PROGRAM SOURCE CODE
=1
org 000h
alarm equ p2.0
Alarm = 1
Pump = 1
heat equ
p1.0
Stop
clock:
setb alarm
acall delay
clr alarm
acall delay
ret
delay:
mov r0,#255
mov r1,#100
mov r2,#10
loop: djnz r0,loop
7
djnz r1,loop
djnz r2,loop
ret; end
PSEUDOCODE
A.
B.
C.
D.
E.
F.
For capacitors the DMM was switched to the 22uf range and the capacitors
were inserted into the slot provided for it by the meter. Finally the output
voltages were tested using an external load input for voltage output test.
S/N
COMPONENT
VALUE
QUANTITY
UNIT
BULK
PRICE
PRICE
BATTERY
9V 1amp
80
80
CAPACITORS
470Uf:25v
120
360
8YARDS
80
600
5000
5000
CABLE
CONNECTOR
CASING
Building
LEAD
One row
30
950
SOLDERING
700
700
IRON
9
TRANSPORT AND
3000
ARRYS NET
PRICE
10
12V DC water
25w 12VDC
3000
3000
pump
TOTAL
13,500
CONCLUSION
9
10