SlideShare a Scribd company logo
1 of 20
Fire Alarm System
IoT Based Fire Alarm System Using
NodeMCU ESP8266 and Blynk
OBJECTIVE
This project will send an alert whenever it detects
fire and smoke.
It has also connected with a buzzer and an LED which
will act as Audio and visual for indication for alert.
So lets quickly start building IoT based fire security
alarm system using NodeMcu.
Sr. no Required Components Quantity
1. ESP8266 NodeMCU 1
2. Flame Sensor 1
3. 5V Buzzer 1
4. LED Any color 2
5. Breadboard 1
6. Resistor 100Ω 2
7. Jumper cables As per required
8.
ESP8266 NodeMCU
NodeMcu
◦ ESP8266 NodeMCU is an open source IoT platform.
◦ It includes firmware which runs on the low cost Wi-Fi enabled ESP8266
Wi-Fi SoC from Espressif Systems, and hardware which is based on the
ESP-12 module.
◦ It has GPIO, SPI, I2C, ADC, PWM AND UART pins for communication and
controlling other peripherals attached to it.
◦ On board NodeMCU has CP2102 IC which provides USB to TTL
functionality.
◦ In this IoT Fire Alarm, we are using two GPIO pin to get the digital data
from the flame sensor and gas sensor.
Flame Sensor
FLAME SENSOR
 A Flame Sensor is a device that can be used to detect
presence of a fire source or any other bright light sources.
There are several ways to implement a Flame Sensor but the
module used in this project is an Infrared Radiation
Sensitive Sensor.
 The module uses a LM393 comparator chip to provide a
stable digital output signal. This comparator has a driving
ability of 15 mA. This flame detector sensor can be used in
different project including fire alarms and other fire
detecting devices or projects.
Buzzer 5V
Buzzer is a kind of voice device that converts audio model into
sound signal. It is mainly used to prompt or alarm
LED
A light-emitting diode (LED) is a semiconductor device that emits light
when an electric current flows through it.
Resistor
The resistor is a passive electrical component that creates
resistance in the flow of electric current
BreadBoard
A Breadboard is simply a board for prototyping or building
circuits on
Jumper Cables
Jumper cables are simply wires that have connector pins at each
end, allowing them to be used to connect two points to each
other without soldering.
procedure
• Step 1
Firstly, identify all of these components.
• Step 2
Secondly, connect these components in proper
ways as per circuit diagram given below so
that there should not any faults i.e. it would be
errorless there is no chance of errors.
CONECTIONS
Step 4
Now, let’s creates the program for
this project. It is as follows.
CODE
 #define LED1 D1
 #define LED2 D2
 #define Buzzer D3
 #define Sensor
 D0void setup()
 {// Serial.begin(9600);
 pinMode(LED1, OUTPUT);
 pinMode(LED2, OUTPUT);
 pinMode(Buzzer, OUTPUT);
 pinMode(Sensor, INPUT);
 (auth, ssid, pass); timer.setInterval(1000L, notifiaction);*/}/*BLYNK_WRITE(V0)
 {
 pinValue = param.asInt();}
 */
