Gas Detection System With Arduino

by hughalfy14 in Circuits > Arduino

230 Views, 0 Favorites, 0 Comments

Gas Detection System With Arduino

WhatsApp Image 2024-02-18 at 8.44.42 PM (1).jpeg
WhatsApp Image 2024-02-18 at 8.44.42 PM.jpeg
WhatsApp Image 2024-02-18 at 8.44.41 PM.jpeg

This is an example of a GAS DETECTION SYSTEM using Arduino

Supplies

Mq2.png
I2c Module.jpeg
Arduino-Uno.jpg
Wires.jpg

For this project, you'll need the MQ2 Gas Sensor, An lcd with the 12C Module, 1x Arduino UNO, and some jumper wires

Connect the Sensor to the Board

WhatsApp Image 2024-02-18 at 8.52.32 PM.jpeg

Attach the sensor accordingly:


VCC to Vin

GND to Ground

A0 to A0

Connect the I2c Lcd Module to the Board

WhatsApp Image 2024-02-18 at 9.07.29 PM.jpeg

Connect the I2c module according to this:

GND to Ground / G

VCC to 5 VOLT / 5V

SDA to A4 / SDA

SCL to A5 / SCL


You can get the I2c library from here:


https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library


Connecting the Buzzer

WhatsApp Image 2024-02-18 at 9.07.29 PM (1).jpeg
WhatsApp Image 2024-02-18 at 9.07.28 PM.jpeg

Connect the WHITE WIRE in the picture to D2 and the BLACK WIRE to GND / GROUND


The longer leg of the buzzer connects to DIGITAL PIN 2 and the shorter leg to GND / GROUND

Uploading the Code

Upload this code into your Arduino board.


Remember to install the I2c library from either GitHub or Arduino IDE itself

Example of How It Should Work

This is an example of how it should be working.

This invention is to alert people when there is gas around. Put it near you stove or kitchen to quickly detect any gas leak and when you hear a buzzer you'll know what to do

Thank You

Thank you for staying till the end of this tutorial. I hope this can help you with your daily life.

Have fun and Good luck

Until we meet again