Final Project 15
Final Project 15
A Final Year Project report submitted in partial fulfillment of the requirement for the
award of the Degree of Bachelor of Science in Electrical and computer Engineering.
SUBMITTED BY:
NAME ID
1. ARGACHEW TONE……………………………………………TER-0566-11
2. HENOK YETWALE …………………………….......................TER-0430-11
3. AYTENEW ADIMAS……………………………………………TER-0757-10
Engineering to Debre Markos University is a record of bona fide work carried out under my guidance and
supervision.
i
Approval of Advisor and Examiners
This project has been submitted for examination with our approval as project advisor(s).
This project has been submitted for examine with approval as a project examiner(s).
Examiner’s Name 1._____________________ Signature: ___________________
Examiner’s Name 2._____________________ Signature: ___________________
Examiner’s Name 3._____________________ Signature: ___________________
ii
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 Nigus Kefiyalew in electrical and
computer engineering at computer stream for the guidance of the thesis project. We express our
sincere gratitude to the final thesis project coordinator staff in charge, for their guidance of this
thesis project. We also extend our sincere thanks to all 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.
iii
Abstract
Fire alarm system plays a vital role in maintaining and monitoring the safety of all environments and
situations. An automatic fire alarm and fire control system is an essential technology that plays a
critical role in detecting and preventing fires in various settings, including residential, commercial,
and industrial buildings. This system works by using various sensors, such as smoke detectors and
heat sensors, to detect fire outbreaks and alert occupants and emergency responders. Once a fire is
detected, the system activates an alarm and initiates fire suppression mechanisms, such as sprinklers
or extinguishers, to control and extinguish the fire. The implementation of an automatic fire alarm
and fire control system provides numerous benefits, including the protection of lives and property,
reduction in damages and losses, and compliance with fire safety regulations. This paper aims to
discuss the importance, components, and functions of an automatic fire alarm and fire control system,
as well as its application in different settings. This project discusses the effective method to use the
microcontroller (Arduino) to control the other components to provide a cheap fire alarm, firefighting
which can used for more wide vision. C language is used for programming and Proteus is used for the
simulation and hardware.
iv
Table of contents pages
CHAPTER ONE.................................................................................................................................................1
INTRODUCTION...............................................................................................................................................1
1. GENERAL INTRODUCTION................................................................................................................1
1.1 Statement of problems.........................................................................................................................1
1.2 Motivation of study..............................................................................................................................2
1.3 Objectives............................................................................................................................................2
1.3.1 General objective.........................................................................................................................2
1.3.2 Specific objective.........................................................................................................................2
1.3.3 Scope of the project.....................................................................................................................2
1.4 Significance of the project...................................................................................................................2
1.5 Project structure...................................................................................................................................3
CHAPTER TWO.................................................................................................................................................4
LITERATURE REVIEW....................................................................................................................................4
2.1 Literature review.....................................................................................................................................4
2.2 Fire alarm system................................................................................................................................4
2.2.1 Fire alarm system components:........................................................................................................4
2.2.2 Heat detector................................................................................................................................4
2.2.3 Lm35 temperature sensor.................................................................................................................5
2.3 Power transistor...................................................................................................................................6
2.3.1 Transistor.....................................................................................................................................6
2.3.2 BJT transistor...............................................................................................................................7
2.3.3 BC548 NPN transistor.................................................................................................................7
2.3.4 Relay............................................................................................................................................8
2.4 Adriano platform...............................................................................................................................10
2.4.1 Arduino uno board.....................................................................................................................10
2.4.2 ATmega328P microcontroller....................................................................................................11
2.5 Output appliance................................................................................................................................12
2.6 Output appliance................................................................................................................................12
2.7 Output appliance................................................................................................................................12
2.7.1 Fire alarm...................................................................................................................................12
2.7.2 Buzzer........................................................................................................................................12
2.7.3 Resistor:.....................................................................................................................................13
2.7.4 Diode:........................................................................................................................................13
2.8 Voltmeter:..........................................................................................................................................14
2.9 DC motor...........................................................................................................................................14
v
2.9.1 12 v DC motor...........................................................................................................................15
2.10 Liquid crystal display........................................................................................................................15
2.10.1 Sealed lead acid battery (12V 7.2 Amp Hour)...........................................................................17
CHAPTER THREE...........................................................................................................................................18
SYSTEM DESIGN AND DEVELOPMENT....................................................................................................18
3. SYSTEM IMPLEMENTATION..............................................................................................................18
3.1 System architecture............................................................................................................................18
3.1.1 Microcontroller module.............................................................................................................20
3.1.2 Potentiometer.............................................................................................................................21
3.1.3 DC voltmeter.............................................................................................................................21
3.1.4 Solenoid valve...........................................................................................................................22
3.1.5 Sensory module.........................................................................................................................23
3.2 LCD modules.....................................................................................................................................24
3.3 Appliance module..............................................................................................................................24
3.3.1 Buzzer........................................................................................................................................24
3.3.2 Resistor......................................................................................................................................25
3.3.3 Diode:........................................................................................................................................25
3.3.4 Relay..........................................................................................................................................26
3.4 Power supply.....................................................................................................................................27
3.4.1 Voltage regulator..............................................................................................................................27
3.4.2 Emergency power system:.........................................................................................................27
3.4.3 Power supply.............................................................................................................................28
3.4.4 Testing the system.....................................................................................................................28
3.4.5 System development..................................................................................................................29
3.5 Software configuration......................................................................................................................30
3.5.1 Overall theory of the project......................................................................................................30
CHAPTER FOUR.............................................................................................................................................31
RESULT AND DISCUSSIONS....................................................................................................................31
4.1 Result.................................................................................................................................................31
4.2 Discussion.........................................................................................................................................35
4.3 Project evaluation..............................................................................................................................36
4.4 System features..................................................................................................................................36
4.4.1 Features ATmega 328/P.................................................................................................................36
4.4.2 Drawbacks / Limitation of the project............................................................................................37
4.5 Costing..............................................................................................................................................37
CHAPTER FIVE...............................................................................................................................................39
vi
CONCLUSION & RECOMMENDATION......................................................................................................39
5.1 Conclusion.........................................................................................................................................39
5.2 Recommendation...............................................................................................................................39
REFERENCE....................................................................................................................................................43
vii
List of table
viii
List of figure
Figure 1:the circuitry of the lm35 for the basic and full-range temp. Sensor full-range temp. Sensor.................6
Figure 2:BC548 NPN transistor..........................................................................................................................7
Figure 3:BC548 Pin Diagram..............................................................................................................................8
Figure 4:DC Relay..............................................................................................................................................9
Figure 5:Internal Structure of Relay....................................................................................................................9
Figure 6:Arduino Uno R3..................................................................................................................................11
Figure 7:atmega328p Microcontroller...............................................................................................................12
Figure 8:Buzzer.................................................................................................................................................13
Figure 9: DC Motor...........................................................................................................................................15
Figure 10:LCD Model MIS00010.....................................................................................................................16
Figure 11:Block Diagram of Simple System Design.........................................................................................18
Figure 12:Block Diagram of Smart Appliance system......................................................................................19
Figure 13:complete flow chart of the project.....................................................................................................20
Figure 14: Pin Diagram of atmega328p interfacing with Arduino.....................................................................21
Figure 15:DC Voltmeter....................................................................................................................................22
Figure 16:Solenoid Valve..................................................................................................................................22
Figure 17:Block diagram of the pin connection of LM35..................................................................................23
Figure 18:LCD Interfacing with Microcontroller..............................................................................................24
Figure 19:Buzzer Interfacing with Microcontroller...........................................................................................25
Figure 20: resistance..........................................................................................................................................25
Figure 21:Diode.................................................................................................................................................26
Figure 22:relay..................................................................................................................................................27
Figure 23:Block diagram of power supply system............................................................................................27
Figure 24:DC V Lead Acid Battery...................................................................................................................28
Figure 25: Schematic Circuit diagram of “Automatic Fire control & specific fire location...............................29
ix
Abbreviations
LCD Liquid Crystal Display
x
CHAPTER ONE
INTRODUCTION
1. GENERAL INTRODUCTION
Fire accident is common feature in factories, houses, markets etc. Due to poor fire protection, lack of
adequate fire alarm and emergency exit, fire increases impact on life, and property. Early detection
and quick response are crucial in preventing fires from maximizing and minimizing their damage. An
automatic fire alarm and fire control system is a critical component of any building's safety
infrastructure, providing early warning and fast response in the event of a fire. The system is designed
to detect fires and alert the occupants of the building and the authorities to take action immediately.
These systems consist of various sensors, such as smoke detectors, and heat sensors. (1) when a
sensor senses the primary fire source and the microcontroller will receive this signal as a high pulse,
so the input pin of the microcontroller will be high and the response at the output pinconnected lcd
display will show “on fire. Once the sensors detect smoke or heat, they send signals to a central
control panel, which activates the alarm system and notifies the authorities. There is a common
output pin connected to the buzzer alarm. (2) to detect abnormal conditions, we can use the
temperature-sensing device lm-35 gives a certain output voltage with rising temperature. As fire
involves rising temperatures. (3)
1.1 Statement of problems
The current fire safety systems face several challenges that can compromise the safety of occupants
and the protection of property. Human error, inadequate fire detection, slow response time, lack of
automation, limited coverage, and integration issues are among the significant problems facing these
systems. Additionally, the installation of new fire safety systems can cause significant downtime and
disrupt building operations, while high maintenance costs can be time- consuming and costly.
Furthermore, the current fire safety systems lack remote monitoring capabilities, making it
challenging to respond quickly to emergencies. Addressing these challenges is crucial for improving
fire safety and preventing fire-related incidents. Moreover, the consequences of fire-related incidents
can be severe, including property damage, injury, and loss of life. The limitations of current fire
safety systems in detecting fires early and preventing their spread increase the risk of such incidents.
In addition, the limited coverage of current systems means that fires in remote or inaccessible areas
may go undetected until it's too late integration issues between fire detection and control systems
1
can result in communication breakdowns that compromise the effectiveness of the systems.
1.2 Motivation of study
Early detection of fire: One of the primary motivations behind an automatic fire alarm system is
to detect the presence of fire as early as possible.
Protection of life and property: A fire can be devastating, causing loss of life and significant
damage to property
Cost-effective: Although the initial cost of installation can be high, an automatic fire alarm and
fire control system can be cost-effective in the long term. By detecting fires early and minimizing
damage.
Increased reliability: An automatic fire alarm and fire control system can operate 24/7,
providing continuous monitoring and protection
1.3 Objectives
1.3.1 General objective
The main objective is to design a fire alarm and fire control system to reduce accidents and property
damage caused by fire.
1.3.2 Specific objective
To sound the alarm if fire occurs
To provide the flexibility to adjust the temperature
To design easy use and simple firefighting system
To design and implement cheap fire alarm system
1.3.3 Scope of the project
In a way to achieved above objectives, this project need to be implemented as below:
The microcontroller is used as the heart of this fire alarm system that controls the
entire operations involved.
The fire alarm system is capable to locate and identified the place that is in fire
where by it is monitored using the monitoring system.
Capable to display the output from each sensor in the monitoring system
1.4 Significance of the project
Life-saving: The primary significance of an automatic fire alarm and fire control system is to save
lives. The system detects a fire in its early stages and alerts people in the building, allowing them to
evacuate safely and quickly.
2
Property protection: A fire can cause severe damage to property, and the financial cost of
repairing or replacing damaged property can be significant
Peace of mind: An automatic fire alarm and fire control system can provide peace of mind to
building owners and occupants.
Early detection: Automatic fire alarm systems can detect a fire in its early stages, which is
essential for minimizing the damage caused by a fire.
1.5 Project structure
This thesis is constructed into five chapters. The first chapter explains objectives, Specific
Objectives, the problem statements, and scopes of the project. The second chapter of this thesis is 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
CHAPTER TWO
LITERATURE REVIEW
2.1 Literature review
Automatic fire alarms and fire control systems have been in use for several decades and are a critical component
of building fire safety. Research has shown that these systems can significantly reduce the risk of fire-related
injuries, fatalities, and property damage. (1)
In a study conducted by the National Fire Protection Association (NFPA), it was found that automatic fire
alarm systems were effective in detecting fires in their early stages, with the majority of systems
detecting fires before they reached a size that could cause serious damage. The study also found that
buildings with automatic fire alarm systems had lower fire-related injury rates compared to those
without such systems. (4)
Another study published in the Fire Safety Journal found that the installation of automatic fire alarms and
fire control systems in high-rise buildings reduced the risk of fire-related fatalities and injuries by up
to 50%. The study also highlighted the importance of regular maintenance and testing of these systems
to ensure their effectiveness. (5)
Several studies have also focused on the role of technology in enhancing the effectiveness of automatic fire alarms
and fire control systems. For example, a study published in the Journal of Fire Protection Engineering found that
integrating fire detection systems with building automation systems could improve the efficiency and
effectiveness of fire safety systems. (6)
2.2 Fire alarm system
A key aspect of fire protection is to identify a developing fire emergency in a timely manner, and to
alert the building's occupants. They were providing a means to identify developing fire through
manual methods.
The design processes have three main stages
Fire detection
Notification
Fire protection system
2.2.1 Fire alarm system components:
2.2.2 Heat detector
A number of heat detecting devices are available in the market. These devices include:
4
Thermistor
Thermocouple
All of the devices have their own advantages and disadvantages but we will be targeting that
particular device which best suits our requirement. There are certain features that should be
considered when choosing the temperature sensor for any use. The features are showed in Figure
Table 1.Types of heat sensors
repeatability Accuracy:1oc
Need cold junction
Requires excitation Requires excitation Requires excitation
compensation
Low voltage out put Low cost High sensitivity 10mv/k, 20mv/k
1µA/k typical out put
5
Reprinted from datasheet of lm35 the lm35 can be used as a basic centigrade temperature sensor for sensing the
temperature between +2 ºc and +150 ºc as well as a full-range centigrade temperature sensor for sensing the
temperature between -55 ºc and +150 ºc and the circuitry for using them as basic or full-range is shown in figure
2.1 +vs. Is the voltage supplied to lm35 and r1 is the resistance connected between –vs. And v out (output
voltage). (7)
Figure 1:the circuitry of the lm35 for the basic and full-range temp. Sensor full-range temp. Sensor
6
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.
2.3.2 BJT transistor
A bipolar junction transistor (BJT) is a three layer, 2-junction device with emitter (E), base (S) and collector (C)
regions. The two junctions are emitter-to-base junction collector-to-base junction. Further the BJT may be either
npn types or pnp type. In npn transistor, a p-region is sandwiched between two regions while m pnp transistor, an
n region is sandwiched between two p-regions. The word bipolar implies that current flow in the device results
from the movements of both types of charge carriers namely holes and electrons. Fig. 2.2 also gives the circuit
S3Tnbol for npn and pnp transistors. An arrowhead is placed on inclined line indicating the emitter. In npn
transistor, the arrowhead points away from the base line while in pnp transistor, the arrowhead points towards the
base. In both cases, the arrowhead indicates the direction of flow of conventional current. For high power
operation, npn transistors are more popularly used because they are easier to fabricate and are cheaper. In our
project we use BC548 NPN transistor for switching the motor. (8)
7
Figure 3:BC548 Pin Diagram
The transistor terminals require a fixed DC voltage to operate in the desired region of its
characteristic curves. This is known as the biasing. For amplification applications, the transistor is
biased such that it is partly on for all input conditions. The input signal at base is amplified and
taken at the emitter. BC548 is used in common emitter configuration for amplifiers. The voltage
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.
2.3.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.
8
Figure 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 multi meter and at times it is printed on the relay
itself
9
The internal structure of the relay is shown in the image above which is embedded inside the Plastic covering. (9)
2.4 Adriano platform
Arduino is an open source electronics prototyping platform based on flexible hardware and software.
The Arduino is a simple yet sophisticated device which is based on Atmel‟s AT mega
microcontrollers. The Arduino software is supported by Windows, Macintosh and Linux operating
systems despite the fact that most microcontrollers are limited to Windows operating system. The
software language is based on AVR C programming language and can be expanded through C++
libraries. There are various types of Arduino microcontroller board available in the market including
the Arduino kits and Arduino shields.
2.4.1 Arduino uno board
Arduino Uno is one of the microcontroller boards manufactured by the Arduino and it is a microcontroller
board based on Atmel‟s ATmega328P microcontroller. “Uno” means one in Italian and the Uno board is the
latest in a series of USB (Universal Serial Bus) Arduino boards which is the reference model for the Arduino
platform. The Arduino Uno board has a 16 MHz ceramic resonator, a USB connection, a power jack, a reset
button, 6 analog inputs and 14 digital input/output pins (of which 6 can be used as PWM outputs). It uses
theAtmega16U2 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:
Table 2፡Arduino Uno pin type definitions
10
Figure 6:Arduino Uno R3
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)
2.4.2 ATmega328P microcontroller
11
The microcontroller is a low-power CMOS (Complementary Metal Oxide Semiconductor) 8-bit Microcontroller
based on the AVR enhanced RISC (Reduced Instruction Set Computer) architecture. The powerful execution
of instructions in a single clock cycle leads to the achievement of 1 MIPS per MHz throughputs allowing the
designer to optimize power consumption versus processing speed.
12
prices and uses. The buzzer being used in this project is a 5-12 V buzzer and has got enough alarm sound to be
used in a fire alarm system. Louder buzzer would have been even better but then their operating voltages are
high as we had a supply of maximum up to 12Vavailable with us on the board. (4)
Figure 8:Buzzer
2.7.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
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.7.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
13
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.8 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.9 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
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. (11)
14
Figure 9: DC Motor
2.9.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.
15
Figure 10:LCD Model MIS00010
Normally available LCD in the market for normal displays in the projects is 2x16 pin LCD which is easily
available. Talking about its specifications it has got 8 data pins, 3 control pins, and rest 5 pins for GND and VCC
connections. Another LCD being used is 2x8 pin LCD but it was costly and has got better display but
compromising on price and display helps to fulfill this job in a cheaper way. So 2x16 LCD is being used in the
project which display and light intensity 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. (12)
16
13 DB6
14 DB7
15 Backlight V CC (5V) LED+
17
CHAPTER THREE
SYSTEM DESIGN AND DEVELOPMENT
3. SYSTEM IMPLEMENTATION
In this Chapter we are going to Explain about the system Design construction through Hardware and development
of software. In addition, the chapter elaborates the hardware and the software stage by stage. All the operations of
hardware and software are also included in this chapter. The system design of the total project is shown in below
Figure with simple block diagram.
Display
Sensor Controller
Buzzer
Appliance
LCD
Zone3
Buzzer alarm
Zone2 Microcontroller
Common water pump
ATmega328p for main water tank
Zone 1
Water pump for the
incident area
Emergency exit
motor
19
Flow Chart of over the entire project
20
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.
want to measure the voltage of just a portion of your circuit, we have to pay
attention to where we place our probes.
21
+88.8
Volts
Features
3.1.4.1 Reproducible switching point accuracy
22
3.1.4.3 Simple, accurate adjustment of switching point With LED indicator
3.1.5 Sensory module
The LM35 temperature sensor is used as the heat detector in the system. It is used as a basic centigrade
temperature sensor which can sense the temperature from +2 ºC to +250 ºC. The power supply of 5V is used from
the port of Arduino Board and the input and output are connected to the input/output port of Arduino.
23
3.2 LCD modules
LCD is used to Display Temperature output. The temperature sensor Device senses the temperature and
gives the output as a display in the LCD.
2rows x 16 columns text LCD
In this project we used 2rows x 16 columns text LCD consist of two lines by 16 characters and provides basic text
wrapping so that your text looks right on the display. The LCD display is compatible with the C stamp
microcomputers supplies and signal levels. The LCD we used was having 16 pins out of which 8 pins are directly
going to microcontroller pin number 1 to 8. Two pins are connected with Vcc one with ground and one with the
potentiometer to set the resolution of LCD.
Three control pins of LCD are also connected to microcontroller pins. They are used for enabling LCD,
performing read or write operations and to select command or data register.
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 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
25
D1
LED-GREEN
Figure 21: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.
RL1
12V
26
Figure 22:relay
Vcc
U1
7805
TR1 D1
6-12V 1 3 5V
VI VO
10mA
220V D3 D4 C1
50/60Hz
10mA 10mA 100uF C2 C3
100uF 100uF
D2
TRAN-2P2S 10mA
28
Figure 25: Schematic Circuit diagram of “Automatic Fire control & specific fire location
29
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.
3.5 Software configuration
Programming software of this line follower is known as ARDUINO-IDE .This is open source programming
platform. The open-source ARDUINO environment makes it easy to write code and upload it to the I/O board.
Here we use ARDUINO-1.5.5 BETA platform. To configure software we have to use ARDUINO IDE named
arduino.exe the system is implemented on Arduino platform using the Arduino Uno Board. The whole system is
implemented using the C- code language written on the arduino platform. The software written on the platform
can be uploaded to the microcontroller (i.e. the arduino board) using Arduino IDE software. The Arduino
integrated development environment (IDE) is a cross-platform written in Java, whereas the programs are written in
C.The platform comes with a software library along with the code editor with features such as syntax highlighting,
brace matching and automatic indentation. The whole program is written in the platform in the C language code
which can be uploaded to the board by a simple upload button. Basically, the project is the integration of the
software (C language code) used to interface and implement the sensors.
3.5.1 Overall theory of the project
The overall project consists of the following components:
Microcontroller ATmega328p
Temperature sensor LM-35.
16x2 LCD.
12 V DC Motor
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.
30
CHAPTER FOUR
RESULT AND DISCUSSIONS
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.
Table 4፡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
31
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
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 In this simulation part all the motors are run except motor (pump) zone1 and zone3
since they are not above their stated value but zone2 is above the stated value of (50oc) that is 52.30o c but the two
zones are below their stated value, that is 49.36oc
32
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 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
4.3 Project evaluation
The project has met all the objectives as listed previously. The objective as defined earlier was to detect fire,
confirm its presence by checking through multiple sensors and then indicating its position on some output device
and alarming a buzzer to inform the vicinity the presence of the fire. Some excellent features are also provided in
the project that makes the fire alarm system more or less sensitive and placement of the fire alarm system in
various multiple locations.
4.4 System features
Pinpoints the exact location of fire.
Displays the presence of fire without any delay.
Sounds alarm loudly enabling the vicinity to take necessary measures to get away
from fire and take steps to put away the fire.
Provides a flexibility to reduce or enhance the sensitivity of the sensors to detect fire.
Interfacing various sensors with a single microcontroller chip there by reducing
the cost of the fire alarm systems.
Reluctant to false alarm or any ambiguity
33
This is to make the system more sensitive and obtain a quick feedback from the
desired area of condition.
4.4.1 Features ATmega 328/P
High Performance.
Low Power consumption.
High Endurance Non-volatile Memory Segments.
High Speed.
Temperature Range: -40oc-85oc,
It is inexpensive.
Mostly available in the market.
It‟s a 28 pin IC.
4.4.2 Drawbacks / Limitation of the project
Detects the fire from one location at a time, if there is fire in more than 3 locations, the system will be
anable to detect and hence locate only in three locations.
No record keeping is being done in the system which deprives us from any type of analysis which can be
beneficial for the betterment of the existing system.
When the three tankers are full, the main Main water pump are drop out the water.
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,
Table 5፡Price list of the Hardware
Sl. Name Quantity Price per Price(ETB)
No. Quantity
35
CHAPTER FIVE
CONCLUSION & RECOMMENDATION
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 control system in homes,
buildings and factories 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.
In conclusion, the automatic fire alarm and control system serves as a vital safeguard against fire emergencies in
buildings. By continuously monitoring temperature sensors and providing real-time alerts, the system enables
proactive fire safety measures. It promptly activates fire suppression mechanisms, alerts occupants, and initiates
emergency protocols, minimizing the potential risks associated with fires.
5.2 Recommendation
Regular maintenance:
To ensure optimal performance, regular maintenance of the automatic fire alarm and control system is crucial.
This includes inspecting sensors, verifying connections, and conducting periodic system tests. By adhering to a
maintenance schedule, potential issues can be identified and resolved promptly, minimizing the risk of system
failure during critical situations.
Integration with Emergency Response System:
Consider integrating the fire alarm system with an emergency response system or establishing direct
communication with the local fire department. This integration enables the automatic transmission of fire alarms,
facilitating a swift response. By reducing response time, the chances of containing and extinguishing fires in their
early stages increase significantly.
Backup power supply:
Installing a backup power supply or a battery backup system is essential for the fire alarm and control system. During power
outages, the backup power source ensures continuous operation, allowing the system to function effectively. This
uninterrupted power supply ensures that fire detection and control mechanisms remain operational, even in
challenging circumstances.
36
Expandability and scalability:
Design the fire alarm and control system with expandability and scalability in mind. This allows for future
additions or modifications based on changing building layouts, expansions, or updated fire safety requirements.
An adaptable system accommodates evolving needs and ensures compatibility with emerging technologies,
making it a sustainable long-term solution.
Training and awareness:
Conduct comprehensive training sessions for personnel and building occupants to familiarize them with the fire
alarm and control system. This training should include guidance on recognizing system indications, proper
evacuation procedures, and how to respond effectively during a fire emergency. Increasing awareness and
knowledge of the system promotes swift and appropriate actions, minimizing false alarms and improving overall
safety.
37
REFERENCE
1. Automatic Fire Detection and Notification System Based on Improved Y. Mukhiddinov, M.,
Abdusalomov, A.B. and Cho, J.,. 2022, or the Blind and Visually Impaired. Sensors, 22(9), p.330.
2. "Multiple Laser Alarm System using Arduino Uno." Lyceum of the Philippines–Journal of Engineering
and Computer Studies 4. Lusterio, Vincent, Robert Christian Montecer, and Neil Balba. , no. 3
(2020):. 1-1..
3. DESIGN AND CONSTRUCTION OF A MICRO-CONTROLLER BASED AUTOMATIC FIRE
EXTINGUISHING SYSTEM. RILWANU, B. (2015)..
4. Automatic Fire Detection and Notification System Based on Improved yolov4 for the Blind and
Visually Impaired. Sensors. Mukhiddinov, M., Abdusalomov, A. B., & Cho, J. S.l. : , 22(9), 3307., .
(2022). .
5. "Policy awareness, enforcement and maintenance: Critical to information security effectiveness in
organizations.". Knapp, Kenneth J., and Claudia J. Ferrante. S.l. : Journal of Management Policy and
Practice , 2012):, Vols. 66-80. . 13.5 (.
6. Automation in Construction 110 "BIM-based augmented reality inspection and maintenance of fire
safety equipmen. Chen, Yi-Jao, Yong-Shan Lai, and Yen-Han Lin. . (2020): 103041..
7. A two-terminal IC temperature transducer. , . Timko, M.P., 1976. 11(6), . Pp.784-788, s.l. : IEEE
Journal of Solid-State Circuits.
8. : A Hands-On introduction with 65 projects. No starch press. Boxall, John. Arduino workshop,. 2021.
9. Texture surface defect detection of plastic relays with an enhanced feature pyramid network. Journal of
Intelligent Manufacturing, . Huang, F., Wang, B. W., Li, Q. P., & Zou, J.). (2021). 1-17.
10. Rüppel U, Schatz K. . Designing a BIM-based serious game for fire safety evacuation simulations.
Advanced engineering informatics. . 2011 Oct . 1;25(4):600-11.
11. WALL AVOIDING ROBOT.". ZAMRI, MOHD NOOR BIN. " phd diss.,. S.l., g, 2008.
12. . "Flow Data Acquisition System.. Maxwell IV, Samuel Chapman. , et al : s.n., " (2022).
38