OTHERS

Intelligent Fire Detection System

The Intelligent Fire Detection System is an advanced safety project designed to swiftly identify and alert users to potential fire hazards. Combining temperature and gas sensors, the Arduino-based system continuously monitors environmental conditions.

The project employs LED indicators, a buzzer, and NeoPixel LEDs to provide a comprehensive and immediate response to detected threats. The integration of NeoPixel LEDs introduces a dynamic visual element, enhancing user understanding of the severity of the situation.

Component List:

NameQuantityComponent
U11Arduino Uno R3
U21Temperature Sensor [TMP36]
D11Blue LED
D21Green LED
D31Orange LED
D41Red LED
R1
R3
R4
R5
4100 Ω Resistor
R211 kΩ Resistor
GAS2 /1Gas Sensor
PIEZO11Piezo
JEWEL11NeoPixel Jewel


The circuit features LEDs for distinct temperature and gas levels, controlled by an Arduino board connected to temperature and gas sensors.

NeoPixel LEDs display a wide color range, offering a clear visual representation of the threat level. A buzzer provides an audible alert, ensuring timely response to potential fire dangers.

Arduino Code:

#include <Adafruit_NeoPixel.h>
#define pin 3
#define NUMPIXELS 7
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, pin, NEO_GRB + NEO_KHZ800);
int led1 = 8;
int led2 = 4;
int led3 = 10;
int led4 = 11;
float temp_sensor = A0;
int gas_sensor = A1;
int pinzo = 7;
int sensorThreshold = 100;
float temp_reading;
float temp;
float temp_final;
void setup()
{
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(temp_sensor, INPUT);
pinMode(gas_sensor, INPUT);
pinMode(pinzo, OUTPUT);
Serial.begin(9600);
}
void loop()
{
int analog_sensor = analogRead(gas_sensor);
temp_reading = analogRead(temp_sensor);
temp = (temp_reading / 1023) * 5000;
temp_final = (temp - 500) / 10;
Serial.print("Temperature : ");
Serial.println(temp_final);
Serial.print("Sensor : ");
Serial.println(analog_sensor);
if (analog_sensor > sensorThreshold || temp_final > 59)
{
digitalWrite(led4, HIGH);
digitalWrite(led3, LOW);
digitalWrite(led2, LOW);
digitalWrite(led1, LOW);
tone(pinzo, 345, 255);
for (int i = 0; i < NUMPIXELS; i++)
{
pixels.setPixelColor(i, 255, 0, 0);
pixels.show();
delay(50);
pixels.setPixelColor(i, 212, 45, 45);
pixels.show();
}
}
else
{
digitalWrite(led4, LOW);
digitalWrite(led3, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led1, LOW);
}
if (temp_final < 0)
{
digitalWrite(led4, LOW);
digitalWrite(led3, LOW);
digitalWrite(led2, LOW);
digitalWrite(led1, HIGH);
for (int i = 0; i < NUMPIXELS; i++)
{
pixels.setPixelColor(i, 0, 0, 255);
pixels.show();
delay(50);
pixels.setPixelColor(i, 125, 96, 238);
pixels.show();
}
}
else if (temp_final > 0 && temp_final < 25)
{
digitalWrite(led4, LOW);
digitalWrite(led3, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led1, LOW);
for (int i = 0; i < NUMPIXELS; i++)
{
pixels.setPixelColor(i, 0, 255, 0);
pixels.show();
delay(50);
//pixels.setPixelColor(i,40,172,31);
// pixels.show();
}
}
else if (temp_final > 0 && temp_final < 59)
{
digitalWrite(led4, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led2, LOW);
digitalWrite(led1, LOW);
for (int i = 0; i < NUMPIXELS; i++)
{
pixels.setPixelColor(i, 255, 247, 0);
pixels.show();
delay(50);
}
}
}



This Intelligent Fire Detection System not only employs a thoughtfully designed circuit but also offers a multifaceted sensory experience for users.

The combination of visual and audible alerts ensures that potential fire incidents are addressed promptly, making it a valuable addition to home, office, or industrial safety measures. The project strikes a balance between sophistication and user-friendliness, contributing significantly to fire prevention and safety.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button