Introduction: Gas Detection System With Arduino

About: I'm just a kid with a passion for robotics

This is an example of a GAS DETECTION SYSTEM using Arduino

Supplies

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

Step 1: Connect the Sensor to the Board

Attach the sensor accordingly:


VCC to Vin

GND to Ground

A0 to A0

Step 2: Connect the I2c Lcd Module to the Board

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


Step 3: Connecting the Buzzer

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

Step 4: Uploading the Code

Upload this code into your Arduino board.


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

Step 5: 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

Step 6: 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