SlideShare a Scribd company logo
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2066
Design and Implementation of Automatic Fire-Fighting for
Building using Peripheral Interface Controller
Tin Tin Ohn1, May Thet Htar1, Pyae Phyo Swe2
1Faculty of Electronic Engineering, University of Technology, Yatanarpon Cyber City, Myanmar
2Department of Electronic Engineering, Technological University, Lashio, Myanmar
How to cite this paper: Tin Tin Ohn | May
Thet Htar | Pyae Phyo Swe "Design and
Implementation of Automatic Fire-
Fighting for Building using Peripheral
Interface Controller" Published in
International
Journal of Trend in
Scientific Research
and Development
(ijtsrd), ISSN: 2456-
6470, Volume-3 |
Issue-5, August
2019, pp.2066-
2069,
https://doi.org/10.31142/ijtsrd27872
Copyright © 2019 by author(s) and
International Journal ofTrend inScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
Commons Attribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0)
ABSTRACT
In this project, we have designed and implemented automatic fire-fighting for
building using PIC. It intended to prevent accidents and emergency cases of
fire. It consists of gas sensor for detecting the fire, temperature sensor for
sensing the environmental temperature, relay driver for pump control, alarm
system and fire extinguishing system. When the temperature sensor detects a
predefined temperature, the LED and buzzer will be turn on. When the smoke
detector (gas sensor) senses a certain amount of smoke, the LED and buzzer
will turn on. If both the temperature and smoke reach a predefined level, the
alarm will ring and the extinguishing system will also activate, too. The
advantage of this project is to reduce the amount of damages done by fire.The
weak point of this project is the power supply using AC, so it will not work
when electricity is out.
KEYWORDS: Arduino UNO, Gas Sensor, Temperature sensor, Alarm system, Fire
extinguishing system, Peripheral Interface Controller
I. INTRODUCTION
Nowadays, fire can take place in any house, school, or any place. It is mostly
caused by electric short circuits, or combustible gases that we use at home for
heating. We need a safe fire-fightingsystemtodetectand extinguishfiresbefore
they spread.
This circuit is mainly consists of PIC (16F887), gas sensor
(MQ2), temperature sensor (18B20), buzzer, LED and
solenoid. As soon as the circuit has been connected to the
power supply, all components start working. When the
temperature sensor senses the temperature over 40 Degree
Celsius, LED and buzzer will turn ON.Ifthegas sensorsenses
the smoke including 65% in air, it will produce low level.
Then, smoke LED and buzzer will turn ON. If the both
situations work at the same time, the solenoid will turn ON.
The circuit does not work when the power is off. Both
hardware and software to bring about the entire project are
presented in this paper.
II. Methodology
The system is composed of two part,softwareandhardware.
In the hardware, sensor circuitry is to be designed to
develop system awareness and capability to detect over-
temperature, smoke. A microcontroller (16F887) is used to
process the various sensor signals and control the system
actuators accordingly. Fire-fighting pump will be interfaced
to the microcontroller through a relay. A software code is
developed to control the overall system functions.
III. System Layout
The block diagram of the hardware implementation of the
entire system is shown in figure (1).
Fig.1: Overall Block Diagram
A. Gas Sensor
Sensitive material of MQ-2 gas sensor is SnO2, which with
lower conductivity in clean air. The MQ-2 gas sensor is
sensitive to LPG, i-butane, propane, methane, alcohol,
Hydrogen and smoke. It is used to detect smoke, typically as
an indicator of fire. It is low cost and suitable for different
application. The applications of the MQ2 are Domestic gas
leakage detector, Industrial Combustible gas detector and
Portable gas detector.
IJTSRD27872
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2067
Fig2: MQ-2 gas sensor
B. Temperature Sensor
The core functionality of the DS18B20 is its direct-to-digital
temperature sensor. The DS18B20 has an operating
temperature range of -55°C to +125°C. The resolution of the
temperature sensor is user-configurable to 9, 10, 11, or 12
bits, corresponding to increments of 0.5°C, 0.25°C, 0.125°C,
and 0.0625°C, respectively. The default resolutionatpower-
up is 12-bit. The DS18B20 powers up in a low-power idle
state. To initiate a temperature measurement and A-to-D
conversion, the master must issue a Convert T [44h]
command. If the DS18B20 is powered by an external supply,
the master can issue “read time slots” after the Convert T
command and the DS18B20 will respond by transmitting 0
while the temperature conversion is in progress and1when
the conversion is done.
Fig.3: Temperature sensor (18B20)
C. Peripheral Interface Controller (PIC)
PIC 16F887 is one of the latest products from microchip and
it has 40 pins. It has 35 pins I/O, 2 pins Ground, 2 pins
Supply, 1 pin Input. Operation frequency is 0-20M Hz. The
software selectable frequency ranges from 8M Hz to 31k Hz.
This microcontroller has three types of memory ROM, RAM
and EEPROM. All of them will be separately discussed that
each has specific functions, features and organization. ROM
(read only memory) memory is used to permanently save
the program being executed. PIC16F887 has 8kb ROM (in
total of 8192 location). Since this ROM is made with FLASH
Technology, its contents can be changed by providing a
special programming voltage (13V). Similar to program
memory, the contents of the EEPROM canbechangedduring
operation of the microcontroller. That is why this memory
(256 locations) is a perfect one for permanently saving
results created and used during the operation.RAMmemory
is that third and most complex part of microcontroller
memory. In this case, it consists of two parts: general
purpose registers and special function registers (SFR).
Master synchronous serial port (MSSP)supports SPI and I2C
mode.
Fig.4: PIC (16F887)
D. Alarm System
Alarm system is designed by buzzer and LED in fig:5. A
buzzer is an audio signalling device. The device is an alarm
that to know accidents and emergencycaseoffireforpeople.
In output, RB7 of PIC is connected resistor (1k) and
transistor (C945) in front of the buzzer. Transistor (C945)is
used as a switch for buzzer on-off. The output current of PIC
is 1A although the receive current of buzzer is 20mA.
Resistor (1k) is used between transistor of base and PIC
because of reduced the current gain. When C945 is turned
on, collector voltage of C945 is 0.7V. Emitter of C945 is
ground. If C945 will turn on, buzzer will ring.
LEDs are very small light bulbs that fit into an electrical
circuit. This is a very basic 5mm LED with a red lens. It has a
typical forward voltage of 2V and a rated forward current of
10mA. Working voltage of PICis 5V.ReceivingvoltageofLED
is 2V. So, resistor (330) is used in front of the LED.
V = IR
R = V/I
= (5-2) V /10mA
= 300Ω
Fig5: Overall circuit diagram of Alarm System
E. Fire Extinguishing System
Solenoid is used for the fire extinguishing system in fig:6. It
offers fast and safe switching, high reliability, long service
light, low control power and compact design. One pin of
solenoid is connected AC and next pin is connected NO of
relay. The solenoid follows by the relay and transistor
(C945). If transistor will saturate, relay will start to work.
When the current is flowing in the relay, themagnetic fieldis
occurred. So, the bar in the relay is ON. When the relay is
working, the common is attached to normally open (NO).So,
the solenoid receives AC signal and work. Wire is wrapped
around the nail in solenoid in which AC flows. This leads to
electromagnetic field which in turn causes it to stick
upwards. Consequently, bar is turned ON and water in
solenoid starts flowing. This solenoid sprays water. The
higher the value of the resistance, the lower the values of the
current.
Fig.6: Circuit Diagram of Fire Extinguishing System
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2068
Fig.7: Solenoid and its working
IV. Operation of the system
When giving AC 220V to the step down transformer, it
induced in the secondary coil. It can produce 12V. This
circuit is used AC 12V and since itpassedthroughthecentre-
tapped full-wave rectifier diode to get DC 12V. Filter
capacitor is used to get pure DC. Regulator LM 7805 is used
to get DC 5V (stable). The power supply DC 5V is connected
to the power supply pin of the PIC and the ground pin of the
power supply is connected to the GND pin of the PIC. When
the circuit is connected to the power supply, all components
start working. Smoke sensor is connected to theRE3pin(for
Room 1) RD7 pin (for Room 2) of the PIC, LED of the smoke
sensor is connected to the RB5 pin (for Room 1) RC5pin(for
Room 2) of the PIC. Temperature sensor is connected to the
RD1 pin (for Room 1) and RD2 pin (for Room 2), LED of the
temperature sensor is connectedtotheRB6pin(forRoom1)
and RC4 pin (for Room 2) of the PIC. RB7 pin of the PIC is
connected to the buzzer. Solenoid is connected to the RD0
pin (for Room 1) and RD3 pin (for Room 2) of the PIC.
When 18B20 receives command from the PIC, it starts
sensing. To initiate a temperature measurement and A-to-D
conversion, the master must issue a Convert T [44h]
command. Convertingtemperatureenters thePIC.According
to the program in the PIC, PORTB.B6 and PORTB.B7 are
equal to ‘0’ when the temperature is less than 40 Degree
Celsius. LED and buzzer will turn off. If enter temperature is
greater than 40 Degree Celsius, PORTB.B6 and PORTB.B7
will equal ‘1’. LED and buzzer will turn on shown in figure
(9).
If smoke sensor receives the supply voltage, LED will turn
on in the smoke sensor circuit. When the smoke detector
senses a critical amount of smoke, next LED willalsoturn on.
Then, PIC receives the signal. According to the program in
the PIC, PORTB.B5 is equal to ‘1’ and PORTB.B7is equal to‘0’
when the smoke sensor has not smoked.LEDandbuzzer will
turn off. If the smoke sensorsenses thesmokeincluding65%
in air, PORTB.B5 will equal ‘0’. PORTB.B7 is equal to ‘1’. LED
and buzzer will turn on shown in figure (10). Preset is
adjusted so that smoke sensor senses in critical amount of
smoke.
When both the temperature and smoke amount reach to a
critical level, the alarm will ring and the extinguishersystem
will also be activated too shown in figure (11 and 12). Either
smoke LED or temperature LED turns on that buzzer turn
ON and solenoid turn OFF.BothtemperatureLEDandsmoke
LED will not be activated, buzzer and solenoid turn OFF.
Fig.8: Program Flow Chart
V. SIMULATION RESULTS
Fig.9: Testing of Temperature sensor
Fig.10: Testing of Smoke Sensor
Fig.11: Testing for Room1
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2069
Fig.12: Testing for Room2
VI. Experimental Results
Fig.13: Testing of Overall Circuit
Fig.15: Testing of Room1
Fig.16: Testing of Room 2
Fig.17: Fire Extinguishing
VII. Conclusions
The fire-fighting using Peripheral Interface Controller (PIC)
are available at reasonable price in the market. In this
system, there is no complexity on design features.Firstofall,
requiring components in the circuit are collected. As soonas
the fire starts, people can know immediately. As the system
is installed inside the home or the building, we willfeelsafer.
If the number of houses which set up this system increased,
the incidence of fire outbreaks will be reduced. So, we can
prevent the residents and their properties of these homes
from fire damage. And, the weak point is the powersupply is
designed to use AC, it will not work when electricity is out.
Acknowledgement
The authors would like to thank everyone who provide the
support to implement this system.
REFERENCES
[1] http//: www.naffco.com
[2] http//:www.instructable.com
[3] http//:www.learn.mikroe.com
[4] http//:www.techtarget.com
[5] Chen Guoqin, Lu Souxiang. Research status of the
vessel fire security engineering [J] Fire-fighting
technology and productioninformation,2004(8)21-23
[6] Liu Jianghong Research progress of fine water mist
fire- fighting technology [J] Science aviso,2003(8)762-
767
[7] Zhang Junli, Qi Jianlin, Huang Jin Introduction of
electric fire and prevention [J] Coal mine organization,
2007 (5) 31-32

