NodeMCU Based Fire Detector - Formatted Paper
NodeMCU Based Fire Detector - Formatted Paper
Volume 2 Issue 3
*Corresponding Author
E-mail Id:[email protected]
ABSTRACT
About 7% of all house fires start in a bedroom. It leads to damage of all plush objects and
also loss of life. To avoid that or to minimize the damage caused by fire outbreak an IOT
technology is used to control such a kind of risk. NodeMcu based IoT fire detector is the
solution for this kind of issue. In this model, we have fitted a fire indicator by making
practical and effective use of NodeMCU which is connected with a smoke sensor and buzzer.
The smoke sensor detects if there’s any smoke produced because of ingesting any type of gas
or fire. Buzzer interfaced with it makes an alert sound. A fire warning can also be activated
by a little smoke from the flame of burning candle or fire lamps or a burning cigarette which
may be used in any family. The buzzer gets stopped itself at whatever point the temperatures
falls to comfortable indoor temperature and the amount of smoke decreases. NodeMCU fire
finder serves best because at whatever point it indicates fire or smoke, then it immediately
alarms the admin or user about the fire through the Thingspeak module. At whatever point a
fire happens, the user gets the alert notification through smartphone.
market its systems and components fire department and the nearby hospitals if
associated with it is becoming more any sudden appearance of fire has been
popular and that includes the (wireless occurred. By this we get to know about the
sensor network) which is used for security situation happening at the location clearly
purposes and in this case it is used for and before it gets very late, we tend to
protection against fire outbreak. Wireless avoid the consequences and damages in
sensor network here, does its job by some cases where the fire outburst is
monitoring the surrounding conditions and observed after a long time from its
has achieved a big amount of attention explosion. The proposed system includes
now-a-days and it is also very well easy and simple architecture with all basic
established. We have used a NodeMCU, and cost effective equipment in which the
for which we get an inbuilt Wi-Fi and for Wi-Fi is inbuilt in the NodeMCU only and
simulation we have used Arduino as the then it transfers data into the user’s mobile
NodeMCU was not available in the phone through ThingSpeak.
TinkerCad software for implementation.
REQUIRED COMPONENTS
A wireless sensor network is formed from Arduino Uno board
proper spaced and positioned nodes Embedded system: NodeMCU
provided with a sensing device to check Smoke Sensor(MQ2)
and to measure attributes of the physical Connecting wires
environment at different locations. Each of Red LED
these nodes consists of a microcontroller Power supply
(NodeMCU) connected to smoke detector Buzzer
sensors that continuously sense the 4k-ohm Resistor
surrounding environment to detect the Breadboard
presence of fire. These nodes generate
their own WiFi network. At the stage when Arduino Uno: The Arduino is a
fire is detected by this node, it sends a microcontroller-based open source
signal to a center node that is reminded to electronic prototyping board which can be
send the SMS to the fire-fighter office and programmed with an easy-to-use IOT
the user, and then it informs the user and Library Arduino IDE. Arduino consists of
alerts the house by processing a local both a physical programmable circuit
buzzer, when it is switched on. The buzzer board and a piece of software, or IDE. The
keeps going on till the degree of main components of Arduino UNO board
temperature is high. It stops buzzing on its are: 1. USB connector, 2. Power Port, 3.
own when the temperature falls to ordinary Microcontroller, 4. Analog input pins, 5.
value and smoke amount decreases. Digital pins, 6. Reset switch 7. Crystal
oscillator 8. USB interface chip, 9. Tx and
This system is very useful whenever the Rx LEDs. The board operates at a voltage
user is not in the proximity of the affected of 5 volts, but it can withstand till a
area. Sometimes it takes so much time for maximum voltage of 20 volts. The
the fire fighter officers to reach where fire microcontroller used on the UNO board is
outburst has taken place and start their Atmega328P by Atmel. It has 6 analog
work on eliminating the fire. Thus, this input pins, named as “Analog 0 to 5”. The
model and buzzer will contribute as an quartz oscillator ticks 16 million times a
early alarm system which will send an second. On each tick, the microcontroller
email confirmation to our mobile phones, performs one operation.
Fig.4:- ThingSpeak
Fig.2:-Wi-Fi based NodeMCU
HARDWARE DESIGN
Smoke Sensor (MQ2): MQ2 gas sensor is The block diagram of the paper is quite
an electronic sensor which is used for simple which has a few basic components
sensing and testing the presence of any but it is quite efficient in producing the
poisonous, inflammable or dangerous result as required.
gases in the air or surroundings such as
LPG, chlorine, methane, nitrogen dioxide,
FLOWCHART
When smoke detector detects smoke in the room it sends
current smoke value to the NodeMCU.
PROPOSED SYSTEM
The above proposed system requires no to the user. Using this product will help
manpower as it is completely automated. these people as they will be informed
Arduino is used for controlling the whole quickly about the incident and also to the
process. LED is connected to analog pin1 nearest fire department will be notified in
and smoke sensor is connected to analog an effective way. It is low cost and
input pin0. A resistor is connected to installation is also easy.
sensor to calculate value. The smoke
sensor senses the data and if received The system can become more efficient and
values is above the threshold value the useful if a relay motor is set up with the
LED gets ON. If smoke is detected then camera for taking the picture of the
buzzer gets ON. The NodeMCU collects affected place in whatever angle the fire is
the readings from the sensor, and detected and to also keep an eye if any
differentiate them with the threshold value. unknown person is found at the scene. This
If the figures shown by the sensor is about system can also be outfitted with water
to reach the limit, the Arduino/NodeMCU sprinklers which will be valuable for
performs necessary actions. It thus sends controlling small amount of fires. It can
all the database to ThingSpeak via cloud also be improved by adding some more
system. It sends a warning SMS to the sensors. Thus, this model can be installed
user’s mobile phone to inform him about by single-family residences so they are
the situation, it can be also be used to send able to activate it from convenient
a notification to the fire stations and locations themselves, and it must alert
hospitals in case of any fire outbreak. The residents in all portions of the house. We
software used for writing programs is hope that this system helps to reduce loss
Arduino IDE an open source software that of life and property at a remarkable point.
can be embedded onto the board. In this
code, which is being written in C++ REFERENCES
language we are having two main 1. Bandarkar, M., Jadhav, S., Nair, A.,
functions void setup() & void loop(). The Chaugule, A., Kotak., V.(2o19).IOT
code helps us to give the desired output Based system for forest fire
during simulation. detection. ISJRD,6(12).403-405
2. Basu, M. T., Karthik, R., Mahitha, J.,
CONCLUSION & Reddy, V. L. (2018). IoT based
The main aim was to develop an automatic forest fire detection
fire alarm system to safeguard the user and system. International Journal of
their surroundings and to provide an early Engineering & Technology, 7(2.7),
alarm system to avoid serious damaged 124-126..
due to such type of incidents. 3. Gosrani, S., Jadhav, A., Lekhak, K., &
Chheda, D. Fire Detection,
Our proposed system was capable of Monitoring and Alerting System based
achieving its main goals which were on IoT.
mainly building an IoT-based fire alarm 4. Kulkarni, S., Peasanna, T., (2019). An
system. It is capable of detecting the IoT based Fire Detection Precaution &
presence of fire, communicating with the Monitoring System. IJERT.
concerned parties by calling them when a 5. Imteaj, A., Rahman, T., Hossain, M.
fire is detected. K., Alam, M. S., & Rahat, S. A.
(2017, February). An IoT based fire
This model constantly monitors the fire alarming and authentication system
signal and sends warning alert to the user. for workhouse using Raspberry Pi 3.
Receiving and responding is done via SMS In 2017 International conference on