Mini Gas Leakage Detection Device Using Arduino

by QIUKAILEI in Circuits > Arduino

61 Views, 0 Favorites, 0 Comments

Mini Gas Leakage Detection Device Using Arduino

6fe4bcefadd07daceadaeade24666f84.jpg

This project is a gas leakage detection device developed based on *How To Make Mini Gas Leakage Detection Device Using Arduino* from ROBO HUB.

Original link: https://www.instructables.com/How-to-Make-Mini-Gas-Leakage-Detection-Device-Usin/

This is a compact visual gas leakage detector. It uses an MQ2 gas sensor to detect gas concentration and displays the real-time gas percentage on an OLED screen.

Supplies

d02e9e41418db8a2ade20af8a7bcccbe.jpg
d9d9c47337c8a62b63b6b6bb89121741.jpg
b78fdacad17b2653abe8c1f0fae811b3.jpg

Arduino UNO R3

Gas Sensor(MQ2)

Jumper Cables

OLED Module

Arduino IDE and programing cable

3D Printer

PLA Filament

Solderless Breadboard

power supply (USB port)

Tinkercard Design and 3d Printing

aabc740b014b0ae535a4ceb8ff23f318.png
a69f1e1a34c33323eee2022da3306ed7.png
c63265eb6bd230c5e105c348043fab9a.png

print the base , the lid and the top frame with PLA filament via 3D printing.

You can download the STL files from the original creator for 3D printing.

Circuit and Program

屏幕截图 2026-06-16 002551.png

Starting with the OLED

module I will connect the Scl and Sda to the A5 and A4 pins to the uno board

The gnd and Vcc is connect to the ground and the 5v pins of the Uno

Gas sensor connections

It comes with 4 pins and we are using the 3 pins only

Gnd and the power is connected to the ground and the 5v pins of the Uno board(A breadboard is used here to route the GND and 5V pins of the UNO board)

The analog pin from the sensor A0 is connect to the A0 on the Uno board

I will be using jumper cables to solder the terminals and then connect these to uno board pins directly.

The other pin will be the ground and we will connect this to ground on the uno pin

You can find the program below from oringin creator

Assembling Components

After you make the connections test it before installing all of these inside this 3d printed case.

use the space provided on the frame side to glue this to the main frame.

While you work on this filament make sure you solder the wires well and place the led properly in the top frame slots because this will be a highlight that shows the leakage.

Then before closing the lid connect the board to power (i will use power bank) and check for oled display.

If the display reads some values you can assume that almost the circuit is fine if not check for the connections.


How to Use

屏幕截图 2026-06-16 003923.png

I will use the arduino programming cable and connect it to the power bank to power this project.In few minutes the gas sensor will be ready(it undergoes filament heating inside that detects the gas).After connecting to the power supply, the OLED display will show the gas concentration. Users can judge the risk of gas leakage based on the numbers displayed on the OLED screen.