void loop() {
int sensor = digitalRead(Sensor);//
if (pinValue == 1)
{// Serial.println("System is ON");
if (sensor == 1) { digitalWrite(LED2, HIGH);
digitalWrite(LED1, LOW); digitalWrite(Buzzer,
LOW);
}
else if (sensor == 0) {//
Blynk.notify("WARNING! A fire was detected");
digitalWrite(LED2, LOW); digitalWrite(LED1,
HIGH); digitalWrite(Buzzer, HIGH); }// } else
if (pinValue == 0)
{// Serial.println("System is OFF"); }
Step 5
Now select board and port, Afterward, upload
this code to the NodeMcu board.
 Click on Tool then select Board NodeMcu 1.0 (ESP-12E
Module)
 Then click on ESP8266 Board(3.0.0)
 Then click on NodeMcu 1.0(ESP-12E Module)
 Now choose port “COM2” ,and then upload it.
Arduino IDE
Conclusion
A fire alarm is a device that detects the presence of fire
and atmospheric changes relating to smoke.
The fire alarm operates to alert people to evacuate a
location in which a fire or smoke accumulation is present.
When functioning properly, a fire alarm will sound to
notify people of an immediate fire emergency.
This distinct sound exists to allow the notification to be
heard The fire alarm constructed by this project work is
reliable at low cost.
THANK YOU

More Related Content

What's hot

Finger print based bank locker system
Finger print based bank locker systemFinger print based bank locker system
Finger print based bank locker systemEcway Technologies
 
fire detection system
fire detection systemfire detection system
fire detection systemShaik Suhail
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentationRija Fatima
 
Laser light security system
Laser light security systemLaser light security system
Laser light security systemMehenaz Sorna
 
Presentation knock door bell project by namit
Presentation knock door bell project by namitPresentation knock door bell project by namit
Presentation knock door bell project by namitNamit Sood
 
Anti bag snatching alarm
Anti bag snatching alarmAnti bag snatching alarm
Anti bag snatching alarmSaumya Tiwari
 
DHT11 & DHT22.pptx
DHT11 & DHT22.pptxDHT11 & DHT22.pptx
DHT11 & DHT22.pptxBinuKG1
 
automatic streetlight control using ldr ppt
automatic streetlight control using ldr pptautomatic streetlight control using ldr ppt
automatic streetlight control using ldr pptanand kumar maurya
 
Smart street lighting control system project PPT
Smart street lighting control system project PPT Smart street lighting control system project PPT
Smart street lighting control system project PPT PetchiMuthu26
 
Arduino based automatic temperature controlled fan speed regulator
Arduino based automatic temperature controlled fan speed regulatorArduino based automatic temperature controlled fan speed regulator
Arduino based automatic temperature controlled fan speed regulatorEdgefxkits & Solutions
 
Fire detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino UT-028
 
Security system using laser
Security system using laserSecurity system using laser
Security system using laserhrtomal
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemSaumya Tiwari
 
Laser security system
Laser security system Laser security system
Laser security system ajaygurumadu
 
Burglar alarm ppt
Burglar alarm pptBurglar alarm ppt
Burglar alarm pptAmena Islam
 
PATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMPATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMsathish sak
 

What's hot (20)

Smoke Detection System
Smoke Detection SystemSmoke Detection System
Smoke Detection System
 
Finger print based bank locker system
Finger print based bank locker systemFinger print based bank locker system
Finger print based bank locker system
 
fire detection system
fire detection systemfire detection system
fire detection system
 
Somke detector project presentation
Somke detector project presentationSomke detector project presentation
Somke detector project presentation
 
Laser Security System
Laser Security SystemLaser Security System
Laser Security System
 
Laser light security system
Laser light security systemLaser light security system
Laser light security system
 
Automatic Night Light
Automatic Night LightAutomatic Night Light
Automatic Night Light
 
Presentation knock door bell project by namit
Presentation knock door bell project by namitPresentation knock door bell project by namit
Presentation knock door bell project by namit
 
Anti bag snatching alarm
Anti bag snatching alarmAnti bag snatching alarm
Anti bag snatching alarm
 
DHT11 & DHT22.pptx
DHT11 & DHT22.pptxDHT11 & DHT22.pptx
DHT11 & DHT22.pptx
 
automatic streetlight control using ldr ppt
automatic streetlight control using ldr pptautomatic streetlight control using ldr ppt
automatic streetlight control using ldr ppt
 
Smart street lighting control system project PPT
Smart street lighting control system project PPT Smart street lighting control system project PPT
Smart street lighting control system project PPT
 
GSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEMGSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEM
 
Arduino based automatic temperature controlled fan speed regulator
Arduino based automatic temperature controlled fan speed regulatorArduino based automatic temperature controlled fan speed regulator
Arduino based automatic temperature controlled fan speed regulator
 
Fire detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino
 
Security system using laser
Security system using laserSecurity system using laser
Security system using laser
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring System
 
Laser security system
Laser security system Laser security system
Laser security system
 
Burglar alarm ppt
Burglar alarm pptBurglar alarm ppt
Burglar alarm ppt
 
PATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEMPATIENT HEALTH MONITORING SYSTEM
PATIENT HEALTH MONITORING SYSTEM
 

Similar to IoT Fire Alarm System Using NodeMCU ESP8266

IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorssaritasapkal
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labAnnamaria Lisotti
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalTony Olsson.
 
37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificacionesIVAN GAVILAN
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbookFelipe Belarmino
 
Arduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArpit Sharma
 
WIRELESS FIRE ALARM & MONITOR ON LCD
WIRELESS FIRE ALARM & MONITOR ON LCDWIRELESS FIRE ALARM & MONITOR ON LCD
WIRELESS FIRE ALARM & MONITOR ON LCD20285ThirupathiReddy
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorialsAnshu Pandey
 
IRJET - Zigbee based Street Light Control System
IRJET - Zigbee based Street Light Control SystemIRJET - Zigbee based Street Light Control System
IRJET - Zigbee based Street Light Control SystemIRJET Journal
 

Similar to IoT Fire Alarm System Using NodeMCU ESP8266 (20)

EESS.pptx
EESS.pptxEESS.pptx
EESS.pptx
 
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensorsIoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Physical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digitalPhysical prototyping lab2-analog_digital
Physical prototyping lab2-analog_digital
 
Arduino
ArduinoArduino
Arduino
 
37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificaciones
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
 
publish manual
publish manualpublish manual
publish manual
 
Arduino intro.pptx
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
 
UEE PPT.pptx
UEE PPT.pptxUEE PPT.pptx
UEE PPT.pptx
 
Arduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArduino Information by Arpit Sharma
Arduino Information by Arpit Sharma
 
WIRELESS FIRE ALARM & MONITOR ON LCD
WIRELESS FIRE ALARM & MONITOR ON LCDWIRELESS FIRE ALARM & MONITOR ON LCD
WIRELESS FIRE ALARM & MONITOR ON LCD
 
Arduino projects & tutorials
Arduino projects & tutorialsArduino projects & tutorials
Arduino projects & tutorials
 
IRJET - Zigbee based Street Light Control System
IRJET - Zigbee based Street Light Control SystemIRJET - Zigbee based Street Light Control System
IRJET - Zigbee based Street Light Control System
 
Lab2ppt
Lab2pptLab2ppt
Lab2ppt
 
Arduino programming
Arduino programmingArduino programming
Arduino programming
 
ir sensor.docx
ir sensor.docxir sensor.docx
ir sensor.docx
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 

Recently uploaded

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 

Recently uploaded (20)

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 

IoT Fire Alarm System Using NodeMCU ESP8266

  • 1. Fire Alarm System IoT Based Fire Alarm System Using NodeMCU ESP8266 and Blynk
  • 2. OBJECTIVE This project will send an alert whenever it detects fire and smoke. It has also connected with a buzzer and an LED which will act as Audio and visual for indication for alert. So lets quickly start building IoT based fire security alarm system using NodeMcu.
  • 3. Sr. no Required Components Quantity 1. ESP8266 NodeMCU 1 2. Flame Sensor 1 3. 5V Buzzer 1 4. LED Any color 2 5. Breadboard 1 6. Resistor 100Ω 2 7. Jumper cables As per required 8.
  • 5. NodeMcu ◦ ESP8266 NodeMCU is an open source IoT platform. ◦ It includes firmware which runs on the low cost Wi-Fi enabled ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. ◦ It has GPIO, SPI, I2C, ADC, PWM AND UART pins for communication and controlling other peripherals attached to it. ◦ On board NodeMCU has CP2102 IC which provides USB to TTL functionality. ◦ In this IoT Fire Alarm, we are using two GPIO pin to get the digital data from the flame sensor and gas sensor.
  • 7. FLAME SENSOR  A Flame Sensor is a device that can be used to detect presence of a fire source or any other bright light sources. There are several ways to implement a Flame Sensor but the module used in this project is an Infrared Radiation Sensitive Sensor.  The module uses a LM393 comparator chip to provide a stable digital output signal. This comparator has a driving ability of 15 mA. This flame detector sensor can be used in different project including fire alarms and other fire detecting devices or projects.
  • 8. Buzzer 5V Buzzer is a kind of voice device that converts audio model into sound signal. It is mainly used to prompt or alarm
  • 9. LED A light-emitting diode (LED) is a semiconductor device that emits light when an electric current flows through it.
  • 10. Resistor The resistor is a passive electrical component that creates resistance in the flow of electric current
  • 11. BreadBoard A Breadboard is simply a board for prototyping or building circuits on
  • 12. Jumper Cables Jumper cables are simply wires that have connector pins at each end, allowing them to be used to connect two points to each other without soldering.
  • 13. procedure • Step 1 Firstly, identify all of these components. • Step 2 Secondly, connect these components in proper ways as per circuit diagram given below so that there should not any faults i.e. it would be errorless there is no chance of errors.
  • 15. Step 4 Now, let’s creates the program for this project. It is as follows. CODE  #define LED1 D1  #define LED2 D2  #define Buzzer D3  #define Sensor  D0void setup()  {// Serial.begin(9600);  pinMode(LED1, OUTPUT);  pinMode(LED2, OUTPUT);  pinMode(Buzzer, OUTPUT);  pinMode(Sensor, INPUT);  (auth, ssid, pass); timer.setInterval(1000L, notifiaction);*/}/*BLYNK_WRITE(V0)  {  pinValue = param.asInt();}  */
  • 16. void loop() { int sensor = digitalRead(Sensor);// if (pinValue == 1) {// Serial.println("System is ON"); if (sensor == 1) { digitalWrite(LED2, HIGH); digitalWrite(LED1, LOW); digitalWrite(Buzzer, LOW); } else if (sensor == 0) {// Blynk.notify("WARNING! A fire was detected"); digitalWrite(LED2, LOW); digitalWrite(LED1, HIGH); digitalWrite(Buzzer, HIGH); }// } else if (pinValue == 0) {// Serial.println("System is OFF"); }
  • 17. Step 5 Now select board and port, Afterward, upload this code to the NodeMcu board.  Click on Tool then select Board NodeMcu 1.0 (ESP-12E Module)  Then click on ESP8266 Board(3.0.0)  Then click on NodeMcu 1.0(ESP-12E Module)  Now choose port “COM2” ,and then upload it.
  • 19. Conclusion A fire alarm is a device that detects the presence of fire and atmospheric changes relating to smoke. The fire alarm operates to alert people to evacuate a location in which a fire or smoke accumulation is present. When functioning properly, a fire alarm will sound to notify people of an immediate fire emergency. This distinct sound exists to allow the notification to be heard The fire alarm constructed by this project work is reliable at low cost.