Professional Documents
Culture Documents
Automatic Fire Alarm and Fire Control Systemm
Automatic Fire Alarm and Fire Control Systemm
Acknowledgement
First of all we would like to express our heart full gratitude for our GOD to help us during our
work throughout all things.
We extend our sincere thanks to our advisor Knife leake in industrial control and
instrumentation engineering with the guidance and facilities for the thesis project. We express
our sincere gratitude to the final thesis project coordinator staff in charge, for their cooperation
and guidance for preparing and presenting this thesis project. We also extend our sincere thanks
to all other faculty members of electrical and Computer engineering Department and our friends
for their support and encouragement.
Finally we would like to express our gratitude to our family for their whole heart full support
during our study in university, without their encouragement and supports, both financial and
mental, we would not have gone this far. Thanks for their tolerance and understanding shown
during our project.
I
Automatic fire alarm and fire control system 2015
ABSTRACT
Fire alarm system plays an important role in maintaining and monitoring the safe of all kind
environments and situations. The main objective of this project is to make automatic fire alarm
and automatic fire control system in MAA garment and Textile Factory. This project has three
main systems, 1) the detection system, 2) the monitoring system and 3) the appliance system.
The detection system operates as the fire detector. This detection system has components like
LM35 heat detector. This paper discusses the design and implementation of a fire alarm and fire
control system using the microcontroller which operates the entire system. The detectors are
placed in parallel in different area. Any signal from each detector at any level is monitored using
monitoring system. The appliance system has components like buzzer for alarming and motor
pump to stop the fire and emergency exit motor to open the door of the room that was always
closed before the emergency. The entire system is controlled by microcontroller. The
microcontroller is programmed in such way by using Arduino code and C-Programming
language. From the project done, the system can be detects heat that sensed by the detector, and
then followed by the monitoring system which indicates heat at that particular area. Finally when
the sensors form each area triggered individually, then buzzer operates (on) and disconnect the
AC (main) power supply and LCD display in which area is affected and which is safe. Then it
runs the emergency exit motor to escape, common water pump for main water tank and the water
pump motor to the affected zone to stop the fire.
II
Automatic fire alarm and fire control system 2015
Table of Contents
Acknowledgement ......................................................................................................................................... I
ABSTRACT...................................................................................................................................................... II
Abbreviations ............................................................................................................................................. VIII
CHAPTER ONE ............................................................................................................................................... 1
INTRODUCTION ............................................................................................................................................. 1
1.1 General Introduction........................................................................................................................... 1
1.2 Problem statement............................................................................................................................. 2
1.3 Project Objectives: .............................................................................................................................. 2
1.4 Specific Objectives: ............................................................................................................................. 2
1.5 Project Scope ...................................................................................................................................... 2
1.6 Thesis Structure .................................................................................................................................. 2
CHAPTER TWO .............................................................................................................................................. 4
LITERATURE REVIEW ..................................................................................................................................... 4
2.1. Fire Alarm system .............................................................................................................................. 4
2.2 Heat Detector...................................................................................................................................... 4
2.2.1 LM35 Temperature Sensor .......................................................................................................... 5
2.3 Power transistor.................................................................................................................................. 6
2.3.1 Transistor ..................................................................................................................................... 6
2.3.2 BJT transistor................................................................................................................................ 6
2.3.3 BC548 NPN transistor................................................................................................................... 7
2.4 Relay .................................................................................................................................................... 8
2.5 Adriano Platform................................................................................................................................. 9
2.5.1 Arduino Uno Board ...................................................................................................................... 9
2.5.2 ATmega328P Microcontroller .................................................................................................... 11
2.6 Output Appliance .............................................................................................................................. 11
2.6.1 Fire Alarm ................................................................................................................................... 12
2.6.3 Resistor: ..................................................................................................................................... 12
2.6.4 Diode: ......................................................................................................................................... 13
2.7 Voltmeter: ......................................................................................................................................... 13
2.8 DC motor ........................................................................................................................................... 13
III
Automatic fire alarm and fire control system 2015
2.8.1 12 V DC Motor............................................................................................................................ 14
2.9 Liquid Crystal Display ........................................................................................................................ 15
2.9.1 Sealed Lead Acid Battery (12V 7.2 Amp Hour) .......................................................................... 16
CHAPTER THREE .......................................................................................................................................... 17
SYSTEM DESIGN AND DEVELOPMENT ........................................................................................................ 17
3.1 System Implementation .................................................................................................................... 17
3.1.1 Flow Chart of over the entire project ........................................................................................ 19
3.1.2 Microcontroller Module............................................................................................................. 19
3.1.3 Potentiometer ............................................................................................................................ 20
3.1.4 DC Voltmeter.............................................................................................................................. 20
3.1.5 Solenoid Valve ............................................................................................................................ 21
3.1.6 Sensory Module ......................................................................................................................... 22
3.2 LCD Modules ..................................................................................................................................... 23
3.3 Appliance Module ............................................................................................................................. 23
3.3.1 Buzzer ......................................................................................................................................... 24
3.3.2 Resistor: ..................................................................................................................................... 24
3.3.3 Diode: ......................................................................................................................................... 24
3.3.4 Relay ........................................................................................................................................... 25
3.4 Power supply..................................................................................................................................... 26
3.4.1 Voltage Regulator ...................................................................................................................... 27
3.4.2 Emergency Power System:......................................................................................................... 27
3.4.3Testing the system ...................................................................................................................... 28
3.4.4 System development ................................................................................................................. 29
3.5 Software Configuration ..................................................................................................................... 30
3.5.1 Overall Theory of the Project ..................................................................................................... 30
CHAPTER FOUR ........................................................................................................................................... 32
RESULT AND DISCUSSIONS.......................................................................................................................... 32
4.1 Result ................................................................................................................................................ 32
4.2 Discussion.......................................................................................................................................... 36
4.3 Project Evaluation ............................................................................................................................. 37
4.4 System Features ................................................................................................................................ 37
IV
Automatic fire alarm and fire control system 2015
V
Automatic fire alarm and fire control system 2015
List of figure
Figure 2.1: the circuitry of the LM35 for the Basic and Full-Range temp. Sensor Full-Range temp. Sensor ..................5
Figure2.2: BC548 NPN transistor ...................................................................................................................................7
Figure2.3: BC548 Pin Diagram .......................................................................................................................................7
Figure2.4: DC Relay ........................................................................................................................................................8
Figure2.5: Internal Structure of Relay ............................................................................................................................9
Figure2.6: Arduino Uno R3 ...........................................................................................................................................10
Figure2.7: ATmega328P Microcontroller ....................................................................................................................11
Figure2.8: Buzzer .........................................................................................................................................................12
Figure2.9: DC Motor ....................................................................................................................................................14
Figure2.10: LCD Model MIS00010 ...............................................................................................................................15
Figure3.1 Block Diagram of Simple System Design ......................................................................................................17
Figure3.2: Block Diagram of Smart Appliance system ................................................................................................18
Figure3.3: complete flow chart of the project ............................................................................................................19
`Figure3.4: Pin Diagram of ATmega328P interfacing with Arduino............................................................................20
Figure3.5: DC Voltmeter .............................................................................................................................................21
Figure3.7: Block diagram of the pin connection of LM35 ...........................................................................................22
Figure3.8: LCD Interfacing with Microcontroller .........................................................................................................23
Figure3.9: Buzzer Interfacing with Microcontroller ....................................................................................................24
Figure 3.10 resistance .................................................................................................................................................24
Figure3.11: Diode.........................................................................................................................................................25
Figure3.12: relay .........................................................................................................................................................26
Figure3.13 Block diagram of power supply system .....................................................................................................27
Figure3.14: DC V Lead Acid Battery ............................................................................................................................28
Figure3.15: Schematic Circuit diagram of “Automatic Fire control & specific fire location ........................................29
Figure 4.1: fire set in zone two .....................................................................................................................................34
Figure4.2: fire set in zone one and three ....................................................................................................................35
Figure4.3: fire set in zone one, two and three ............................................................................................................36
VI
Automatic fire alarm and fire control system 2015
List of table
Table2.1: Types of heat sensors .....................................................................................................................................4
Table2.2: Arduino Uno pin type definitions: ...............................................................................................................10
Table2. 3: Pin Description of 16X2 LCD Display: .........................................................................................................16
Table4.1: Result, Instructions and the Response to and from the System ...................................................................33
Table4.2: Price list of the Hardware ............................................................................................................................38
VII
Automatic fire alarm and fire control system 2015
Abbreviations
LCD=liquid crystal display
VIII
Automatic fire alarm and fire control system 2015
CHAPTER ONE
INTRODUCTION
1
Automatic fire alarm and fire control system 2015
2
Automatic fire alarm and fire control system 2015
the project‟s theoretical background. The theoretical background is based on the thesis conducted
towards the development of the project. The theoretical reviews covered are Temperature sensor,
BJT, Relay, Controller, Microcontroller ATmega328P, LCD Display and Output Appliances.
Meanwhile, chapter three explains the topic of the way we develop and design and also about the
architect of our system.
In chapter four, it explains the results and Discussion of the system development of this project
and its analysis based on the system operation and the system‟s function and also discussed the
project development where it describes the working principle of the system and the development
of the hardware and software.
Finally chapter five contains the conclusion of the project and the recommendation suggestion
for the continuity of the project and further upgrade. This chapter can be referred to other
individuals who are interested in continuing developing this project.
3
Automatic fire alarm and fire control system 2015
CHAPTER TWO
LITERATURE REVIEW
I. Fire detection
II. Notification
III. Fire protection system
4
Automatic fire alarm and fire control system 2015
Figure 2.1: the circuitry of the LM35 for the Basic and Full-Range temp. Sensor Full-Range
temp. Sensor
5
Automatic fire alarm and fire control system 2015
2.3.1 Transistor
Transistors are semiconductors used to amplify an electrical signal or switch an electrical signal
on and off. Often you will need more power to run a component than your Arduino can provide.
A transistor allows you to control the higher power signal by breaking or closing a circuit to
ground. Combining this higher power allows you to amplify the electrical signal in your circuit.
A transistor circuit has four parts; a signal power source (connects to transistor base), an affected
power source (connects to transistor collector), voltage out (connects to transistor collector), and
ground (connected to transistor emitter). The signal amplifier use of the transistor works the
same way only Signal In and Voltage In are not connected. This disconnection allows the user to
send differing values to the base of the transistor. The closer the voltage in value is to the
saturation voltage of the transistor the more electrical current that is allowed through the emitter
to ground. By changing the amount of electrical current allowed through to ground you change
the signal value of signal out.
6
Automatic fire alarm and fire control system 2015
flow of conventional current. For high power operation, npn transistors are more popularly used
because they are easier to fabricate and are cheaper.
7
Automatic fire alarm and fire control system 2015
divider is the commonly used biasing mode. For switching applications, transistor is biased so
that it remains fully on if there is a signal at its base. In the absence of base signal, it gets
completely off. [6]
2.4 Relay
Relay is one of the most important electromechanical devices highly used in industrial
applications specifically in automation. A relay is used for electronic to electrical interfacing i.e.
it is used to switch on or off electrical circuits operating at high AC voltage using a low DC
control voltage. A relay generally has two parts, a coil which operates at the rated DC voltage
and a mechanically movable switch. The electronic and electrical circuits are electrically isolated
But magnetically connected to each other, hence any fault on either side does not affect the other
side.
Figure2.4: DC Relay
Relay switch
shown in the image above consists of five terminals. Two terminals are used to give the input
DC voltage also known as the operating voltage of the relay. Relays are available in different
operating voltages like 6V, 12V, 24V etc. The rest of the three terminals are used to
Connect the high voltage AC circuit. The terminals are called Common, Normally Open (NO)
and Normally Closed (NC). Relays are available in various types & categories and in order to
identify the correct configuration of the output terminals, it is best to see the data sheet or
manual. You can also identify the terminals using a multimeter and at times it is printed on the
relay itself.
8
Automatic fire alarm and fire control system 2015
9
Automatic fire alarm and fire control system 2015
programmed as a USB-to-serial converter instead of FTDI USB-to-serial driver chip which was
used in all the pre-ceding boards. The board has 32 KB flash memory of which 0.5 KB is used
by boot-loader, 2 KB of SRAM, 1 KB of EEPROM and 16 MHz clock speed. Arduino Uno pin
type definitions:
10
Automatic fire alarm and fire control system 2015
The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). It has 14
digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a USB
connection, a power jack, and a reset button. It contains everything needed to support the
microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC
adapter or battery to get started. "Uno" means one in Italian and is named to mark the upcoming
release of Arduino 1.0. The Uno and version1.0 will be the reference versions of Arduno,
moving forward. The Uno is the latest in a series of USB Arduino boards, and the reference
model for the Arduino platform; for a comparison with previous versions. [2]
11
Automatic fire alarm and fire control system 2015
Figure2.8: Buzzer
2.6.3 Resistor:
The flow of charge through any material encounters an opposing force similar in many respects
to mechanical friction this opposing force is called resistance of the material .in some electric
circuit resistance is deliberately introduced in form of resistor. Resistor used fall in three
categories, only two of which are color coded which are metal film and carbon film resistor. The
third category is the wire wound type, where value is generally printed on the vitreous paint
finish of the component. Resistors are in ohms and are represented in Greek letter omega, looks
12
Automatic fire alarm and fire control system 2015
as an upturned horseshoe. Most electronic circuit requires resistors to make them work properly
and it is obliviously important to find out something about the different types of resistors
available. Resistance is measured in ohms; the symbol for ohm is an omega ohm. 1 ohm is quite
small for electronics so resistances are often given in KOhm and MOhm. Resistors used in
electronics can have resistances as low as 0.1 ohm or as high as 10 Mom. [2]
2.6.4 Diode:
Diode is an electronic device that allows the passage of current in only one direction. The first
such devices were vacuum-tube diodes, consisting of an evacuated glass or steel envelope
containing two electrodes – a cathode and an anode. The diodes commonly used in electronic
circuits are semiconductor diodes. There are different diodes used in electronic circuits such as
Junction diode, Zenger diode, Photo diodes, and tunnel diode. Junction diodes consist of junction
of two different kinds of semiconductor material. The Zenger diode is a special junction type
diode, using silicon, in which the voltage across the junction is independent of the current
through the junction. [2]
2.7 Voltmeter:
For most Arduino uses you will be measuring voltages that are 9V or less. Knowing this allows
you to start your voltage measurement setting at 20V and work your way down. On a circuit use
the millimeter to measure voltage from one point in the circuit to another point somewhere along
the same circuit. The millimeter can be used to measure the voltage of the whole circuit (if it‟s
going from 5V to GND this will usually read 4.8 to 5V) or just a portion. If you want to measure
the voltage of just a portion of your circuit, you have to pay attention to where you place your
probes. Find the portion of the circuit you want to measure, and place one probe on the edge of
that portion nearest to the energy source. Place the other probe on the edge of that portion nearest
to ground. [2]
2.8 DC motor
A DC motor is a mechanically commutated electric motor powered from direct current (DC).
The stator is stationary in space by definition and therefore the current in the rotor is switched by
the commentator to also be stationary in space. This is how the relative angle between the stator
13
Automatic fire alarm and fire control system 2015
and rotor magnetic flux is maintained near 90 degrees, which generates the maximum torque. DC
motors have a rotating armature winding (winding in which a voltage is induced) but nonrotating
armature magnetic field and a static field winding (winding that produce the main magnetic flux)
or permanent magnet. Different connections of the field and armature winding provide different
inherent speed/torque regulation characteristics. The speed of a DC motor can be controlled by
changing the voltage applied to the armature or by changing the field current. The introduction of
variable resistance in the armature circuit or field circuit allowed speed control. Modern DC
motors are often controlled by power electronics systems called DC drives. The introduction of
DC motors to run machinery eliminated the need for local steam or internal combustion engines,
and line shaft drive systems. DC motors can operate directly from rechargeable batteries,
providing the motive power for the first electric vehicles. Today DC motors are still found in
applications as small as toys and disk drives, or in large sizes to operate steel rolling mills and
paper machines. Operation of a DC motor can be shortly explained below, when the coil is
powered; a magnetic field is generated around the armature. First, the left side of the armature is
pushed away from the left magnet and drawn toward the right, causing rotation. Second, the
armature continues to rotate. [9]
Figure2.9: DC Motor
2.8.1 12 V DC Motor
In our project we use 12 V dc motor for emergency exit, for flowing water to the affected area
and for reserve water in the Tank.
14
Automatic fire alarm and fire control system 2015
15
Automatic fire alarm and fire control system 2015
is also adjustable which makes it suitable to adjust for the day and night time use for better
display. Pin discretion of 16x2 LCD display. [1]
14 DB7
15 Backlight V CC (5V) LED+
16
Automatic fire alarm and fire control system 2015
CHAPTER THREE
Display
Sensor Controller
Buzzer
Appliance
17
Automatic fire alarm and fire control system 2015
Sensory Module
Liquid Crystal Display (LCD) Module
Appliance Module
The integration of the modules are producing the system which is more or less can be divided in
to two phase where the first phase is the output smart Appliance system and the second phase is
the monitoring system. The Figure shows the separated phase through the boxes. The
microcontroller, sensory and Appliance modules are in the first phase of the system and LCD
Module is in the second phase monitoring system.
LCD
Zone3
Sensor3 Zone3
Buzzer alarm
sensor2 Zone2
Zone2 Microcontroller
Microcontroller
Common water pump
ATmega328p
ATmega328p for main water tank
Sensor1
Zone 11
Zone
Water pump for the
incident area
Emergency exit
motor
The Smart Appliance systems will produce the output in three different areas that are the same
level with input is senses. Each level is sensed by the input which will trigger the same level of
output and the status of the output and temperature view on the LCD.
18
Automatic fire alarm and fire control system 2015
Start
Sensor LM35
Microcontrolle
r
.
LCD: fire is set
in z If
Yes No LED
temp>50
Green
Buzzer on
Relay on
19
Automatic fire alarm and fire control system 2015
system as the controller. In other word it is the heart of this device system. The functions of the
microcontroller are limited by manufacturers or the types of certain model. Here we use
handmade version of Arduino Uno R3 for ATmega328P microcontroller.
`ATmega328P is chosen as the controller for the project since it offers various functions and
applicable for the system also it is mostly available in the market. It‟s a 28 pin IC.
`
`Figure3.4: Pin Diagram of ATmega328P interfacing with Arduino
3.1.3 Potentiometer
The potentiometer circuit gets electricity from the 5V on the Arduino.We use
potentiometer in this project to increase and decrease the resistance to get the
brightness of LCD. The value of this signal changes depending on the setting of the
dial on the potentiometer.
3.1.4 DC Voltmeter
The Voltmeter can be used to measure the voltage of the microcontroller circuit (if
it‟s going from 5V to GND this will usually read 4.8 to 5V) or just a portion. If we
20
Automatic fire alarm and fire control system 2015
want to measure the voltage of just a portion of your circuit, we have to pay
attention to where we place our probes.
+88.8
Volts
Figure3.5: DC Voltmeter
21
Automatic fire alarm and fire control system 2015
the formula shown in listing 3 and if it exceeds the limit defined in the software, it will motor
located in the specified Zone.
23
Automatic fire alarm and fire control system 2015
3.3.1 Buzzer
It has two pins; one is connected with the supply and the other one with the microcontroller pin
no 6. When microcontroller will provide low signal, the circuit will be completed and the buzzer
will start alarming.
3.3.2 Resistor:
The flow of charge through any material encounters an opposing force similar in many respects
to mechanical friction this opposing force is called resistance of the material. Most electronic
circuit requires resistors to make them work properly. Resistance is measured in ohms; the
symbol for ohm is an omega ohm. 1 ohm is quite small for electronics so resistances are often
given in KOhm.in this project we used the resister for LED and for the potentiometer, but for the
LED we used 2. 2 Ω and for the potentiometer 10kΩ.we used the resister 2.2Ω to LED to protect
from burning out when current is high.
R1
10k
3.3.3 Diode:
Diode is an electronic device that allows the passage of current in only one direction. The diodes
commonly used in electronic circuits are semiconductor diodes. There are different diodes used
24
Automatic fire alarm and fire control system 2015
in electronic circuits such as Junction diode, Zenger diode, Photo diodes, and tunnel diode.
Junction diodes consist of junction of two different kinds of semiconductor material. The Zenger
diode is a special junction type diode, using silicon, in which the voltage across the junction is
independent of the current through the junction. It is important to know that each diode will be
immediately destroyed unless its current is limited. This means that a conductor must be
connected in parallel to a diode.
D1
LED-GREEN
Figure3.11: Diode
3.3.4 Relay
In electromechanical relays the switching element is a mechanical contact, actuated by an
electromagnet. This is the most widely used type of relay design. Then principal internal
functions of the electromechanical relay are: Conversion of electrical current (input, coil current)
to a magnetic field Conversion of the magnetic field into a mechanical force this force operates
the contacts (secondary side) Contacts switch and conduct electrical current (output, load
current). Relays are normally closed and normally open. Both are used in this project: the
normally closed is used when we used main power supply and the normally open is used when
emergency is occurring.
25
Automatic fire alarm and fire control system 2015
RL1
12V
Figure3.12: relay
26
Automatic fire alarm and fire control system 2015
Vcc
U1
7805
TR1 D1
6-12V 1 3 5V
VI VO
GND
10mA
220V D3 D4 C1
2
50/60Hz 10mA 10mA 100uF C2 C3
100uF 100uF
D2
TRAN-2P2S 10mA
27
Automatic fire alarm and fire control system 2015
28
Automatic fire alarm and fire control system 2015
LCD1
LM016L
Vm
RV1
RL1(C1)
76%
RL1
D1 Q1 T73S5D15-12V
LS1
VDD
VSS
VEE
RW
10k
RS
LED-GREEN
D0
D1
D2
D3
D4
D5
D6
D7
M NPN
E
MAIN WATRE PUMP
BU
LED
Vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
G
0.0022K
SPEAKER 0.0022 RL2(C1)
G
R1 Q2
LED DUINO1(AREF) 0.0022k E NPN RL2
BU
po
T73S5D15-12V
U
E
K
L
EMERGENCY
Vm
G
MAIN POWER
RL3(C1)
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RL6(C1) DUINO1 Q3
PB5/SCK
PD4/T0/XCK
PB0/ICP1/CLKO
G
AREF
TX PD1/TXD
RX PD0/RXD
PD7/AIN1
~ PD6/AIN0
PD5/T1
~ PD3/INT1
PD2/INT0
~PB3/MOSI/OC2A
~ PB2/SS/OC1B
~ PB1/OC1A
PB4/MISO
ARDUINO UNO R3 K NPN
RL3 ZONE1
RL6 T73S5D15-12V
T73S5D15-12V G
Vm
DIGITAL (~PWM)
Q4
RL4(C1)
L NPN
Q6
G
ATMEGA328P-PU
RL4
1121
po NPN
T73S5D15-12V
ZONE2
G
microcontrolandos.blogspot.com
Vm
PC4/ADC4/SDA
PC5/ADC5/SCL
ANALOG IN
Vm
PC0/ADC0
PC1/ADC1
PC2/ADC2
PC3/ADC3
G
RESET
Q5
RL5(C1)
NPN ZONE3
U
U3(+VS) RL5
A0
A1
A2
A3
A4
A5 T73S5D15-12V
U1(+VS)
G
PB
U4
7805 1 U1
U2(+VS) DC BATTREY
1 U2
G
Vo
1 3 1 U3
Vm VI VO Vo
RL7(C1)
GND
49.0
49.0
G
Z
49.0
VOUT
2 RL7
2
2 T73S5D15-12V
VOUT
+88.8 2
VOUT
Volts Z
Q7 3 LM35
NPN 3 LM35
PB
3 LM35
Vm
Figure3.15: Schematic Circuit diagram of “Automatic Fire control & specific fire location
29
Automatic fire alarm and fire control system 2015
We also used in this circuit to light ON an indication LED with connected a 1kΩ resistor output
pin to common GND. Output pin D.6 is common for every fire zone as we defined program to
activate a buzzer alarm and a main water pump ON to fill water in the main water tank. For
instant smoke sense, we can use a high sensitivity smoke sensing detector to give high pulse to
input pin of microcontroller from which it will get fictional activity as per program installed in
the microcontroller.
For magnetic contactor activate we connected a relay NC (Normally close) point and when relay
will get activation by the transistor the NC point of relay will open hence main power will
disconnect in the specific fire area. We can use all of assigned sensing input pin of
microcontroller as per described working principal for separate zone to multiple control area.
30
Automatic fire alarm and fire control system 2015
5 Volts Buzzer.
12Volts Relay.
Potentiometers 10K.
5 Volts Voltage regulators 7805.
BJT BC548 NPN-type
LED‟s.
0.0022Ω resistor for LED‟s
Arduino C code
12 V 7.2 Ah Battery.
31
Automatic fire alarm and fire control system 2015
CHAPTER FOUR
4.1 Result
The aim of the project was to implement a smart home system and the goal was met. The result
was simulated on proteus using Arduino code and C-language code of the system. The sensing is
performed by LM35 for heat detection. The detection has analogue output and this analogue
output of the detectors feed to the microcontroller as an input inside the microcontroller the ADC
conversion performed and the external voltage was selected as a reference for better accuracy.
After identifying the digital reading on LCD we select a specific number to compare with that of
that digital value and the comparison is held in the software instruction. when one of the
initiating heat detects, heat above the selected specific number it activate the entire system at this
moment the LCD display show the place where the fire begin and the microcontroller send the
command for the notification appliance, the red “LED” light, and the buzzer are on, the relay
closed and finally the motors are run automatically to eliminate to the fire.
32
Automatic fire alarm and fire control system 2015
Table4.1: Result, Instructions and the Response to and from the System
Result
Condition Command
On fire Safe
Temp. >50° in Zone 1 Run pump 1
Temp.<50° in Zone 2 & Zone 1 Zone : 2, 3 Stop pump 2
Temp.< 50° in Zone 3 Stop pump 3
Temp. <50° in Zone 1 & Run pump 2
Temp.>50° in Zone 2 & Zone : 2 Zone : 1, 3 Stop pump 1
Temp.<50° in Zone 3 Stop pump 3
Temp.<50° in Zone 1 & Run pump 3
Temp.<50° in Zone 2 & Zone : 3 Zone : 1, 2 Stop pump 1
Temp.>50° in Zone 3 Stop pump 2
Temp.>50° in Zone 1 & Run pump 1
Temp.>50° in Zone 2 & Zone : 1, 2 Zone : 3 Run pump 2
Temp.<50° in Zone 3 Stop pump 3
Temp.<50° in Zone 1 & Run pump 2
Temp.>50° in Zone 2 & Zone : 2, 3 Zone : 1 Run pump 3
Temp.>50° in Zone 3 Stop pump 1
Temp.>50° in Zone 1 & Run pump 1
Temp.<50° in Zone 2 & Zone : 1, 3 Zone : 2 Run pump 3
Temp.>50° in Zone 3 Stop pump 2
Temp.>50° in Zone 1 & Run pump 1
Temp.>50° in Zone 2 & Zone : 1, 2, 3 Zone : No Run pump 2
Temp.>50° in Zone 3 Run pump 3
Temp.<50° in Zone 1 & Stop pump 1
Temp.<50° in Zone 2 & Zone : No Zone : 1, 2, 3 Stop pump 2
Temp.<50° in Zone 3 Stop pump 3
33
Automatic fire alarm and fire control system 2015
NB. Emergency exit motor and Main water pump Motor are stop , when Stop pump 1 ,Stop pump 2
& Stop pump 3, Otherwise they are always run.
LCD1
LM016L
Vm
RV1
RL1(C1)
76%
RL1
D1 Q1 T73S5D15-12V
LS1
VDD
VSS
VEE
RW
10k
RS
LED-GREEN
D0
D1
D2
D3
D4
D5
D6
D7
M NPN
E
MAIN WATRE PUMP
BU
Vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
G
R1
SPEAKER 2.2k RL2(C1)
G
Q2
DUINO1(AREF) RL2
LED
E NPN
LED
BU
po
T73S5D15-12V
U
E
K
L
EMERGENCY
Vm
G
MAIN POWER
RL3(C1)
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RL6(C1) DUINO1 Q3
PB5/SCK
PD4/T0/XCK
PB0/ICP1/CLKO
G
AREF
TX PD1/TXD
RX PD0/RXD
PD7/AIN1
~ PD6/AIN0
PD5/T1
~ PD3/INT1
PD2/INT0
~PB3/MOSI/OC2A
~ PB2/SS/OC1B
~ PB1/OC1A
PB4/MISO
ARDUINO UNO R3 K NPN
RL3 ZONE1
RL6 T73S5D15-12V
T73S5D15-12V G
Vm
DIGITAL (~PWM)
Q4
RL4(C1)
L NPN
Q6
G
ATMEGA328P-PU
RL4
1121
po NPN
T73S5D15-12V
ZONE2
G
microcontrolandos.blogspot.com
Vm
PC4/ADC4/SDA
PC5/ADC5/SCL
ANALOG IN
Vm
PC0/ADC0
PC1/ADC1
PC2/ADC2
PC3/ADC3
G
RESET
Q5
RL5(C1)
NPN ZONE3
U
U3(+VS) RL5
A0
A1
A2
A3
A4
A5
T73S5D15-12V
U1(+VS)
G
PB
U4
7805 1 U1
U2(+VS) DC BATTREY
1 U2
G
Vo
1 3 1 U3
Vm VI VO Vo
RL7(C1)
GND
49.0
52.0
G
Z
49.0
VOUT
2 RL7
2
2 T73S5D15-12V
VOUT
+5.01 2
VOUT
Volts Z
Q7 3 LM35
NPN 3 LM35
PB
3 LM35
Vm
34
Automatic fire alarm and fire control system 2015
LCD1
LM016L
Vm
RV1
RL1(C1)
76%
RL1
D1 Q1 T73S5D15-12V
LS1
VDD
VSS
VEE
RW
10k
RS
LED-GREEN
D0
D1
D2
D3
D4
D5
D6
D7
M NPN
E
MAIN WATRE PUMP
BU
Vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
G
R1
SPEAKER 2.2k RL2(C1)
G
Q2
DUINO1(AREF) RL2
LED
E NPN
LED
BU
po
T73S5D15-12V
U
E
K
L
EMERGENCY
Vm
G
MAIN POWER
RL3(C1)
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RL6(C1) DUINO1 Q3
PB5/SCK
PD4/T0/XCK
PB0/ICP1/CLKO
G
AREF
TX PD1/TXD
RX PD0/RXD
PD7/AIN1
~ PD6/AIN0
PD5/T1
~ PD3/INT1
PD2/INT0
~PB3/MOSI/OC2A
PB2/SS/OC1B
~ PB1/OC1A
PB4/MISO
ARDUINO UNO R3 K NPN
RL3 ZONE1
RL6 T73S5D15-12V
T73S5D15-12V G
Vm
DIGITAL (~PWM)
~
Q4
RL4(C1)
L NPN
Q6
G
ATMEGA328P-PU
RL4
1121
po NPN
T73S5D15-12V
ZONE2
G
microcontrolandos.blogspot.com
Vm
PC4/ADC4/SDA
PC5/ADC5/SCL
ANALOG IN
Vm
PC0/ADC0
PC1/ADC1
PC2/ADC2
PC3/ADC3
G
RESET
Q5
RL5(C1)
NPN ZONE3
U
U3(+VS) RL5
A0
A1
A2
A3
A4
A5
T73S5D15-12V
U1(+VS)
G
U4 PB
7805 1 U1
U2(+VS) DC BATTREY
1 U2
G
Vo
1 3 1 U3
Vm VI VO Vo
RL7(C1)
GND
52.0
49.0
G
Z
52.0
VOUT
2 RL7
2
2 T73S5D15-12V
VOUT
+5.01 2
VOUT
Volts Z
Q7 3 LM35
NPN 3 LM35
PB
3 LM35
Vm
35
Automatic fire alarm and fire control system 2015
LCD1
LM016L
Vm
RV1
RL1(C1)
76%
RL1
D1 Q1 T73S5D15-12V
LS1
VDD
VSS
VEE
RW
10k
RS
LED-GREEN
D0
D1
D2
D3
D4
D5
D6
D7
M NPN
E
MAIN WATRE PUMP
BU
Vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
G
R1
SPEAKER 2.2k RL2(C1)
G
Q2
DUINO1(AREF) RL2
LED
E NPN
LED
BU
po
T73S5D15-12V
U
E
K
L
EMERGENCY
Vm
G
MAIN POW ER
RL3(C1)
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RL6(C1) DUINO1 Q3
PB5/SCK
PD4/T0/XCK
PB0/ICP1/CLKO
G
AREF
TX PD1/TXD
RX PD0/RXD
PD7/AIN1
~ PD6/AIN0
~ PD5/T1
~ PD3/INT1
PD2/INT0
~PB3/MOSI/OC2A
~ PB2/SS/OC1B
~ PB1/OC1A
PB4/MISO
ARDUINO UNO R3 K NPN
RL3 ZONE1
RL6 T73S5D15-12V
T73S5D15-12V G
Vm
DIGITAL (~PWM)
Q4
RL4(C1)
L NPN
Q6
G
ATMEGA328P-PU
RL4
1121
po NPN
T73S5D15-12V
ZONE2
G
microcontrolandos.blogspot.com
Vm
PC4/ADC4/SDA
PC5/ADC5/SCL
ANALOG IN
Vm
PC0/ADC0
PC1/ADC1
PC2/ADC2
PC3/ADC3
G
RESET
Q5
RL5(C1)
NPN ZONE3
U
U3(+VS) RL5
A0
A1
A2
A3
A4
A5
T73S5D15-12V
U1(+VS)
G
PB
U4
7805 1 U1
U2(+VS) DC BATTREY
1 U2
G
Vo
1 3 1 U3
Vm VI VO Vo
RL7(C1)
GND
52.0
54.0
G
Z
50.0
VOUT
2 RL7
2
2 T73S5D15-12V
VOUT
+5.01 2
VOUT
Volts Z
Q7 3 LM35
NPN 3 LM35
PB
3 LM35
Vm
4.2 Discussion
This project is an application project demonstrating of automatic fire alarm and fire control
system. The movements and the temperature are detected by installing sensors at different
places. The temperature of the premises where the sensors are installed can be known at any time
before reaching the critical limit set by the user. As this project is automatic fire alarm & fire
control system, a few sensors and a LED light are used. This project can be extended by
increasing the number of sensors used along with an increase in the number of installation
places. The remote management of electronic devices can also be extended with the use of
different real electronic devices. The project was completed within the projected time with the
expected result. However, there were many hardware and software errors experienced during the
development of the application. There were many bugs in the software as well as connection
errors in the hardware, which came along with the development of the application and which was
solved individually. Despite reading the datasheet of the sensors before using them, the
microcontroller was burnt out by accidentally connecting the wrong pins. Accidentally, the
ground connection and the power supply were interchanged which burnt down the
36
Automatic fire alarm and fire control system 2015
microcontroller and a new microcontroller had to be ordered. Similarly, there were some
hardware errors while connecting the sensors and the LED with the microcontroller.
37
Automatic fire alarm and fire control system 2015
4.5 Costing
Costing is always a vital issue to make any project. Price of electronics is not stable for a
developing country like Ethiopia, because Ethiopia never produces electronics parts but import
from other developed country and during import; price depends upon the stock of foreign
currency. Average price of parts used in this project is given bellow,
38
Automatic fire alarm and fire control system 2015
CHAPTER FIVE
5.1 Conclusion
Fire alarm system plays an important role in maintaining and monitoring the safe of all kind
environments and situations. The main objective of this project is to make automatic fire alarm
and automatic fire control system in MAA garment and Textile Factory and we used Lm35
temperature sensor and Micro controller for efficient use of electricity. It will help us to reduce
the wastage of electricity, save lives, reduce percentage of accident and reduce waste of electric
appliance. The program we embedded in the micro controller works according to our wish.
Step-by-step approach in designing a Microcontroller based system for temperature measurement
has been followed. According to the study and analysis of various parts of the system, a design
has been carried out. The results obtained from the measurement have shown that the system
perform well under all the conditions.
39
Automatic fire alarm and fire control system 2015
5.2 Recommendation
The Performance of microcontroller and Temperature sensor based efficient use of electricity in
Office appliance system has been found on expected lines. However, there exists a scope for
further improvement in its speed, number of Zone, power consumption, and PC interface
software for post data analysis. Because that “ Tomorrow is more advanced than Today”. The
system can be modified with the use of graphical LCD panel so that the analysis is done by the
system itself. The number of analog channels and Zones can be increased to monitor more sensor
outputs. The output Appliances can be made more smart by changing the program such as inside
certain temperature not only the Heater will start on, so as there level of their speed will also
change with adjust of the Temperature. We can also combine the IR sensor, Light sensor, smoke
detector, pressure sensor, gas sensor with this project to take this project more efficient. Control
valves. A sprinkler system must be capable of shut down after the fire has been controlled, and
for periodic maintenance and modification. And must be put water level indicator in the tanker.
Generally we recommend to our department in order to solve the above problem for the next
generation.
40
Automatic fire alarm and fire control system 2015
Appendix 01
C-language code of the system
#include <Liquid Crystal. h>
Liquid Crystal led(12, 11, 5, 4, 3, 2);
int temp1=A0;
int temp2=A1;
int temp3=A2;
int main pump=13;
int emergency=10;
int zone1_p=9;
int zone2_p=8;
int zone3_p=7;
int buzzer=6;
int normal=1;
int main power=0;
int battrey=A5;
void setup() {
// put your setup code here, to run once:
Pin Mode(zone1_p,OUTPUT);
Pin Mode(zone2_p,OUTPUT);
Pin Mode(zone3_p,OUTPUT);
pin Mode(main pump, OUTPUT);
pin Mode(emergency, OUTPUT);
pin Mode(buzzer, OUTPUT);
pin Mode(normal, OUTPUT);
pin Mode(main power, OUTPUT);
41
Automatic fire alarm and fire control system 2015
void loop() {
42
Automatic fire alarm and fire control system 2015
if((firea>50)&&(fireb<50)&&(firec<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE1 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone1_p,HIGH);
digitalWrite(zone2_p,LOW);
digitalWrite(zone3_p,LOW);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((fireb>50)&&(firea<50)&&(firec<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE2 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone2_p,HIGH);
digitalWrite(zone1_p,LOW);
digitalWrite(zone3_p,LOW);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
43
Automatic fire alarm and fire control system 2015
digitalWrite(battrey,HIGH);
}
else if((firec>50)&&(firea<50)&&(fireb<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE3 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone3_p,HIGH);
digitalWrite(zone1_p,LOW);
digitalWrite(zone2_p,LOW);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((firea>50)&&(fireb>50)&&(firec<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE1 &2 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone2_p,HIGH);
digitalWrite(zone1_p,HIGH);
digitalWrite(zone3_p,LOW);
digitalWrite(buzzer,HIGH);
44
Automatic fire alarm and fire control system 2015
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((firea>50)&&(firec>50)&&(fireb<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE1 &3 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone3_p,HIGH);
digitalWrite(zone1_p,HIGH);
digitalWrite(zone2_p,LOW);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((fireb>50)&&(firec>50)&&(firea<50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE2 &3 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone2_p,HIGH);
45
Automatic fire alarm and fire control system 2015
digitalWrite(zone3_p,HIGH);
digitalWrite(zone1_p,LOW);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((firea>50)&&(fireb>50)&&(firec>50))
{
lcd.setCursor(0,0);
lcd.print("FIRE IS SET IN ZONE1 &2 ");
digitalWrite(mainpump,HIGH);
digitalWrite(emergency,HIGH);
digitalWrite(zone2_p,HIGH);
digitalWrite(zone1_p,HIGH);
digitalWrite(zone3_p,HIGH);
digitalWrite(buzzer,HIGH);
digitalWrite(normal,LOW);
digitalWrite(mainpower,LOW);
digitalWrite(battrey,HIGH);
}
else if((firea<50)&&(fireb<50)&&(firec<50))
{
digitalWrite(mainpump,LOW);
digitalWrite(emergency,LOW);
digitalWrite(zone1_p,LOW);
46
Automatic fire alarm and fire control system 2015
digitalWrite(zone2_p,LOW);
digitalWrite(zone3_p,LOW);
digitalWrite(buzzer,LOW);
digitalWrite(normal,HIGH);
digitalWrite(mainpower,HIGH);
digitalWrite(battrey,LOW);
lcd.setCursor(0,0);
lcd.print("THIS IS FIRE ALARM ");
}
}
47
Automatic fire alarm and fire control system 2015
References
48
Automatic fire alarm and fire control system 2015
49