Iasonas Christoulakis
Published © GPL3+

Fire Notification ΙοΤ System with Blynk

We will learn how to make a fire alarm system using NodeMCUESP8266. This IoT based project detects the nearby flame & informs us.

IntermediateFull instructions provided7 hours6,712
Fire Notification ΙοΤ System with Blynk

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
Gravity: Analog Flame Sensor For Arduino
DFRobot Gravity: Analog Flame Sensor For Arduino
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk
Fritzing

Story

Read more

Schematics

Schematic of Fire Alarm System

Results

How our project look likes !

Code

CODE FOR FIRE ALARM SYSTEM

C/C++
Follow the code below .
Copy and paste it to avoid mistakes!
//Blynk Fire Alarm Notification

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h> 
BlynkTimer timer;
char auth[] = "m0ZDt4tpS5PXLWa3VMCQ-ghytredsdg"; //Auth code sent via Email
char ssid[] = "none "; //Wifi name
char pass[] = "123456789"; //Wifi Password
int flag=0;
void notifyOnFire()
{
int isButtonPressed = digitalRead(D1); // falme sensor connected D1 pin
if (isButtonPressed==1 && flag==0) 
{
Serial.println("Fire DETECTED");
Blynk.notify("Alert : Fire detected");
flag=1;
}
else if (isButtonPressed==0)
{
flag=0;
}
}
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(D1,INPUT_PULLUP);
timer.setInterval(1000L,notifyOnFire); 
}
void loop()
{
Blynk.run();
timer.run();
}

Credits

Iasonas Christoulakis

Iasonas Christoulakis

9 projects • 31 followers
Biomedical Engineer MedispLab Instructor Former General Manager at IEEE NTUA Student Branch

Comments