More Related Content

PDF
Automated Smoke Detected Exhaust Fan
PPTX
Zigbee based intelligent helemet for coal miners ppt
PDF
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
PDF
IRJET - Fire and Harmful Gas Detection Notification System
PDF
IoT Based Fire Alarm and Monitoring System
PDF
Investigation and Design of Helmet for Coal Miners
PDF
Investigation and Design of Helmet for Coal Miners
PPTX
Fire detection system using arduino
Automated Smoke Detected Exhaust Fan
Zigbee based intelligent helemet for coal miners ppt
IRJET- Implementation of Wireless Sensor in Coal Mine Safety System using Zigbee
IRJET - Fire and Harmful Gas Detection Notification System
IoT Based Fire Alarm and Monitoring System
Investigation and Design of Helmet for Coal Miners
Investigation and Design of Helmet for Coal Miners
Fire detection system using arduino

What's hot (20)

PDF
IRJET- Water Pump Controller using Arduino UNO
PDF
Daviteq Wireless Sensors & Actuators Ecosystem
DOC
Zigbee based intelligent helmet for coal miners
PPTX
Automatic room temperature control
PDF
Ijeee 33-36-surveillance system for coal mines based on wireless sensor network
PDF
IRJET- Home Surveillance Without using CCTV Camera
DOCX
Iot based fire department alerting system
PPTX
Smart safety jacket
PDF
Iot based fire alarm system
PPTX
fire detection system
PDF
Contactless digital tachometer using microcontroller
PPTX
Temperature based fan controller
PDF
Home Automation Using Arduino and ESP8266
PDF
AN INTEGRATED SOLUTION FOR BOTH MONITORING AND CONTROLLING FOR AUTOMIZATION...
PDF
IRJET - Solar based Smart Poultry Monitering System using IoT
PDF
37 en-1-especificaciones
PDF
IRJET- LPG Leakage Detection With Prevention and Automatic Cylinder Booking w...
PDF
Internet of Things Technology for Fire Monitoring System
PPTX
Gas & smoke detector
PPTX
Fire Fighting Robotic Vehicle
IRJET- Water Pump Controller using Arduino UNO
Daviteq Wireless Sensors & Actuators Ecosystem
Zigbee based intelligent helmet for coal miners
Automatic room temperature control
Ijeee 33-36-surveillance system for coal mines based on wireless sensor network
IRJET- Home Surveillance Without using CCTV Camera
Iot based fire department alerting system
Smart safety jacket
Iot based fire alarm system
fire detection system
Contactless digital tachometer using microcontroller
Temperature based fan controller
Home Automation Using Arduino and ESP8266
AN INTEGRATED SOLUTION FOR BOTH MONITORING AND CONTROLLING FOR AUTOMIZATION...
IRJET - Solar based Smart Poultry Monitering System using IoT
37 en-1-especificaciones
IRJET- LPG Leakage Detection With Prevention and Automatic Cylinder Booking w...
Internet of Things Technology for Fire Monitoring System
Gas & smoke detector
Fire Fighting Robotic Vehicle
Ad

