How to Make Mini Gas Leakage Detection Device Using Arduino
by ROBO HUB in Circuits > Arduino
161 Views, 5 Favorites, 0 Comments
How to Make Mini Gas Leakage Detection Device Using Arduino
Hello guys, In this instructables i will show you how i made this mini yet fully useful gas leakage detection system using arduino.
This is not just a normal alerting device, here this device will show you real time gas levels that leaks and also has the edison led indicator system.
Anybody can make this project since i have made the frame and other parts using the 3d printer.
This project works with simple logic
As we know the MQ2 gas sensor or known simply as the gas sensor detects the lpg gas.
I will be using the lighter to mimic the gas leakage, When it is exposed to the gas the oled will simply show the actual percentage of gas or the concentration of leakage and when it reaches certain(high) level the edison led filament starts to blink and when the level is too high the led blinks very fast showing that the leakage has reached to its maximum level.
This is an interesting project that you can try to build or you can buoild this for your upcoming weekend project also.
Building this will give you an hands on experience in 3d printing, electronic circuit building and the many other concept that will make you understand different topics.
If you think to build this i have given all the sources for materials and the most importaht circuit and codes are given in the below steps.
Like always there is also a full build tutorial of this project which you can check to see the working of this project in real time.
Supplies
These are the components that you will need to make this project
Arduino Uno from amazon
Gas Sensor(MQ2)
Jumper Cables
Arduino IDE and programing cable
TinkerCad (if you want to modify my model)
Cura Slicer(Or any other)
Super Glue
Note that these are amazon affiliate links and upon qualifying sales i will receive a small percent of sales that will help me to come up with new projects
Tinkercad Design and 3d Printing
I will be using Tinkercad to build frame for this device, There are total 4 parts that you need to make this device
I will start by making the base first and then the lid or the top frame that will hold the oled and the gas sensor.
Indicator system edison led holder was also 3d printed, i have given STL files that i directly exported from my Tinkercad design below.
Feel free to use my STL and you can consider adding other designs to make the model much more interesting.
After the models were made you can export to cura slicer and then use PLA filament to print the parts, The choice of color is your option.
You can follow the settings that i used, there is no need to use any rafts or supports at the time of printing.
I will then do a basic cleanup since i found that the filament holder had some web like structure and don't worry these are very easy to clean
After you have the parts ready start by working with the edison led first, there is a simple trick to get this led inside this 3d printed part and you can see from the video or by following the next steps.
Use super glue to connect the 3d printed parts together
Circuit and Program
The circuit for this project is made using the 3 main parts apart from the arduino uno itself.
I will break down the circuit one by one.
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
The analog pin from the sensor A0 is connect to the A0 on the Uno board
Edison led connections
The LED has small hole on one of its side and this will be the positive side(3.3v) and this will be connected to the D9 pin of the Uno.
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
Now we have the connections ready and proceed with uploading the code, and you can find the program below
If you have worked earlier on this you can modify this program and check the results, But i wont recommend doing so since i have optimized the code for its best working
Check for the proper board and port type and upload the code and you are good to go.
Downloads
Assembling Components
After you make the connections test it before installing all of these inside this 3d printed case.
I will start by working with the edison led filaments parts first, us ethe 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.
I will be connecting the edison led directly from 3.3v pin from uno whereas the leds are rated for 5v so the leds are safe to use directly
After you have verifies the circuit for its working combine the top and the base part of the frame, Use super glue drops between the edges and give a gentle press.
Now the casing for your electronics is ready and we can test in the real time scenario and i will tell that how in the next step.
How to Use and Working Video
Using this is very exciting, I will be using the gas from a lighter to test for this working and it works perfectly fine.
I will use the arduino programming cable and connect it to the power bank to power this project.
This works flawlessly and you can expect the same also, Simply connect the cable to uno board and the power bank.
In few minutes the gas sensor will be ready(it undergoes filament heating inside that detects the gas).
Now i will simply expose the gas from lighter and in real time you can see that the oled display shows the reading along with the proper values.
If the limit exceeds then the Edison led starts to blink and if the gas leakage still happens then the edison led blinks very fast.
You may ask why did i use this Edison filament the answer is simple its because it works best at night to alert you in the dark rooms.
Well this was all about this project, if you have any questions to ask drop in the comment section and i will respond to them shortly.
Thanks and have a look at the video to check for its workings, Bye and let me know how this project came out for you