Smoke Detector System Using MQ2 Gas Sensor and Arduino

Share This

Hello friends! Welcome back to ElectroDuino. This blog is based on Smoke Detector System Using MQ2 Gas Sensor and Arduino. Here we will discuss Introduction to Smoke Detector System, Project Concept, Block Diagram, Components Required, Circuit Diagram, Working Principle, and Arduino Code.

Introduction

The fire accidents are the biggest problems, that’s increased day to day, which is damaged our property and puts man’s life in danger. So, Smoke Detector Systems are very useful in detecting smoke or fire in buildings, offices, banks, schools, and other Personal Properties. Which can save human life and save properties from fire accidents. In this project, we will make a low-cost Smoke Detector System Using MQ2 Gas Sensor and Arduino. This system or device continuously to measure smoke levels around it and show this level value on a display in the PPM unit. Also, it warns us by generating sound and turn on a light, when the smoke level is increased.

Project Concept

The key components of the Smoke Detector System are MQ2, Arduino board, OLED Display, LEDs, and Buzzer. The MQ2 is one type of gas sensor, which can sense Smoke as well as LPG, Alcohol, and Methane. Arduino board is the main brain of this system that controls the whole system. The MQ2 sensor continuously measures Smoke level in the air and sends data to the Arduino board. Then Arduino prints the Smoke level value on the OLED display in the PPM unit. The LEDs and Buzzer used as indicators, it indicates the air fresh or smoke presence in the air.

Block Diagram of Smoke Detector System Using MQ2 Gas Sensor and Arduino

Smoke Detector System Using Arduino and MQ2 Smoke Sensor Block Diagram
Smoke Detector System Using Arduino and MQ2 Smoke Sensor Block Diagram

Components Required 

Components NameQuantity
Arduino Nano1
MQ135 Gas Sensor1
0.96 inch I2C OLED display1
Green LED1
Red LED1
Buzzer1
220ohm  Resistor2
Slide Switch1
9V Battery with Battery connector1
PCB Zero board1
Connecting wiresAs required in the circuit diagram

 

Tools Required

Tools NameQuantity
Soldering Iron1
Soldering wire1
Soldering flux1
Soldering stand1
Multimeter1
Desoldering pump1
Wirecutter1

Required Library

We need to add 2 libraries in Arduino IDE software. These are:

  • Download the Adafruit_GFX.h library here: CLICK
  • Download the Adafruit_SSD1306.h library here: CLICK

Circuit Diagram of Smoke Detector System Using MQ2 Gas Sensor and Arduino

Smoke Detector System Using Arduino and MQ2 Gas Sensor Circuit Diagram
Smoke Detector System Using Arduino and MQ2 Gas Sensor Circuit Diagram

Working Principle of Smoke Detector System Using MQ2 Gas Sensor and Arduino

When we turn on the system’s power supply, at the same time the MQ2 gas sensor starts to sense the smoke level in the air and it gives the output value to the Arduino. Then the Arduino read this output value and print it on the OLED display in the PPM unit. When the sensor sense smoke in the air, its output value goes high.

When the sensor is in the fresh air, its output value is under 400 ppm. Then the Arduino indicates it by turn on the green LED and the “Fresh Air” message is print on the Display.

When the sensor sense smoke in the air, its output value will exceed 400 PPM. Then the Arduino indicates it by turn on the Red LED and Buzzer, and the “Smoke/ Fire” message is print on the Display.

Arduino Code

 

Share This

Leave a Reply

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