Similar to Design and Implementation of Automatic Fire Fighting for Building using Peripheral Interface Controller (20)

PDF
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...
PDF
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
PDF
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
PDF
Automatic Room Lighting System
PPTX
WIRELESS FIRE ALARM & MONITOR ON LCD
PDF
IRJET- Items’ Filling System Prototype with Sorting System According to the C...
PDF
IRJET- Monitoring and Measurement of Solar Parameters using IoT
PDF
GSM based agriculture monitoring system
PDF
IRJET- Power Theft Detection and Monitoring using GSM Technology
PDF
IRJET- IoT based Modern Greenhouse with GSM Module using Arduino Platform
PDF
TRANSFORMER FAULT DETECTION AND MONITORING
PDF
IRJET - ATMEGA 328P based Smart Energy Meter Test Jig using PLX-DAX
PDF
IRJET- IoT based Industrial Automation
PDF
IRJET- Android based Home Automation System with Power Optimization Modes
PDF
Sms Based Gas Leakage Monitoring in Residential and Industrial Area
PDF
IRJET- Design and Development of IoT based Geiger Muller Counter
PDF
IRJET- Touch Dimmer Switch Circuit
PDF
Integrated Security System With Remot Controlling Of Appliances
PDF
IRJET - Expansion of Logic Gates using Trainer
PDF
IRJET -Arduino based Gas Leakage Detection for Living Security
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in Ther...
IRJET- Wireless Data Monitoring and Fault Identification by using IoT in ...
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
Automatic Room Lighting System
WIRELESS FIRE ALARM & MONITOR ON LCD
IRJET- Items’ Filling System Prototype with Sorting System According to the C...
IRJET- Monitoring and Measurement of Solar Parameters using IoT
GSM based agriculture monitoring system
IRJET- Power Theft Detection and Monitoring using GSM Technology
IRJET- IoT based Modern Greenhouse with GSM Module using Arduino Platform
TRANSFORMER FAULT DETECTION AND MONITORING
IRJET - ATMEGA 328P based Smart Energy Meter Test Jig using PLX-DAX
IRJET- IoT based Industrial Automation
IRJET- Android based Home Automation System with Power Optimization Modes
Sms Based Gas Leakage Monitoring in Residential and Industrial Area
IRJET- Design and Development of IoT based Geiger Muller Counter
IRJET- Touch Dimmer Switch Circuit
Integrated Security System With Remot Controlling Of Appliances
IRJET - Expansion of Logic Gates using Trainer
IRJET -Arduino based Gas Leakage Detection for Living Security
Ad

