Arduino Gas/smoke leakage detection and sms alert system programming

 

Gas/smoke leakage

Description:

Gas/smoke leakage –Using the MQ-2 gas smoke leakage sensorArduino  Uno and GSM  sim900A module,  this tutorial is based on the detection of gas smoke leakage or smoke detection. This project is used to detect gassmoke when message is sent to the owner once the gas/smoke leakage is detected. This can be used in kitchens, rooms, etc. to provide the best possible protection The Gsm sim900A and MQ-2 sensor interfacing with Arduino Uno or Mega is very simple.

I’ll show you need to make your own Gas/smoke leakage detection system and SMS alert system in this tutorial.

The message will automatically be sent when the smoke or gas is detected as this is an automatic system.


The Amazon Purchase links are given below:

Sim900A: https://amzn.to/2QaHuXb
solenoid valve: https://amzn.to/2sWftK0
smoke sensor MQ-2: https://amzn.to/2SBuNpW
Arduino Uno: https://amzn.to/39aq6ZT
Mega 2560: https://amzn.to/2SszMsI
lm7805 Voltage Regulator: https://amzn.to/2ERYoTJ
330-ohm resistors pack: https://amzn.to/2Qj1Igg
female DC power jack socket: https://amzn.to/377Pg9M
470uf capacitors: https://amzn.to/2MrN3xR
5×7 cm Vero board: https://amzn.to/37b7KWO
female headers: https://amzn.to/350w6RE
connection wires: https://amzn.to/2MvOJXd
Super Starter kit for Beginners: https://amzn.to/398dliF
Jumper Wires: https://amzn.to/2SrnBwo
Bread Board: https://amzn.to/2MxV5FM
12v Adaptor: https://amzn.to/2MuOlZk
PCB plate: https://amzn.to/2MuwNMB
Variable Supply: https://amzn.to/39d0KdP
Digital Multimeter: https://amzn.to/34WbVoa
Vero Board / stripboard: https://amzn.to/39nL9Zg
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2PVwexF
Solder wire: https://amzn.to/2QlOvTS
Wire Stripper: https://amzn.to/353tYJa
wirecutter: https://amzn.to/2tV2lFj
PCB small portable drill machine: https://amzn.to/2MvQqnx

DISCLAIMER:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!


GSM SIM900A Module:

Gas/smoke leakage

already clarified the SIM900A module in my previous tutorials.

Gas/smoke leakage MQ-2 Sensor:

Gas/smoke leakage

The MQ-2 sensor can detect a wide range of gasses including carbon monoxide, ethanol, ammonia, hydrogen, isobutene, propane, and smoke. The MQ-2 sensor module is equipped with 4 male headers to easily interface with the Arduino Uno or Mega using jumper wires from male to female.


Gas/smoke leakage

Pinouts:

As you can see The 4 male header pins are labeled with

A0…

 D0…

Gnd…

and Vcc…

The MQ-2’s analog output is pin A0. And A0 pin is connected to the arduino D0’s analog pin, which is the digital output in 5v or GND format. It also has a variable resistor that can be used to change the level of detection.

Connect the GND pin of the MQ-2 Sensor Module to the Arduino Uno or Mega ground.

The MQ-2 sensor module’s vcc pin is connected to the arduino uno 5v pin

Applications: 

These are used in family and business gas leak detection equipment and are suitable for LPG, propane, gasoline, ethanol, hydrogen and fire detection.


Gas/smoke leakage Circuit Diagram:

Gas/smoke leakage

This schematic is designed to be very simple in cadesoft eagle, the MQ-2 Sensor  Module and sim900A  gsm or Arduino Mega interfacing modules Sim900D.

As you know, my friends GSM sim900A module communicates with Arduino using Serial communication, so we need to define pins for the GSM module’s tx and Rx pins. Well, you also know that Arduino has pin number0 and pin number1 serial port.


You know, still say you can’t use the default serial port of Arduino to communicate with other devices, you can identify another serial port on any virtual pins. Now the question is whether we’re not going to use the default serial port of Arduino then how do we connect the gsm module? Well,  no worries at all, we can use the SoftwareSerial library to define multiple serial ports that I will explain in the programming.

As can be seen in the circuit diagram above the sim900A’s tx pin is connected to the Arduino’s pin7, the sim900A’s rx pin is connected to Arduino’s pin8 and GND is connected to Arduino’s GND. Sim900A is connected to power supply and the ideal voltage is 4.7 to 5v The MQ-2 sensor  module  VCC pin is connected to the Arduino  5v, the MQ-2 ground pin connected to the Arduino ground and the Arduino A1 pin is connected to the A0 pin.



Gas/smoke leakage Programming:

Watch Video Tutorial

Recommended For You

Fawad

About the Author: Fawad

My name is Shahzada Fawad and I am a Programmer. Currently, I am running my own YouTube channel "Expertstech", and managing this Website. My Hobbies are * Watching Movies * Music * Photography * Travelling * gaming and so on...

Leave a Reply

%d bloggers like this: