Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

American International University- Bangladesh (AIUB) 

Department of Computer Science 


Advanced Operating System
Spring 2020-2021

Mentor: M. Arifur Rahman

Project Title: IOT based Fire alerting system.

Student Name Student Id


ASHRAFUR RAHAMAN
17-35211-2

JOBAIR HOSSAIN 17-34940-2


MANSIBA RAHMAN 17-34641-2
MD.SIFAT SAIF 18-37732-1
RAYHAN SADIK 17-35014-2
Project Idea
Fires are one of the most widespread cause of deaths by accident. Instant alerting to the fire
department is necessary to ensure immediate action. Every minute can save many lives in such
situations. So here we propose an IOT based automatic fire department alerting system that
instantly and automatically alerts the fire department and informs about the situation so that
immediate action can be taken. The system uses Fire sensor along with flame sensor to
efficiently detect fires and alert fire department over IOT. Then it reconfirms if it really is a fire
outbreak using temperature sensors in order to confirm of fire outbreak. The system now uses a
wifi connection to access IOT server and transmit data about this incident over internet.. The
system now displays the fire incident with alarm buzzer in the fire department over internet so
that the fire department personnel are alerted about the incident to take necessary action.

A detailed description of the IOT based Fire Alerting System Project:

IOT Based Fire Alerting System uses one Sensor, namely, Flame sensor (KY-026) ..

ESP8266 is a chip which is used for connecting micro-controllers to Wi-Fi network. ESP8266
will then the following data to the IOT website, where, authorized people can take appropriate
measure in order to curb the fire.

Device ID is the unique ID given to a device, which would help the personnel get information
related to the location, where the fire is detected.

The Pre-requisite for this IoT based fire alarming system is that the Wi-Fi module should be
connected to a Wi-Fi zone or a hotspot. This project is also implemented without the IOT
module. In place of the IOT module, we have used Blynk app, by which a notification is
triggered when the buzzer is turned ON.
Technical Specifications:

The components that are used in the IOT based Fire Alerting System using Flame Sensor project
are:

1.Breadboard

2.Flame sensor (KY-026)

3.Buzzer

4.Usb cable

5. Wi-Fi module ESP8266 

6.JUMPER WIRE

Here all the product links for Technical support: 


 
 
 
 
 Breadboard: 
https://www.daraz.com.bd/products/mb102-prototype-breadboard-
165x55-cm-830-holes-solderless-universal-prototype-for-test-
develop-diy-for-arduino-uno-r3-atmega-328p-i113716338-
s1030988235.html?
spm=a2a0e.searchlist.list.1.60a23773P402FE&search=1 
 
 Buzzer: 
https://www.daraz.com.bd/products/20x7-mm-buzzer-i122951405-
s1043049487.html?spm=a2a0e.searchlist.list.1.746c37b8KpgDII&search=1 
 
 Flame sensor (KY-026): 
https://www.daraz.com.bd/products/ky-026-flame-sensor-module-ir-sensor-
detector-for-temperature-detecting-for-arduino-i105908078-
s1020816171.html?
spm=a2a0e.searchlist.list.1.288c4d58oYWOdZ&search=1 
 
 Wi-Fi module ESP8266: 
         https://www.daraz.com.bd/products/nodemcu-lua-esp8266-wifi-
module-based-on-cp2102-board-i109648654-s1026288603.html?
spm=a2a0e.searchlist.list.1.662238fbGEmW59&search=1  
 

Implemented Code
//Blynk Fire Alarm Notification
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "6ced08cd273148a4a81162544bcc3b26"; //Auth code sent
via Email
char ssid[] = "Hacked"; //Wifi name
char pass[] = "0123456789"; //Wifi Password
int flag=0;
void notifyOnFire()
{
int isButtonPressed = digitalRead(D1);
if (isButtonPressed==1 && flag==0) {
Serial.println("Fire in the House");
Blynk.notify("Alert : Fire in the House");
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();
}

You might also like