More from ijtsrd (20)

PDF
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
PDF
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
PDF
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
PDF
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
PDF
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
PDF
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
PDF
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
PDF
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
PDF
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
PDF
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
PDF
Automatic Accident Detection and Emergency Alert System using IoT
PDF
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
PDF
The Role of Media in Tribal Health and Educational Progress of Odisha
PDF
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
PDF
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
PDF
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
PDF
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Uterine Fibroids Homoeopathic Perspectives
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
Automatic Accident Detection and Emergency Alert System using IoT
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
The Role of Media in Tribal Health and Educational Progress of Odisha
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
Vitiligo Treated Homoeopathically A Case Report
Vitiligo Treated Homoeopathically A Case Report
Uterine Fibroids Homoeopathic Perspectives

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
master seminar digital applications in india
PPTX
GDM (1) (1).pptx small presentation for students
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Lesson notes of climatology university.
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
TR - Agricultural Crops Production NC III.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Renaissance Architecture: A Journey from Faith to Humanism
master seminar digital applications in india
GDM (1) (1).pptx small presentation for students
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
Sports Quiz easy sports quiz sports quiz
Lesson notes of climatology university.
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
TR - Agricultural Crops Production NC III.pdf

Design and Implementation of Automatic Fire Fighting for Building using Peripheral Interface Controller

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2066 Design and Implementation of Automatic Fire-Fighting for Building using Peripheral Interface Controller Tin Tin Ohn1, May Thet Htar1, Pyae Phyo Swe2 1Faculty of Electronic Engineering, University of Technology, Yatanarpon Cyber City, Myanmar 2Department of Electronic Engineering, Technological University, Lashio, Myanmar How to cite this paper: Tin Tin Ohn | May Thet Htar | Pyae Phyo Swe "Design and Implementation of Automatic Fire- Fighting for Building using Peripheral Interface Controller" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-3 | Issue-5, August 2019, pp.2066- 2069, https://doi.org/10.31142/ijtsrd27872 Copyright © 2019 by author(s) and International Journal ofTrend inScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0) ABSTRACT In this project, we have designed and implemented automatic fire-fighting for building using PIC. It intended to prevent accidents and emergency cases of fire. It consists of gas sensor for detecting the fire, temperature sensor for sensing the environmental temperature, relay driver for pump control, alarm system and fire extinguishing system. When the temperature sensor detects a predefined temperature, the LED and buzzer will be turn on. When the smoke detector (gas sensor) senses a certain amount of smoke, the LED and buzzer will turn on. If both the temperature and smoke reach a predefined level, the alarm will ring and the extinguishing system will also activate, too. The advantage of this project is to reduce the amount of damages done by fire.The weak point of this project is the power supply using AC, so it will not work when electricity is out. KEYWORDS: Arduino UNO, Gas Sensor, Temperature sensor, Alarm system, Fire extinguishing system, Peripheral Interface Controller I. INTRODUCTION Nowadays, fire can take place in any house, school, or any place. It is mostly caused by electric short circuits, or combustible gases that we use at home for heating. We need a safe fire-fightingsystemtodetectand extinguishfiresbefore they spread. This circuit is mainly consists of PIC (16F887), gas sensor (MQ2), temperature sensor (18B20), buzzer, LED and solenoid. As soon as the circuit has been connected to the power supply, all components start working. When the temperature sensor senses the temperature over 40 Degree Celsius, LED and buzzer will turn ON.Ifthegas sensorsenses the smoke including 65% in air, it will produce low level. Then, smoke LED and buzzer will turn ON. If the both situations work at the same time, the solenoid will turn ON. The circuit does not work when the power is off. Both hardware and software to bring about the entire project are presented in this paper. II. Methodology The system is composed of two part,softwareandhardware. In the hardware, sensor circuitry is to be designed to develop system awareness and capability to detect over- temperature, smoke. A microcontroller (16F887) is used to process the various sensor signals and control the system actuators accordingly. Fire-fighting pump will be interfaced to the microcontroller through a relay. A software code is developed to control the overall system functions. III. System Layout The block diagram of the hardware implementation of the entire system is shown in figure (1). Fig.1: Overall Block Diagram A. Gas Sensor Sensitive material of MQ-2 gas sensor is SnO2, which with lower conductivity in clean air. The MQ-2 gas sensor is sensitive to LPG, i-butane, propane, methane, alcohol, Hydrogen and smoke. It is used to detect smoke, typically as an indicator of fire. It is low cost and suitable for different application. The applications of the MQ2 are Domestic gas leakage detector, Industrial Combustible gas detector and Portable gas detector. IJTSRD27872
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2067 Fig2: MQ-2 gas sensor B. Temperature Sensor The core functionality of the DS18B20 is its direct-to-digital temperature sensor. The DS18B20 has an operating temperature range of -55°C to +125°C. The resolution of the temperature sensor is user-configurable to 9, 10, 11, or 12 bits, corresponding to increments of 0.5°C, 0.25°C, 0.125°C, and 0.0625°C, respectively. The default resolutionatpower- up is 12-bit. The DS18B20 powers up in a low-power idle state. To initiate a temperature measurement and A-to-D conversion, the master must issue a Convert T [44h] command. If the DS18B20 is powered by an external supply, the master can issue “read time slots” after the Convert T command and the DS18B20 will respond by transmitting 0 while the temperature conversion is in progress and1when the conversion is done. Fig.3: Temperature sensor (18B20) C. Peripheral Interface Controller (PIC) PIC 16F887 is one of the latest products from microchip and it has 40 pins. It has 35 pins I/O, 2 pins Ground, 2 pins Supply, 1 pin Input. Operation frequency is 0-20M Hz. The software selectable frequency ranges from 8M Hz to 31k Hz. This microcontroller has three types of memory ROM, RAM and EEPROM. All of them will be separately discussed that each has specific functions, features and organization. ROM (read only memory) memory is used to permanently save the program being executed. PIC16F887 has 8kb ROM (in total of 8192 location). Since this ROM is made with FLASH Technology, its contents can be changed by providing a special programming voltage (13V). Similar to program memory, the contents of the EEPROM canbechangedduring operation of the microcontroller. That is why this memory (256 locations) is a perfect one for permanently saving results created and used during the operation.RAMmemory is that third and most complex part of microcontroller memory. In this case, it consists of two parts: general purpose registers and special function registers (SFR). Master synchronous serial port (MSSP)supports SPI and I2C mode. Fig.4: PIC (16F887) D. Alarm System Alarm system is designed by buzzer and LED in fig:5. A buzzer is an audio signalling device. The device is an alarm that to know accidents and emergencycaseoffireforpeople. In output, RB7 of PIC is connected resistor (1k) and transistor (C945) in front of the buzzer. Transistor (C945)is used as a switch for buzzer on-off. The output current of PIC is 1A although the receive current of buzzer is 20mA. Resistor (1k) is used between transistor of base and PIC because of reduced the current gain. When C945 is turned on, collector voltage of C945 is 0.7V. Emitter of C945 is ground. If C945 will turn on, buzzer will ring. LEDs are very small light bulbs that fit into an electrical circuit. This is a very basic 5mm LED with a red lens. It has a typical forward voltage of 2V and a rated forward current of 10mA. Working voltage of PICis 5V.ReceivingvoltageofLED is 2V. So, resistor (330) is used in front of the LED. V = IR R = V/I = (5-2) V /10mA = 300Ω Fig5: Overall circuit diagram of Alarm System E. Fire Extinguishing System Solenoid is used for the fire extinguishing system in fig:6. It offers fast and safe switching, high reliability, long service light, low control power and compact design. One pin of solenoid is connected AC and next pin is connected NO of relay. The solenoid follows by the relay and transistor (C945). If transistor will saturate, relay will start to work. When the current is flowing in the relay, themagnetic fieldis occurred. So, the bar in the relay is ON. When the relay is working, the common is attached to normally open (NO).So, the solenoid receives AC signal and work. Wire is wrapped around the nail in solenoid in which AC flows. This leads to electromagnetic field which in turn causes it to stick upwards. Consequently, bar is turned ON and water in solenoid starts flowing. This solenoid sprays water. The higher the value of the resistance, the lower the values of the current. Fig.6: Circuit Diagram of Fire Extinguishing System
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2068 Fig.7: Solenoid and its working IV. Operation of the system When giving AC 220V to the step down transformer, it induced in the secondary coil. It can produce 12V. This circuit is used AC 12V and since itpassedthroughthecentre- tapped full-wave rectifier diode to get DC 12V. Filter capacitor is used to get pure DC. Regulator LM 7805 is used to get DC 5V (stable). The power supply DC 5V is connected to the power supply pin of the PIC and the ground pin of the power supply is connected to the GND pin of the PIC. When the circuit is connected to the power supply, all components start working. Smoke sensor is connected to theRE3pin(for Room 1) RD7 pin (for Room 2) of the PIC, LED of the smoke sensor is connected to the RB5 pin (for Room 1) RC5pin(for Room 2) of the PIC. Temperature sensor is connected to the RD1 pin (for Room 1) and RD2 pin (for Room 2), LED of the temperature sensor is connectedtotheRB6pin(forRoom1) and RC4 pin (for Room 2) of the PIC. RB7 pin of the PIC is connected to the buzzer. Solenoid is connected to the RD0 pin (for Room 1) and RD3 pin (for Room 2) of the PIC. When 18B20 receives command from the PIC, it starts sensing. To initiate a temperature measurement and A-to-D conversion, the master must issue a Convert T [44h] command. Convertingtemperatureenters thePIC.According to the program in the PIC, PORTB.B6 and PORTB.B7 are equal to ‘0’ when the temperature is less than 40 Degree Celsius. LED and buzzer will turn off. If enter temperature is greater than 40 Degree Celsius, PORTB.B6 and PORTB.B7 will equal ‘1’. LED and buzzer will turn on shown in figure (9). If smoke sensor receives the supply voltage, LED will turn on in the smoke sensor circuit. When the smoke detector senses a critical amount of smoke, next LED willalsoturn on. Then, PIC receives the signal. According to the program in the PIC, PORTB.B5 is equal to ‘1’ and PORTB.B7is equal to‘0’ when the smoke sensor has not smoked.LEDandbuzzer will turn off. If the smoke sensorsenses thesmokeincluding65% in air, PORTB.B5 will equal ‘0’. PORTB.B7 is equal to ‘1’. LED and buzzer will turn on shown in figure (10). Preset is adjusted so that smoke sensor senses in critical amount of smoke. When both the temperature and smoke amount reach to a critical level, the alarm will ring and the extinguishersystem will also be activated too shown in figure (11 and 12). Either smoke LED or temperature LED turns on that buzzer turn ON and solenoid turn OFF.BothtemperatureLEDandsmoke LED will not be activated, buzzer and solenoid turn OFF. Fig.8: Program Flow Chart V. SIMULATION RESULTS Fig.9: Testing of Temperature sensor Fig.10: Testing of Smoke Sensor Fig.11: Testing for Room1
  • 4. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27872 | Volume – 3 | Issue – 5 | July - August 2019 Page 2069 Fig.12: Testing for Room2 VI. Experimental Results Fig.13: Testing of Overall Circuit Fig.15: Testing of Room1 Fig.16: Testing of Room 2 Fig.17: Fire Extinguishing VII. Conclusions The fire-fighting using Peripheral Interface Controller (PIC) are available at reasonable price in the market. In this system, there is no complexity on design features.Firstofall, requiring components in the circuit are collected. As soonas the fire starts, people can know immediately. As the system is installed inside the home or the building, we willfeelsafer. If the number of houses which set up this system increased, the incidence of fire outbreaks will be reduced. So, we can prevent the residents and their properties of these homes from fire damage. And, the weak point is the powersupply is designed to use AC, it will not work when electricity is out. Acknowledgement The authors would like to thank everyone who provide the support to implement this system. REFERENCES [1] http//: www.naffco.com [2] http//:www.instructable.com [3] http//:www.learn.mikroe.com [4] http//:www.techtarget.com [5] Chen Guoqin, Lu Souxiang. Research status of the vessel fire security engineering [J] Fire-fighting technology and productioninformation,2004(8)21-23 [6] Liu Jianghong Research progress of fine water mist fire- fighting technology [J] Science aviso,2003(8)762- 767 [7] Zhang Junli, Qi Jianlin, Huang Jin Introduction of electric fire and prevention [J] Coal mine organization, 2007 (5) 31-32