Professional Documents
Culture Documents
B.Sc Thesis On
June, 2016
Design and Implementation of Solar Based Automatic Firefighting System with Alternative Power Supply
Acknowledgement
Primarily we are thankful to heavenly God for his unlimited Guidance and Protection
throughout the whole thesis work.
And also, we would like to express our sincere appreciation to our adviser Ato Dawit Habtu for
his encouragement, guidance and valuable advices. He has given us excellent advice and enormous
help throughout our thesis work.
Finally, we would like to express our gratitude to our families and all friends for their patience
and unreservedly continuous encouragement to pursue our B.Sc thesis.
Table of Contents
Acknowledgement ........................................................................................................................... i
List of Figures ................................................................................................................................ iv
List of Tables .................................................................................................................................. v
Abstract .......................................................................................................................................... vi
Chapter One .................................................................................................................................... 1
1. Introduction ................................................................................................................................. 1
1.1 Background of the Thesis ...................................................................................................... 1
1.2. Problem Statement ............................................................................................................... 1
1.2.1. Problem of Life Safety .................................................................................................. 1
1.2.2. Problem of Mission Protection ...................................................................................... 2
1.2.3. Problem of Heritage and Property ................................................................................. 2
1.3. Objectives of the Thesis ....................................................................................................... 3
1.4. Motivation ............................................................................................................................ 4
1.5. Scope of the Thesis .............................................................................................................. 4
Chapter Two.................................................................................................................................... 5
2. Literature Review........................................................................................................................ 5
Chapter Three.................................................................................................................................. 7
3. Overall System Design ............................................................................................................... 7
3.1. Solar System Design and Description .................................................................................. 8
3.1.1. Solar Cell, Solar Module or Panel and Solar PV Array ................................................ 8
3.1.2. Charge Controller ........................................................................................................ 14
3.2 Output voltage ..................................................................................................................... 18
3.2.1 DC – DC Boost Converter ............................................................................................ 19
3.2.2 DC-AC Invertor Design................................................................................................ 22
3.3. Main System Components and Their Operational Characteristics .................................... 35
3.4. Water level controlling and tanker filling system .............................................................. 46
3.4.1. Automatic Tanker Filling System................................................................................ 46
3.4.2. Water Pump ................................................................................................................. 46
3.4.3. Water level sensors, fire detectors and microcontroller decisions .............................. 52
List of Figures
List of Tables
Abstract
The primary needs for socio-economic development in any nation in the world is the provision
of reliable power supply systems with safety. Safety issue should have to give attention due to the
increasing and emerging fire damages that are happening in our country as well as in the world.
The recent years’ data from the City Government of Addis Ababa Fire and Emergency Prevention
and Rescue Authority shows that the average damage and life loss in our country is very high.
To come up with implementation of the firefighting, this thesis also provides the alternative
power supply to the loads by introducing generation of electric power from solar PV panels with
designed charge controller and DC-DC converter coupled with DC-to -AC inverter. This is
because as solar energy is one of the most viable renewable energy source, little applications has
been done on operating this energy source. Once electrical energy has developed this energy is
used to run the motor that used to pump water to the tanker and some additional loads in the fire
detection system.
The firefighting system mainly uses water, thus the water which enables us to offer to fire
accident Provided with tanker filling system. Tanker filling system is a system used to store
sufficient water in the tanker to be used during fire accident, the tanker filling system with level
sensors controlled by microcontroller has been also developed to play the main role of firefighting
by supplying the desired amount of water. The feasibility analysis of the thesis and results from
level sensors, smoke sensors, heat detection system and microcontroller action will be studied.
The design, the system control algorithms, the way of connection with the motor and the way
of connection with microcontroller to open(close) the solenoidal valves to fight fire has been
discussed in detail.
Chapter One
1. Introduction
1.1 Background of the Thesis
Severe fire events in recent years dictate a need for a much more accurate and measured
approach to fire suppression.
Fire suppression involves applying the correct amount of water to the proper location in a fire
compartmenting an attempt to control a fire. In many organizations, manual fire suppression is
evolving from traditional water spray methods confirmed through experience to the use of new
and often untested combination tactics which focus on limiting fire spread while controlling the
fire and fire environment. Method to be used today is straight stream or fog approaches. This
approach can be achieved using a single combination nozzle, which can produce straight streams
as well as different fog angles.
For home and another bussines areas like Hotels the fire fighiting system needs power
supply to the systems. The power demand has been provided by solar system to this thesis. Because
the solar energy has been widely utilized in low power applications in the world. It is also the most
promising candidate for research and development for large scale users as the fabrication of low
cost PV devices becomes a reality. There are many studies that have been carried out for using
photovoltaic as source of energy for water pumping worldwide, but this technology is still in its
infant stage in Ethiopia while 4.6kw/m2 Solar power is available. On the other hand most of the
studies carried out are not optimal designs. They are mostly concentrated on efficiency
improvement techniques and design based on peak hydraulic energy demand without considering
the variation of solar energy and water requirement with time dynamically.
1
Design and Implementation of Solar Based Automatic Firefighting System with Alternative Power Supply
last five years (2003-2007) EC data gathered from City Government of Addis Ababa Fire and
Emergency Prevention and Rescue Authority.
Source: - City Government of Addis Ababa Fire and Emergency Prevention and Rescue Authority
As it is seen from the above table average 64 people dies and about 119 people be injured each
year due to fire accident. So to prevent such life loss we need some pre-cautious system such as
automatic fire fighting system.
For example, in our country it is know that veteran Taytu hotel has been destroyed by fire.
So Automatic Firefighting system will be designed to address such a damage.
Again from City Government of Addis Ababa Fire and Emergency Prevention and Rescue
Authority the total accidents and the property damaged in birr for the last five years (2003-2007)
EC is tabulated in the following table.
Source: - City Government of Addis Ababa Fire and Emergency Prevention and Rescue Authority
As it can be infared from the table,the average damage on properties is 375 and
about 116,820,488.2 Birr(ETB) capital loss be occurred in each year due to fire accident.
The general objective of this B. Sc thesis is to design and implement an automatic fire detection
and control system based on microcontroller.
Specific Objectives
To study the behavior of the proposed system by taking various loading considerations with an
appropriate simulation tool.
1.4. Motivation
In our country the buildings are not well equipped with precautions like alarming systems. Due
to that the following reasons motivated us to do this B. Sc thesis.
Continuous Power interruption from utility while routine activities are on the way
The increasing of human life loss rate and number of damages on properties in the past five
years.
The increasing of capital loss rate on properties because of the fire accident.
Wastage of man power during fire accident.
Chapter Two
2. Literature Review
Numerous summary of literatures has been published regarding the solar based automatic
firefighting system. Considerable attention has been taken to recognize and summarize on
following publicly available research papers.
1. Mosab Hamdan Adam & Abdelrasoul Jabar Alzubaidi, [4] proposed Automatic Fire
Fighting System. They develop a system that implements an early fire detection
mechanism, and communicates with its owners wirelessly over GSM networks. It should
also be capable of putting out fire by means of a firefighting pump, and to justify the status
of the indicator panel that provides visual feedback of the current status of the monitored
environment at any given time. According to the methodology, the Wireless Firefighting
System uses temperature sensors to monitor its surrounding environment and alert the
system owner in case it detects smoke, fire or that the temperature has gone outside the
normal parameters. The sensor signals are fed to, and processed by (ATmega32)
microcontroller program by BASCOM language which polls the sensors to monitor
environment and shows its status on LED status indicator panel. The ATmega32 also
connects to SIM900 GSM/GPRS module which enables the system to communicate their
owners over long distances and notify them the status of their protected environment.
2. Omar Asif, Md. Belayat Hossain and Mamun Hasan [2] proposed Fire-Detectors Review
and Design of an Automated, Quick Responsive Fire-Alarm System Based on SMS. The
aim of the system designed is to alert the distant property-owner efficiently and quickly by
sending short message (SMS) via GSM network. A Linear integrated temperature sensor
detects temperature beyond preset value whereas semiconductor type sensor detects
presence of smoke or gas from fire hazards. The sensor units are connected via common
data line to ATMega8L AVR microcontroller. A SIM300CZ GSM kit based network
module, capable of operating in standard GSM bands, has been used to send alert messages.
The system is implemented on printed circuit board (PCB) and tested under different
experimental conditions to evaluate its performances.
3. Jonathan A. Enokela, Isaiah I. Tsavwua, Simon A. Onyilo, [8] proposed The
Implementation of a Control Circuit for a Microcontroller Based Automated Irrigation
System. The system described here monitors the moisture needs of crops through
buried sensors and automatically pumps water for irrigation when the need arises. Through
the use of a microcontroller and sensors, water storage and delivery to the farm are
automatically carried out thus requiring minimal human interventions, achieving supply of
water as needed by plants thus optimizing plant growth and helping to conserve water and
energy. The system is very simple to operate and ideally suits the irrigation need of rural
farmers.
4. Papan Dey, Subir Das, Choton Kanti Das, Toufiq Ahmed, C. M. F. S. Reza and Md.
Mahbubur Rahman [6] proposed the design and implementation of an automatic fire
extinguishing system based on fault secure multi-detectors. The system proposed here
describes the design of a low cost, robust and secure fire protection system for buildings.
It sends early alarm when the fire occurs and helps to reduce the fire damage. This system
consists of a smoke detector and a temperature sensor whose outputs are connected to the
controller. The system takes into account the density of smoke and thus
the probability of false alarms can be avoided. A PIC16F84A microcontroller is considered
here to control the total arrangement and the test results through hardware prototype show
that the validity of proposed approach which achieves design requirements as well as
increase system reliability.
5. Bijoyprakash Majhi [5] deals the basic theory of a Sinusoidal Pulse Width Modulated
Inverter (SPWM), its Simulink modelling, estimating various designing parameters and
various instabilities. The thesis has been commenced by a basic understanding of the
circuitry of the SPWM Inverter, the components used in its design and the reason for
choosing such components in the circuitry. After that, it has been attempted to simulate a
model circuit on any simulating software e.g. MATLAB and analyse the output waveforms
for various values of the elements used in the circuit and hence study the system response
and instabilities.
Chapter Three
Solenoid Valve
Optional Power Generation System Controlling
Water Flow
V1
Sun
H
Water
Tank
Solar Panel Manual
V2
Valve
L
Utility
Charge Lead Acid Motor Pump
Power
Controller Battery Back up
The Entire
Building
Microcontroller
1. Solar Cell
A solar cell is an electronic device that converts the light energy directly into electric energy
without any form of moving parts by using photovoltaic effect. The solar cell is the basic building
block of solar photovoltaic. When charged by the sun, this basic unit generates a dc photo voltage
of 0.5 to 1.0V and, in short circuit, a photocurrent of some tens of mA/cm2.
2. PV Module
PV Module or Panel: is a group of solar photovoltaic cells connected in series and/or parallel
and encapsulated in an environmentally protective laminate. It converts sunlight in to direct current
(DC) electricity. Modules can be wired together to form a PV array that is wiring modules in
parallel, the available current is increased. In this project we select typical PV module measures
about 1.59 square meters about 250W DC electricity in full.
3. PV Array
A solar array is a group of solar photovoltaic panels or modules connected electrically together
and mounted on a sustainable structure to produce higher amount of power. For this project the
main task is to design a stand-alone power generation system for a small load that is not connected
to grid network. For this kind of loads design such a system that uses the power generated from
PV Array and stores it in storage element with efficiently and paralleling supplies the load.
Available panels taken 190Wp German Solar GSP6 Premium Line and technical
specifications (from datasheet)
Pmax(W) = 190W
Vmax(V) = 24.77V
Impp(A) = 7.68A
Voc(V) = 31.15V
Isc(A) = 8.28A
The first step in designing a solar PV system is to find out the total power and energy
consumption of all loads that need to be supplied by the solar PV system as follows:
Step 2. Calculate total Watt-hours (Wh) per day for each appliance used.
Add the Watt-hours needed for all appliances together to get the total Watt-hours per day
which must be delivered to the appliances.
Step 3. Calculate total Watt-hours (Wh) per day needed from the PV modules.
Multiply the total appliances Watt-hours (Wh) per day x1.3 (the energy lost in the system) to
get the total Watt-hours per day which must be provided by the panels.
Different size of PV modules will produce different amount of power. To find out the sizing of PV
module, the total watt peak (Wp) produced needs. The peak watt (Wp) produced depends on size
of the PV module and system location. We have to consider “sunlight factor” which is different in
each site location. For Addis Ababa the factor is around 6, and corresponds to about 6 hours of
sunlight, per day, expected average over the whole year (including in the summer time).
To determine the sizing of PV modules, calculate as follows:
Divide the total Watt-hours per day needed from the PV modules by 6 to get the total Watt-peak
rating needed for the PV panels needed to operate the appliances. The factor 6 corresponds to the
day-hours sun radiation under Addis Ababa conditions and all season working mode (also
summer), if PV system working for systems working only in winter, around 6-7 hours’ sun per
day (factor=6 to7).
Divide the answer obtained in item from the above result by the rated output Watt-peak of the PV
modules available to you. Increase any fractional part of result to the next highest full number and
that will be the number of PV modules required.
Result of the calculation is the minimum number of PV panels. If more PV modules are installed,
the system will perform better and battery life will be improved. If fewer PV modules are used,
the system may not work at all during cloudy periods and battery life will be shortened.
Motor =2200W
Total peak watt (Wp) of PV panel capacity needed =3905/6=650Wp (factor 6 = average daily
solar exposure in hours for Addis Ababa location)
The battery type recommended for using in solar PV system is deep cycle battery. Deep cycle
battery is specifically designed for to be discharged to low energy level and rapid recharged or
cycle charged and discharged day after day for years. The battery should be large enough to store
sufficient energy to operate the appliances at night, cloudy days and if needed in winter. To find
out the size of battery, calculate as follows:
Divide the total Watt-hours per day used by 0.85 for battery loss…………………………. (1)
Divide the answer obtained in item (1) by 0.5 for depth of discharge……………………... (2)
Divide the answer obtained in item (2) by the nominal battery voltage……………………. (3)
Multiply the answer obtained in item (3) with days of autonomy (the number of days that you
need the system to operate when there is no power produced by PV panels) to get the required
Ampere-hour capacity of deep-cycle battery.
Battery Capacity (Ah) = Total Watt-hours per day used by appliances x Days of autonomy (0.85
x 0.5 x nominal battery voltage)
A charge controller is an electronic voltage regulator, used in off-grid systems and grid-tie
systems with battery backup, which controls the flow of power from the charging source to the
battery. The charge controller automatically tapers, stops, or diverts the charge when batteries
become fully charged. Solar Charge Controller act as the central control unit regulating the overall
energy flow within Solar Home System and some photovoltaic hybrid system.
Switches are used to operate Charge Controllers. The switch can be either a Relay or a solid
state switch such as a MOSFET or power transistor. Relays contribute to less power loss due to
their smaller resistance, but they have a limited life span. On the other hand, MOSFETS have a
higher longevity, but also a higher rate of power loss in times of high current flow. Control circuits
are used to regulate the switching on-off of controller switches. One of the most popular
techniques, and the scheme preferred for this system, is the ON/OFF charge controller.
Most controllers measure the amount of voltage in the battery and accordingly supplies current
to the battery or stops current flow completely. This is done by measuring the Ah (Ampere Hour)
of the battery, rather than looking at the State of Charge (SOC) of the battery. The maximum
battery voltage allowed to reach is known as the ‘Charge Set Point’. Factors such as prevention of
Deep Discharge, Battery Sulphating, over current and short circuit current are also prevented
through the controller. Deep discharge can be detected by the microcontroller and it will run an
auto boost charge to keep the battery activated.
As mentioned above, the solar charge controller is typically rated against Amperage (A) and
Voltage (V) capacities. Select the solar charge controller to match the voltage of PV system and
batteries and then identify which type of solar charge controller is right for your application. Make
sure that solar charge controller has enough capacity to handle the current from PV system.
For the PWM charge controller type, the sizing of controller depends on the total PV input
current which is delivered to the controller and also depends on PV panel configuration (series or
parallel configuration). According to standard practice, the sizing of solar charge controller is to
take the short circuit current (Isc) of the PV module, and multiply it by x 1.3
According PV energy demands from above, 2x 190Wp (e.g. German Solar GSP6 Premium
Line) and technical specifications:
Pm = 190Wp, Vmp = 24.77V, Imp = 7.68A, Voc = 31.15V, Isc = 8.28A
A (current)
The rated current for solar charge controller = (2 x 8.28 A) x 1.25 = 20A [25% safety buffer]
The solar charge controller should be rated at 20A or greater and would be a little undersized, but
OK.
V (voltage)
The PV voltage (Voc) of 2x190Wp panels, connected parallel (!) will be 31.15, multiplied x1.2 =
37Voc. The max allowed voltage within a 12V PWM charge controller is 41Voc, and will be not
exceeded (37V), thus is OK.
According above illustration (2x190Wp) a 20A PWM charge controller for 12V system
should be chosen. And will work optimally at slightly cloudy weather, typical for central
European location.
Star
Initializing
Microcontroller Sensor
analogue input voltage
Yes
Switch ON
Charging
No
Is battery full?
Yes
There is no inverter with capability to convert 24V DC to 220V AC because the inverters
operate in buck mode and the DC link has to be larger than peak of AC output. And
commercially available converters known as inverter are combination of a converter working in
boost mode and an inverter. So, we follow the first method.
DC-DC Converters are used to convert the unregulated DC voltage into regulated DC voltage.
DC-DC converters are operated under continuous conduction mode (CCM) or discontinuous
conduction mode (DCM). As the name implies, the output voltage of Boost converter is higher
than the input voltage. The input and output power of DC-DC converters are same for ideal case.
The DC-DC boost converters operate under two case, switch ON (Son) and switch OFF (Soff).
Circuit diagram for the boost converter is shown in figure below.
1
Vo = Vs1−𝐷 3.1
For this project the following parameters are required to calculate the power stage:
We start with calculating the Duty Cycle, D for a minimum input voltage of 24V.
[𝑉𝐼𝑁(𝑚𝑖𝑛)∗𝜂]
D=1 − 3.2
𝑉𝑂𝑈𝑇
VIN(min) = minimum input voltage (this will lead to the maximum switch current)
[24𝑉∗0.85]
Thus, D = 1− 220𝑉
D = 0.907
This is one of the most crucial component in designing a DC/DC Converter (whether it be buck or
boost). The higher the inductor value, the higher is the possible maximum output current because
of the reduced ripple current. We can use the following formula:
𝑉𝐼𝑁∗(𝑉𝑂𝑈𝑇−𝑉𝐼𝑁)
L≥ 3.3
Δ𝐼𝐿∗𝑓𝑠∗𝑉𝑂𝑈𝑇
A good estimation for the inductor ripple current is 20 % to 40 % of the output current. A smaller
ripple reduces the magnetic hysteresis losses in the inductor, as well as output voltage ripple and
EMI. But in the same way, regulation time rises at load changes. In addition, a larger inductor
increases the total system costs. Inductor Ripple Current can be found out as below:
𝐼𝑂𝑈𝑇(𝑚𝑎𝑥)∗𝑉𝑂𝑈𝑇
ΔIL= (0.2to0.4)∗ 𝑉𝐼𝑁
where, IOUT(max) = maximum output current desired in the application, here, we would like the
output current to be approximately 9A.
Taking an estimate for the inductor ripple current as 10 % of the desired output current, we get,
12.2A∗220V
ΔIL= 0.1∗ =11.18A
24𝑉
24𝑉∗(220𝑉−24𝑉)
L ≥ 11.18A∗60 KHz∗220V
L = 0.319 µH
To calculate the minimum output capacitance needed, we use the following formula:
C(min) ≥ 𝐼𝑜𝑢𝑡(𝑚𝑎𝑥)∗𝐷
𝑓𝑠∗Δ𝑉𝑂𝑈𝑇
3.4
Vo
T1 is ON during the positive half cycle of the output voltage, which makes Vout = and T2 is
2
Vo
ON during the negative half cycle which makes Vout = - . The both switches must operate
2
Alternatively, otherwise there may be a chance of short circuiting. In case of resistive load, the
current waveform follows the voltage waveform but not in case of reactive load. The feedback
diode operates for the reactive load when the voltage and current are of opposite polarities.
The switches are T1, T2, T3 and T4. The switches in each branch is operated alternatively so that
They are not in same mode (ON /OFF) simultaneously. In practice they are both OFF for short
period of time called blanking time, to avoid short circuiting. The switches T1 and T2 or T3 and
T4 should operate in a pair to get the output. These bridges legs are switched such that the output
voltage is shifted from one to another and hence the change in polarity occurs in voltage waveform.
If the shift angle is zero, the output voltage is also zero and maximal when shift angle is π.
The variation of modulation index (MI) from 0 to 1 varies the pulse from 0 to π/p and the output
Voltage from 0 to Vs.
Invertor selection:
There are generally three types of inverter for general purpose
Square Wave Inverter
Modified Square Wave Inverter
True Sine Wave Inverter
LC Filter Design
A low pass LC filter is required at the output terminal of Full Bridge VSI to reduce harmonics
Generated by the pulsating modulation wave form. While designing L-C filter, the cut-off
frequency is chosen such that most of the low order harmonics is eliminated. To operate as an ideal
voltage source, that means no additional voltage distortion even though under the load variation
or a nonlinear load, the output impedance of the inverter must be kept zero. Therefore, the
capacitance value should be maximized and the inductance value should be minimized at the
selected cut-off frequency of the low-pass filter.
Each value of L and C component is determined to minimize the reactive power in these
components because the reactive power of L and C will decide the cost of LC filter and it is selected
to minimize the cost, then it is common that the filter components are determined at the set of a
small capacitance and a large inductance and consequently the output impedance of the inverter is
so high. With these design values, the voltage waveform of the inverter output can be sinusoidal
under the linear load or steady state condition because the output impedance is zero. But in case
of a step change of the load or a nonlinear load, the output voltage waveform will be distorted
because by the slow system response as the output response is non-zero.
Figure 13 shows the power circuit of the single phase PWM-VSI with any linear or nonlinear
load. The load current flows differently depending on the kind of loads such as linear and nonlinear
load. Therefore, it is difficult to represent the transfer function of inverter output voltage to load
current. The plant composed of L-C low-pass filter satisfies linear property, so it is possible to
represent the system which has two inputs of inverter output voltage and load current.
Figure 13 LC Filter
Using the closed relation between the filter capacitor value and the system time constant, the
capacitor value can be calculated. The effect of the load current to the voltage distortion can be
calculated from the closed form. It is also possible to analyse how much the voltage waveform is
distorted in the system in case of a nonlinear load.
Figure 14 shows the system block diagram of the single phase PWM-VSI and the input and
output transfer function.
The amplitude of the voltage harmonics at the filter output can be calculated by summing the
two harmonics caused by the inverter output voltage and by the load current the above equation
can be simplified by neglecting the imaginary part in both the terms as equivalent series resistance
of inductor is very small that means
In the conventional output filter design method, the load current is treated as the disturbance so
it can be neglected. This filter design procedure can be well applied to the linear load. But in case
of nonlinear load or transient load change, the output current term cannot be neglected due to the
increase of load current harmonics. Therefore, for the analysis of voltage harmonics under the
nonlinear load, it should be considered. In order to be independent of the load current, the inductor
value should be minimized and on the contrary maximized the capacitor value at the same cut-off
frequency. Then it satisfies the zero output impedance and works as an ideal voltage source. At
Cut-off frequency
The filter output to input voltage harmonics must be less than 3%.
So,
So, from this we can find out the L and C for the filter.
Assume the cut-off frequency of the filter(fc) be 5KHz, the system frequency(f) 50Hz and the
inductor value(L) be 10mH.
𝑋𝐿 34.2
=
𝑋𝐶 𝑓𝑐2
2π𝑓𝐿 34.2
≤
1/2π𝑓C 𝑓𝑐2
34.2 34.2
C≥ ≥
2π𝑓∗XL∗𝑓𝑐2 2π∗50∗3.14∗25000000
C ≥ 1.387 pF
These sensors use a solid-state technique to determine the temperature. They use the fact as
temperature increases, the voltage across a diode increases at a known rate. (Technically, this is
actually the voltage drop between the base and emitter - the VBE - of a transistor). By precisely
amplifying the voltage change, it is easy to generate an analogue signal that is directly proportional
to temperature. There have been some improvements on the technique but, essentially that is how
temperature is measured. Because these sensors have no moving parts, they are precise, never wear
out, don't need calibration, work under many environmental conditions, and are consistent between
sensors and readings. Moreover, they are easy to use.
The LM35 series are precision integrated-circuit temperature sensors, whose output voltage is
linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage
over linear temperature sensors calibrated in Kelvin, as the user is not required to subtract a large
constant voltage from its output to obtain convenient Centigrade scaling. The output from the
LM35 is 0.1V/'C. So, when temperature sensed is 61'C, the output voltage is 0.61V. This analogue
voltage is read by the PIC and processed to display the corresponding temperature value on the
LCD.
Application: The LM35 can be applied easily in the same way as other integrated circuit
temperature sensors. It can be glued or cemented to a surface and its temperature will be within
about 0.01˚C of the surface temperature. This presumes that the ambient air temperature is almost
the same as the surface temperature; if the air temperature were much higher or lower than the
surface temperature, the actual temperature of the LM35 die would be at an intermediate
temperature between the surface temperature and their temperature.
2. Smoke Sensor
A smoke detector is a device that detects smoke, typically as an indicator of fire. Commercial,
industrial, and mass residential devices issue a signal to a fire alarm system, while household
detectors, known as smoke alarms, generally issue a local audible or visual alarm from the detector
itself. Smoke detectors are typically housed in a disk-shaped plastic enclosure Most smoke
detectors work either by optical detection (photoelectric) or by physical process (ionization), while
others use both detection methods to increase sensitivity to smoke. Sensitive alarms can be used
to detect, and thus deter, smoking in areas where it is banned such as toilets and schools. Smoke
detectors in large commercial, industrial, and residential buildings are usually powered by a central
fire alarm system, which is powered by the building power with a battery backup. However, in
many single families detached and smaller multiple family housings, a smoke alarm is often
powered only by a single disposable battery.
3. LCD Display
LDC is a combination of two states of matter namely the solid and the liquid. They have both
the properties of solids and liquids and maintain their respective states with respect to another.
Solids usually maintain their state unlike liquids who change their orientation and move
everywhere in the particular liquid. Further studies have showed that liquid crystal materials show
more of a liquid state than that of a solid. It must also be noted that liquid crystals are more heat
sensitive than usual liquids. A little amount of heat can easily turn the liquid crystal into a liquid.
This is the reason why they are also used to make thermometers.
We always use devices made up of Liquid Crystal Displays (LCDs) like computers, digital
watches and also DVD and CD players. They have become very common and have taken a giant
leap in the screen industry by clearly replacing the use of Cathode Ray Tubes (CRT). CRT draws
more power than LCD and is also bigger and heavier. All of us have seen an LCD, but no one
knows the exact working of it. Let us take a look at the working of an LCD. The liquid-crystal
display has the distinct advantage of having a low power consumption than the LED. It is typically
of the order of microwatts for the display in comparison to some order of mill watts for LEDs.
Low power consumption requirement has made it compatible with MOS integrated logic circuit.
Its other advantages are its low cost, and good contrast. The main drawbacks of LCDs are
additional requirement of light source, a limited temperature range of operation (between 0 and
60° C), low reliability, short operating life, poor visibility in low ambient lighting, slow speed and
the need for an ac drive.
The main principle behind liquid crystal molecules is that when an electric current is applied to
them, they tend to untwist. This causes a change in the light angle passing through them. This
causes a change in the angle of the top polarizing filter with respect to it. So, little light is allowed
to pass through that particular area of LCD. Thus that area becomes darker comparing to others.
The LCDs have a parallel interface, meaning that the microcontroller has to manipulate several
interface pins at once to control the display. The interface consists of the following pins:
A register selects (RS) pin that controls where in the LCD's memory you're writing data to.
You can select either the data register, which holds what goes on the screen, or an instruction
register, which is where the LCD's controller looks for instructions on what to do next.
A Read/ Write (R/W) pin that selects reading mode or writing mode. An enable pins that
enables writing to the registers. 8 data pins (D0 -D7). The states of these pins (high or low) are
the bits that you're writing to a register when you write, or the values you're reading when you
read. There's also a display contrasts pin (Vo), power supply pins (+5V and Gnd) and LED
Backlight (Bklt+ and BKlt-) pins that you can use to power the LCD, control the display contrast,
and turn on and off the LED backlight, respectively. The process of controlling the display involves
putting the data that form the image of what you want to display into the data registers, then putting
instructions in the instruction register.
4. Microcontroller (PIC16F877A)
CPU: CPU is the brain of a microcontroller. CPU is responsible for fetching the instruction,
decodes it, and then finally executed. CPU connects every part of a microcontroller into a single
system. The primary function of CPU is fetching and decoding instructions. Instruction fetched
from program memory must be decoded by the CPU.
Parallel input/output ports: parallel input/output ports are mainly used to drive(interface) various
devices such as LED’S, printers and memories to a microcontroller.
Serial ports: Serial ports provide various serial interfaces between microcontroller and other
peripherals like parallel ports.
Analog to Digital Converter (ADC): ADC converters are used for converting the analogue signal
to digital form. The input signal in this converter should be in analogue form (e.g. sensor output)
and the output from this unit is in digital form. The digital output can be used for various digital
applications (e.g. measurement devices).
Digital to Analog Converter (DAC): DAC perform reversal operation of ADC conversion. DAC
convert the digital signal into analogue format. It usually used for controlling analogue devices
like DC motors, various drives, etc.
Interrupt control: the interrupt control is used for providing interrupt (delay) of working program.
The interrupt may be external (activated by using interrupt pin) or internal (by using interrupt
instruction during programming).
Special functioning block: Some microcontrollers used only for some special applications (e.g.
space systems and robotics) these controllers containing additional ports to perform such special
operations. This considered as special functioning block.
There are many types of microcontroller used for different applications like ATMEGA and PIC
types. In our case we have selected the PIC type which is PIC16F877A.
U3
13 33
OSC1/CLKIN RB0/INT
14 34
OSC2/CLKOUT RB1
35
RB2
2 36
RA0/AN0 RB3/PGM
3 37
RA1/AN1 RB4
4 38
RA2/AN2/VREF-/CVREF RB5
5 39
RA3/AN3/VREF+ RB6/PGC
6 40
RA4/T0CKI/C1OUT RB7/PGD
7
RA5/AN4/SS/C2OUT
15
RC0/T1OSO/T1CKI
8 16
RE0/AN5/RD RC1/T1OSI/CCP2
9 17
RE1/AN6/WR RC2/CCP1
10 18
RE2/AN7/CS RC3/SCK/SCL
23
RC4/SDI/SDA
1 24
MCLR/Vpp/THV RC5/SDO
25
RC6/TX/CK
26
RC7/RX/DT
19
RD0/PSP0
20
RD1/PSP1
21
RD2/PSP2
22
RD3/PSP3
27
RD4/PSP4
28
RD5/PSP5
29
RD6/PSP6
30
RD7/PSP7
PIC16F877A
Characteristics
The 16F877 is part of the subfamily 16F87x. This branch is part of the family of PIC ® Mid-
Range, Table 1 represents the characteristics of a PIC16F877A.
Table 5: Characteristics of a PIC16F877A
PIC FLASH RAM EEPROM I/O A/D Parallel PORT Serial PORT
Advantages of Microcontrollers
Disadvantages of Microcontroller
Microcontrollers have got more complex architecture than that of microprocessors.
Only perform limited number of executions simultaneously.
Mostly used in micro-equipment.
Cannot interface high power devices directly.
5. Solenoid Valve
A solenoid is a simple electromagnetic device that converts electrical energy directly into linear
mechanical motion, but it has a very short stroke (length of movement), which limits its
applications. The solenoid consists of a coil of wire with an iron plunger that is allowed to move
through the center of the coil.
Notice that the plunger is being held about halfway out of the coil by a spring. When the coil is
energized, the resulting magnetic field pulls the plunger to the middle of the coil. The magnetic
force is unidirectional; a spring is required to return the plunger to its un-energized position.
A solenoid valve is the combination of a basic solenoid and mechanical valve. So a solenoid
valve has two parts namely- Electrical solenoid, mechanical valve. Solenoid converts electrical
energy to mechanical energy and this energy is used to operate a mechanical valve that is to open,
close or to adjust in a position.
many other types, such as pneumatic and hydraulic. Input may be electrical and output directly
mechanical, or vice versa.
How do relays work?
All relays contain a sensing unit, the electric coil, which is powered by AC or DC current. When
the applied current or voltage exceeds a threshold value, the coil activates the armature, which
operates either to close the open contacts or to open the closed contacts. When a power is supplied
to the coil, it generates a magnetic force that actuates the switch mechanism. The magnetic force
is, in effect, relaying the action from one circuit to another. The first circuit is called the control
circuit; the second is called the load circuit.
There are three basic functions of a relay: On/Off Control, Limit Control and Logic Operation.
On/Off Control: Example: Air conditioning control, used to limit and control a “high power”
load, such as a compressor
Limit Control: Example: Motor Speed Control, used to disconnect a motor if it runs slower or
faster than the desired speed
Logic Operation: Example: Test Equipment, used to connect the instrument to a number of
testing points on the device under test.
Types of Relays: There are two basic classifications of relays: Electromechanical and Solid State.
Electromechanical relays have moving parts, whereas solid state relays have no moving parts.
Advantages of Electromechanical relays include lower cost, no heat sink is required, multiple poles
are available, and they can switch AC or DC with equal ease.
7. Crystal Oscillator
A crystal oscillator is an electronic oscillator circuit which uses inverse piezoelectric effect, ie
when electric field is applied across certain materials it produces mechanical deformation. Thus
it uses mechanical resonance of a vibrating crystal of piezoelectric materiel to create an electric
signal with very precise frequency. They have high stability, quality factor, small size and low
cost and this makes them superior over other resonators like LC circuit, ceramic resonator,
turning forks etc.
Crystal oscillator is used to provide clock to microcontroller. Clock is used to carry all the
function that microcontroller provides.
Pressure, friction and flow are three important characteristics of a pump system. Pressure is the
driving force responsible for the movement of the fluid. Friction is the force that slows down fluid
particles. Flow rate is the amount of volume that is displaced per unit time.
Pressure is often expressed in pounds per square inch (psi) in the Imperial system and kilo
Pascal’s (KPa) in the metric system. In the Imperial system of measurement, the unit psig or
pounds per square inch gauge is used, it means that the pressure measurement is relative to the
local atmospheric pressure, so that 5 psig is 5 psi above the local atmospheric pressure. In the
metric system, the KPa unit scale is a scale of absolute pressure measurement and there is no KPag,
but many people use the KPa as a relative measurement to the local atmosphere and don't bother
to specify this. This is not a fault of the metric system but the way people use it. The term pressure
loss or pressure drop is often used; this refers to the decrease in pressure in the system due to
friction. In a pipe or tube that is at the same level, your garden hose for example, the pressure is
high at the tap and zero at the hose outlet, this decrease in pressure is due to friction and is the
pressure loss.
This Pressure provides the driving force to overcome friction and elevation difference. It's
responsible for driving the fluid through the system, the pump provides the pressure. Pressure is
increased when fluid particles are forced closer together. For example, in a fire extinguisher work
or energy has been spent to pressurize the liquid chemical within, that energy can be stored and
used later. Is it possible to pressurize a liquid within a container that is open? Yes. A good example
is a syringe, as you push down on the plunger the pressure increases, and the harder you have to
push. There is enough friction as the fluid moves through the needle to produce a great deal of
pressure in the body of the syringe Friction is always present, even in fluids; it is the force that
resists the movement of objects. In fluids, friction occurs between fluid layers that are traveling at
different velocities within the pipe. There is a natural tendency for the fluid velocity to be higher
in the canter of the pipe than near the wall of the pipe. Friction will also be high for viscous fluids
and fluids with suspended particles.
Notice that the fundamental difference in processes that produce the pumping for centrifugal
and positive displacement pumps yield quite different shapes to their pump curves. For a
centrifugal pump, as the height of the water column above the pump increases, more and more of
the pump’s energy is devoted to simply holding up the water so flow rates rapidly diminish. For
example, imagine a small centrifugal pump connected to a hose. Raising the open end of the hose
higher and higher (increasing the head) will result in less and less flow until a point is reached at
which there is no flow at all. On the other hand, the flapper valve, diaphragm, or rotating screw in
a positive displacement pump holds up the water column mechanically, so their flow rates are
much less affected by increasing head [1].
Figure 26 The pump curves for positive displacement pumps and centrifugal pumps have quite
different shapes.
Electrical I–V curves and hydraulic Q–H curves share many similar features. For example, recall
that the electrical power delivered by a PV is the product of I times V and the maximum power
point is at the knee of the I–V curve. For the hydraulic side, the power delivered by the pump to
the fluid is given by
P = ρH Q 3.5
where ρ is fluid density. In American units,
P (watts) = 8.34 lb/gal × H (ft) × Q(gal/ min) × (1 min /60 s)× 1.356 W/(ft-lb/s)
P (watts) = 0.1885 × H (ft) × Q(gpm) 3.6
In SI units,
P (watts) = 9.81 × H (m) × Q(L/s) 3.7
When Q is zero, there is no power delivered to the fluid; when the head H is
zero, there is no power delivered either.
If pump voltage and efficiency are given, pump power can be determined using
Power to fluid 0.1885 × H(ft) × Q(gpm)
Pin (W) to pump = Pump efficiency = 3.8
ηp
After having sized the system, the water pumped can be estimated by rearranging (3.8) and
adding in the de-rating factor:
ηP
Q = 24V/mod *5A*(1 mods)*(h/min)*60 min /h*de-rating*[0.1885 × H(ft)] (gal/min) 3.9
Since we have designed for buildings less than or equal to G+1 and assuming the motor is at the
ground, then the maximum height will be
H(m) = 2*3m =6 m (assume the height of the single floor be 3m)
H(ft) = 6m*3.2808ft/m = 19.6848 ft
Select submersible pump with efficiency of 0.35 then the water pumped to the top of the building
can be found as follows.
0.35 271.6552927 gal/min
Q = 24*5*1*60*0.8*(0.1885∗19.6848) = 271.6552927 gal/min = *1 m3/min
264.172 gal/min
= 2.0283 m3/min
Selection of sprinkler
From reliably and wide usage of its perfect sprinkling ability we have chosen FOG nozzle
Fog Nozzle
A fog nozzle is a firefighting hose spray nozzle that breaks its stream into small droplets. By
doing so, its stream achieves a greater surface area, and thus a greater rate of heat absorption,
which, when compared to that of a smoothbore nozzle, speeds its transformation into the steam
that smothers the fire by displacing its oxygen.
water supply because the master stream devices to which they are sometimes attached can expel
up to 2,000 US gallons (7.6 m3) per minute. This is for truck application but this thesis concerns
about design of G+1 home with following specification
Kitchen 2 4 Fogg(0.05m3)
Restrooms 6 6 Fogg(0.05m3)
Toilet 2 2 Fogg(0.05m3)
Roof - 2 Fogg(0.05m3)
Total 16
S1 S2 S3 S4
1 1 1 1 High temperature & smoke Pump “ON”; V1&V2 are “OPEN”
Tanker empty Red LED & Buzzer “ON”
Start
Initializing Process
No
Either temp or Yes Yes
smoke high? Is temp & Is areal
smoke high? tank full?
Yes
No
No No
Is areal Is areal
tank full? tank full?
No
Yes Yes
Pump ON and V1 Turn OFF pump, V1&V2 Turn OFF pump, V2
OPEN Pump OFF and Turn OFF pump, OPEN and OPEN and
Red_LED&Buzzer Red_LED&Buz Pump ON and V1&V2 CLOSED and Red_LED&Buzzer ON Red_LED&Buzzer ON
ON zer ON V1 OPEN Red_LED&Buzzer
OFF
Algorithm
Chapter Four
2 Relay 4 12V
5 Smoke detecters 1 9V
7 Buzzer(sounder) 1 3-12V
8 Electronic components(resistors , - -
transistors, capacitors, diode, LED,
cristal, LCD display)
Motor Pump
LCD Display
Water Tank
Relays
Water Reservoir
PIC16F877A
Chapter Five
5. Conclusion
In this Thesis the design and implementation of solar based automatic firefighting system with
alternative power supply has been dealt. Full design of solar power generation by designing the
panel size, battery size, and modelling of charge controller has been included. The design of DC-
to-DC boost converter coupled with DC-to -AC inverter which produce a higher-voltage DC and
then converts to AC has been discussed in detail with appropriate parameters.
The Thesis additionally assessed on five years’ fire accident profile of City Government of
Addis Ababa Fire and Emergency Prevention and Rescue Authority. And has estimated the
average damage on human life, heritage and property. Then the thesis has provided the appropriate
proactive firefighting mechanism with intelligent devices.
It also includes microcontroller based water tanker filling system which driven by the motor
pump to back up the firefighting activity without water shortage interruption. The flow rate of the
water and the size of tanker has been designed according to the demand of the water volume during
the fire accident.
The detection system has been discussed by taking the considerable working principle of a
LM35 -Temperature Sensor with considerable variables. Finally, the whole design of system has
been modeled by Proteus and the implementation of the system has been done on the PCB board.
The results from the prototype hard ware implementation shows the feasibility of the system as it
has been predicted on the simulation model.
Chapter Six
6. Recommendations
6.1. Recommendation
Current government policies recommend all buildings should have equipped with appropriate
proactive firefighting systems. But this policies and laws should have implemented in a respective
building on mandatory base. Automatic firefighting system with alternative power supply has
been developed to maintain safer and threat free modern life style according to the law of
government.
Therefore, this thesis encourages all buildings to have such system as buildings costs numerous
capital and financial investment, they need safer firefighting system to keep up their attractive,
beautiful and adorable features. also, this Thesis provides all options with affordable, reliable and
optimum design for:
Hotels
Residential homes
Business centers
Industrial areas and etc.
6.2 Challenges
Some challenges faced during the thesis, we have got some external and internal challenge that
made us in limitation of our work. These are recommended as follow:
In this thesis the main challenge was finding materials (components and equipment’s)
which are used to implement the prototype of the system.
Internet or wireless access was not available as much as the project need. This was main
factor in limitation of our work. So the internet access in the campus should be improved.
Limited knowledge of interface was our major problem, since we have not learned interface
course due to curriculum problem and that costed more of our time to understand about it.
The course should have to give for the next batches.
Time is the basic factor in doing whatever starting from simple work up to designing and
implementing the thesis. So, the department and administration system must give us
enough time in order to do our thesis properly and completely.
7. References
[1] Gilbert M. Masters Stanford University, Renewable and Efficient Electric Power Systems
[2] By RUPESH PATEL, Design and Implementation of an Isolated Solar Photovoltaic Power
Generation System, Department of Electrical Engineering National Institute of Technology
[3] Ugur FESLi, Raif BAYIR, Mahmut ÖZER, Design and Implementation of a Domestic Solar-
Wind Hybrid Energy System. Zonguldak Karaelmas University, Engineering Faculty, Department
of Electrical and Electronics Engineering, 67100 Zonguldak,
[4] Mosab Hamdan Adam & Abdelrasoul Jabar Alzubaidi, Automatic Fire Fighting System. Post
graduate candidate Sudan University of science and Technology- Engineering College Electronics
Dept.
[6] Papan Dey, Subir Das, Choton Kanti Das, Toufiq Ahmed, C. M. F. S. Reza and Md. Mahbubur
Rahman: DESIGN AND IMPLEMENTATION OF AN AUTOMATIC FIRE EXTINGUISHING
SYSTEM BASED ON FAULT SECURE MULTI-DETECTORS. Chittagong University of
Engineering & Technology, Chittagong – 4349
[7] TURKEY Central Station Alarm Association, A Practical Guide to Fire Alarm Systems. New
York, NY July 2011
[8] Chitesh Dubey, Yogesh Tiwari: To design solar (photovoltaic) - Wind hybrid power generation
system. ME Scholar, Department of Electrical Engg, SSCET Bhilai, India
[9] Jonathan A. Enokela1, Isaiah I. Tsavwua2, Simon A. Onyilo3, The Implementation of a Control
Circuit for a Microcontroller Based Automated Irrigation System
[10] S. Sheik Mohammed a, D. Devaraj, Design, Simulation and Analysis of Microcontroller based
DC-DC Boost Converter using Proteus Design Suite
8. Appendix
float temperature;
char temper[11];
void Read_temperature(void)
{ temperature=ADC_Read(0);
temperature=temperature*5/1023;
temperature=temperature*100;}
void data_converstion(void)
{inttostr(temperature,temper);}
void display(void)
{Lcd_Out(1, 1, "T=");
Lcd_Out(1, 3, Ltrim(temper));
Lcd_Chr_Cp(0xdf);
Lcd_Chr_Cp('C');
Lcd_Chr_Cp(',');}
void main() {
ADC_Init();
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_cmd(_LCD_CURSOR_OFF);
lcd_out(1,1,"SYSTEM OVERVIEW");
delay_ms(1000);
Lcd_Cmd(_LCD_CLEAR);
{ Read_temperature();
data_converstion();
display();
Lcd_Out(2, 1, "M=");
Lcd_Out(1, 8, "Tn=");
Lcd_Out(2, 6, "FS=");
Lcd_Cmd(_LCD_CURSOR_OFF);
if(PORTD.RD0==1&&PORTD.RD1==1)
{PORTC.RC7=1;
PORTB.RB6=1;
Lcd_Out(2, 3, "ON,");
delay_ms(5000);}
else if(PORTD.RD0==0&&PORTD.RD1==1)
{PORTC.RC7=1;
PORTB.RB6=1;
Lcd_Out(2, 3, "ON,");
delay_ms(5000);}
else if(PORTD.RD0==1&&PORTD.RD1==0)
delay_ms(1000);}
else
delay_ms(5000);}
if(temperature>50&&PORTD.RD2==0)
{PORTC.RC4=1;
PORTC.RC7=1;
PORTB.RB6=1;
PORTC.RC6=1;
Lcd_Out(2, 3, "ON,");
delay_ms(5000);}
else if(temperature>50&&PORTD.RD2==1)
{PORTC.RC4=1;
PORTC.RC7=0;
PORTB.RB6=0;
PORTC.RC6=0;
Lcd_Out(2, 3, "OF,");
delay_ms(1000);
Lcd_cmd(_LCD_CURSOR_OFF);}
else if(temperature<50&&PORTD.RD2==0)
{PORTC.RC4=1;
PORTC.RC7=0;
PORTB.RB6=0;
PORTC.RC6=0;
Lcd_Out(2, 3, "OF,");
delay_ms(1000);
Lcd_cmd(_LCD_CURSOR_OFF);}
else
{PORTC.RC4=0;
PORTC.RC7=0;
PORTB.RB6=0;
PORTC.RC6=0;
Lcd_Out(2, 3, "OF,");
delay_ms(1000);
Lcd_cmd(_LCD_CURSOR_OFF);}