Fire & Gas Detector System With Protection Using Arduino

by Technoesolution2020 in Circuits > Arduino

4735 Views, 4 Favorites, 0 Comments

Fire & Gas Detector System With Protection Using Arduino

IMG_20210320_161609.jpg

Hello, friends Welcome back to " Techno-E-Solution" In this article, I'll show you 'How to make Fire & gas detector system with protection using Arduino. Nowadays there are many accidents occur in industrial areas as well as in domestic areas due to flammable gasses it causes hazardous fire accidents. To avoid this type of accident we need a system that detects the leaked flammable gases & provides protection against the theme. That's why in this article we are going to build this system which detects fire & gas and also gave protection against them. So without wasting any time let's make it.

Wait | Wait | Wait

If you did not subscribe to our youtube channel yet, Do subscribe to our youtube channel for interesting projects.

Follow us on:-

| YOUTUBE | INSTAGRAM | FACEBOOK | INSTRUCTABLES | DAILYMOTION | HACKSTER |

Watch Complete Video Tutorial:-


Announcement:-

I create my personal website where I write a different article on Electrical & Electronics projects with complete details, If are interested in electronics you can visit my website it's free to everyone. So get free knowledge of Electrical & Electronics Concept.

Visit my website:- TECHNO-E-SOLUTION

Material Required

10-14-2014-5-54-33-PM-e1604145229274.png

Sensors Used

MQ2 GAs Sensor.jpeg
Flame Sensor.jpeg

MQ-2 Gas Sensor

The MQ-2 Gas sensor can detect or measure gasses like LPG, Alcohol, Propane, Hydrogen, CO, and even methane. The module version of this sensor comes with a Digital Pin which makes this sensor operate even without a microcontroller and that comes in handy when you are only trying to detect one particular gas. When it comes to measuring the gas in ppm the analog pin has to be used, the analog pin also TTL driven and works on 5V and hence can be used with the most common microcontrollers.
So if you are looking for a sensor to detect or measure gasses like LPG, Alcohol, Propane, Hydrogen, CO, and even methane with or without a microcontroller then this sensor might be the right choice for you.

Features:-

  • Operating Voltage:- +5V DC
  • It detects:- LPG, Alcohol, Propane, Hydrogen, CO, and even methane
  • Analog output voltage:- 0V to 5V
  • Digital Output Voltage:- 0V or 5V (TTL Logic)

Flame Sensor

A flame sensor is one kind of detector which is mainly designed for detecting as well as responding to the occurrence of a fire or flame. The flame detection response can depend on its fitting. It includes an alarm system, a natural gas line, propane & a fire suppression system. This sensor is used in industrial boilers. The main function of this is to give authentication whether the boiler is properly working or not. The response of these sensors is faster as well as more accurate compare with a heat/smoke detector because of its mechanism while detecting the flame.

Features:-

  • Operating Voltage:- 3.3V to +5V DC
  • It detects:- Fire
  • Sensitivity:- High

Circuit Diagram

Circuit Diagram.png
Block Diagram.png

Follow the circuit Diagram to make the connection.

Let's Make PCB

PCB.jpg
PCB Layout.png

If you want to avoid complicated Circuitry, Just make your DIY PCB using the toner transfer method. If you want to make PCB from a PCB manufacturer I also provide the Gerber file.

I provide the PCB top layer pdf, PCB layout print which is used for making PCB using the toner transfer method.

Follow the PCB top layer pdf file to place components in the correct manner.

To make PCB go through NextPCB

Click to Download Gerber file

Follow the following tutorial to make PCB using the toner transfer method:-

Arduino Code

arduino_logo_1200x630-01.png

Copy the following code & upload to the Arduino

/*
 * Hello friends welcome back to "Techno-E-Solution"
 * Here is the complete Arduino Code Just Upload to the arduino
 * Complete video tutorial :- https://youtu.be/Hfz3OumtENU
 */
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);

int GasLED = A1;  // LEDGAS = Gas LED
int Relay1 = 6;   // Exhaust Fan
int Relay2 = 5;   // Extinguisher System
int Buzzer = 4;
int MQ2Sensor = A0;  // sensor = MQ2 Sensor
int sensorValue = 0;

int FlameLED = A2;         // LEDFLAME = Flame LED
int FlameSensor = 2;     // isFlamePin = Flame Sensor
int Flame = HIGH;        // isFlame = Flame
//int REL = 11;

void setup() {
  pinMode(GasLED, OUTPUT);
  pinMode(Relay1, OUTPUT);
  pinMode(Relay2, OUTPUT );
  pinMode(Buzzer, OUTPUT );
  pinMode(MQ2Sensor, INPUT);

  pinMode(FlameLED, OUTPUT);
  pinMode(FlameSensor, INPUT);
  //pinMode(REL, OUTPUT);
  
  Serial.begin(9600);

  lcd.begin(16,2);
  delay (500);
    lcd.print("** SUBSTATION **");
    lcd.setCursor(0,1);
    lcd.print("...FIRE & GAS...");
  delay(2000);
    lcd.clear();
    lcd.print("DETECTOR SYSTEM");
    lcd.setCursor(0,1);
    lcd.print(" WITH PROTECTION");
  delay(2000);
    lcd.clear ();
}

void loop() {
  sensorValue = analogRead(MQ2Sensor);
  Serial.println(sensorValue); 
   if (sensorValue > 300) {
   
    digitalWrite(GasLED, HIGH);
    digitalWrite(Relay1, HIGH);
    digitalWrite(Buzzer, HIGH);
    lcd.clear ();
    lcd.setCursor (0,0);
    lcd.print("GAS DETECTED");
    lcd.setCursor (0,1);
    lcd.print("EXHAUST FAN ON");
    delay (2000);
    
  }
  else 
  {
    
    digitalWrite(GasLED, LOW);
    digitalWrite(Relay1, LOW);
    digitalWrite(Buzzer, LOW);
    lcd.clear ();
    lcd.setCursor (0,0);
    lcd.print ("SYSTEM IS STABLE");
  }
  delay (500);

  Flame = digitalRead(FlameSensor);
  if (Flame == LOW)
  {
    digitalWrite(FlameLED, HIGH);
    digitalWrite(Relay2, HIGH);
    digitalWrite (Buzzer, HIGH);
    lcd.clear ();
    lcd.setCursor (0,0);
    lcd.print ("FIRE DETECTED");
    lcd.setCursor (0,1);
    lcd.print ("EXTINGUISHER ON"); 
    delay (2000);
    
  }
  else
  {
    digitalWrite(FlameLED, LOW);
    digitalWrite(Relay2, LOW);
    digitalWrite (Buzzer, LOW);
    lcd.clear ();
    lcd.setCursor (0,0);
    lcd.print ("SYSTEM IS STABLE");
  }
  delay (500);
}<br>

Demo & Working

If you like this project subscribe to our youtube channel for a more interesting project.

For complete Article Visit Our official website "Techno-E-Solution"