I am using this video as part of my project and when you listed all the materials I bought them , you mentioned that we should but Male to Female but went on to use Male to Male.
Jumper cable set is listed in the components. Please use the links below. If you have existing jumper cables then male to female are preferred as they would replace the use of even a breadboard.
I enjoyed your tutorial but I have two questions. 1. Does the MQ2 library automatically includes the calibration in gas type and ppm ? 2. I would like to do the same with an MQ9 to measure natural gas in ppm. Is there an equivalent MQ9 library and would the command syntax be the same ? Thanks very much.
1.The library of MQ2 includes the calibration for all the gases MQ2 sensor can detect. 2. github.com/mdsiraj1992/Gassensors visit this link and access all the libraries for MQ gas sensors. Thank you!
will it work directly with a laptop and no battery? my LCD only shows blue light I am using 400 point breadboard The I2C module is already connected to LCD please help sir
@@ElectronicsSimplified7 what board sorry i am a beginner can you explain a bit more i did everything like the vid i am just stuck at the last part and i need it for tomrow
sir i did the same connection shown in the viedo , lcd display was working but it didnt show the detection percentage as shown in the viedo how can i fix this problem , thank you
@@ElectronicsSimplified7 ok sir, thanks for the reply. Actually I'm doing this with MQ135 sensor. So can you please tell what changes I need to do in order to run this successfully. Thanks in advance.
I tried doing this project. However, the smoke cannot be detected. The value displayed for smoke is at 0% only. Only the values of LPG and CO are read. How can I fix this?
@@thatwasparticia6671 I think it is because we transformed the smoke reading into a percentage. The value is very small and could not be read. I removed this 100/1000000 part and started reading the smoke.
My code is loaded sucessfully but all the values are showing 0 then what to does we have to wait for 5 minutes for heating and even after bringing the smoke near the mq2 sensor there is no reading on LCD
Well explanation!! Nice! I have a little question. Since most of the tutorials are used to test for smoke and gas, is that possible to test the human breathing? Thanks!
lcd.begin();//Defining 16 columns and 2 rows of lcd display . Bro in this line i am getting error. Pls help me .its an emergency pls . I have school project
His "MQ-2" sensor looks like an MQ-135. I know because I bought the same. Only in the Fritzing schematic, an MQ-2 is depicted. MQ-2 is not even suited for carbon dioxide but MQ-135, which he handles at the beginning (I quit watching) does.
As an example, a methane (molecular) concentration of 2% means that 2 out of every 100 air molecules is methane. Similarly, a methane concentration of 2 ppm means that 2 out of every 1 million air molecules is methane. Can MQ-2 detect CO2? A short and simple answer to this question is yes, it can detect CO2. You can refer to how smoke is mostly a combination of carbon monoxide and carbon dioxide. Mq-2 sensor has the ability to detect. But the measurements are derived from other gas concentration values.
@@ElectronicsSimplified7 You are quite right that there is a mathematical correlation between the two. It's just that we do not exhale methane. I believe cows do produce a lot of methane. So there could be one useful application for it 🙂. If you don't want to spend some 30 bucks on a real CO2 sensor you could get the SGP30 from Ali.... for a few dollars. It does a pretty good job in indirectly calculating the CO2 value in the air. Some smart folks on RUclips already found out. I probably will get one too, later on. ...
Why is the LCD working with other programs? Just check if the LCD can receive data and display some data on it. You might have to adjust your potentiometer at the back of your I2C module.
I am looking to someone to make me whole unit with my logo on it, with packing and detail instructions, how to install it . I need big production of it. Thanks
You can connect any com port. It is based on your computer where your Arduino is installed. You can go to device manager on your computer and check the universal serial Bus section
Mostly the arduinos don't blow up... Check your USB cable first. And then also check if the Arduino has any LED indicators ON. If yes, then you need to just change your data cable and not the whole Arduino.
I did the same process which you did but it didn't work the code failed in uploading i didn't changed the code even but still it failed i asked my uncle who is engineer he said this cannot be worked i tried for 4-5 times but it failed
It can detect all those gases. But it can't find out which gas was detected particularly. But by concentration. It can be predicted. So in a LPG prone leakage zone. You can set the value. That's the whole purpose.
@@ElectronicsSimplified7 i have given all connections everything as per u said when uploading code i uploaded library and i have upload that time problem occurs "16 columns and 2 rows of lcd display" this code is wrong showing i removed that code and uploaded lcd display not show reading
One of the most detailed video on youtube. Great work sir...
I am using this video as part of my project and when you listed all the materials I bought them , you mentioned that we should but Male to Female but went on to use Male to Male.
Female to male is preferably. But a jumper cable set is what is mentioned in the video.
Jumper cable set is listed in the components.
Please use the links below.
If you have existing jumper cables then male to female are preferred as they would replace the use of even a breadboard.
Sir how to connect alarm in this project if lpg or another harmful gas leakage happened
Better if you also explain the code logic with respective to the components assembled to Arduino, Thank you
I have started doing this in my newer videos. Considering your suggestion.
Bro I want to add gsm module in it also how may I do that
????????........plz reply
Can we used multiple gas detector sensor
i did the same way as shown it turned on as it was to be but there is no reading on the lcd what is the problem
I enjoyed your tutorial but I have two questions. 1. Does the MQ2 library automatically includes the calibration in gas type and ppm ? 2. I would like to do the same with an MQ9 to measure natural gas in ppm. Is there an equivalent MQ9 library and would the command syntax be the same ? Thanks very much.
1.The library of MQ2 includes the calibration for all the gases MQ2 sensor can detect.
2. github.com/mdsiraj1992/Gassensors visit this link and access all the libraries for MQ gas sensors.
Thank you!
nandri nanbare 🥺🙏🙏
Broh! At 3:25 uh said to connect A0 to Analog Pin 0 on Arduino, but uh connected GND to A0 .Can uh plzz tell me which is correct??
Connect A0 to Analog Pin 0 on Arduino, that's correct.
Don't go by the wire colors. They are a little similar. And i see why you are confused.
Please see that A0 on the MQ will be connected to A0 pin on the Arduino. Don't refer the wire colors. See the circuit diagrams. Bingo.
@@ElectronicsSimplified7 Ok broh.. Thanks for helping. Im confused by colours.
@@rolanpereira7643 Thanks broh!
Thanks for this, would it be possible for you to add a LPG tank weight monitoring with low level alert, thanks
U need to use fuel level meter ...
Can you siplyfy the wire connection
Well explained Sir
Well more will keep coming ... ❤️
Sir I really need your help can I get your contact number
electronicsengineering3@gmail.com
what type of Arduino is this? can i use arduino uno r3 DIP?
Hi i have some question
1- for the measurement how to calibrate it ?
2- what is the range that read for LPG in PPM ? Maximum & Minimum?
What is the output unit from A0? resistance in milliohms? current in mA?
It's neither. It will always be voltage levels. That would be ranging from 0V to Vcc (in this case its 0V to 5V)
will it work directly with a laptop and no battery?
my LCD only shows blue light
I am using 400 point breadboard
The I2C module is already connected to LCD
please help sir
If lcd only shows blue screen that means potentiometer in l2C module is low
Try changing it
I think this reply is bit late 😅
Hi, i've the lcd but do not have the i2c coverter, so how do i interface it?
Can I still use an lcd shield instead?
i didn t understand the last step in in 9:18 how do it?
You can just upload the code. By selecting your board.
@@ElectronicsSimplified7 what board sorry i am a beginner can you explain a bit more i did everything like the vid i am just stuck at the last part and i need it for tomrow
You can check some basic videos on how to upload code to Arduino Uno.
loved the vid but where can you find the MQ2 sensor library normally because I can't find it.
www.amazon.com/Butane-Hydrogen-Sensor-Detector-Module/dp/B0786DH3BW/ref=mp_s_a_1_2?keywords=mq2%2Bsensor&qid=1638064300&sr=8-2&th=1&psc=1
github.com/rolan37/MQ-2-Sensor-Interfaced-with-Arduino
sir i did the same connection shown in the viedo , lcd display was working but it didnt show the detection percentage as shown in the viedo how can i fix this problem , thank you
You can check for your wires and connections
can it detect motorcycle/car exhaust gas? can i put it outside?
It will work.. you will have to take care of the wiring.
Is it possible to measure the level of methane gas only in the mq2 library?
I need ammonia sensor with display...
can u explain the mq7,and mq8 gas sensors interface with arduino uno output data displays in 20*4 display with code
Hi, this is great. My LCd displays lpg: 0 CO:0 Smoke: 0%. Is the problem with the calibration maybe
can you please give me the vision of liquidi2c library please
www.electronicssimplified.in/wp-content/uploads/2023/06/LiquidCrystal_I2C.zip
bro in the library there is only lpg,co,and smoke, how do i detect the ch4 then?
If I use MQ135 instead of MQ2 will the code change?
Yes it will change
@@ElectronicsSimplified7 ok sir, thanks for the reply. Actually I'm doing this with MQ135 sensor. So can you please tell what changes I need to do in order to run this successfully.
Thanks in advance.
where's the link for the LCD not display.
ruclips.net/video/UezoCbBSavQ/видео.html
oh wow! very responsive thank you!. hoping you gain million of subscribers! ❤️
i have given the correct commands and connections but the lcd is not powering up
Sir I have urgent need of this program
Why it is taking too long to upload the program into Arduino Uno?
Sometimes the compilation can take longer than expected. It's completely normal.
I tried doing this project. However, the smoke cannot be detected. The value displayed for smoke is at 0% only. Only the values of LPG and CO are read. How can I fix this?
Help, what did you do
You probably have changed the code and failed to display it.
@@thatwasparticia6671 I think it is because we transformed the smoke reading into a percentage. The value is very small and could not be read. I removed this 100/1000000 part and started reading the smoke.
lcd.print((smoke*100)/1000000);
what is the purpose of this formula?
overall price ?
My code is loaded sucessfully but all the values are showing 0 then what to does we have to wait for 5 minutes for heating and even after bringing the smoke near the mq2 sensor there is no reading on LCD
Sensor is not connected correctly
Well explanation!! Nice!
I have a little question. Since most of the tutorials are used to test for smoke and gas, is that possible to test the human breathing? Thanks!
No. This is not mean for human breathing.
@@ElectronicsSimplified7 Is there any sensor to test for?
Wearable Humidity sensors.
the output is not displayed on the LCD
what to do?
Does this sensor (MQ-2) detect Carbon Dioxide concentration ? I only see Carbon Monoxide reading in the video.
Yes
please library MQ4
Dude smoke ppml is not calculating any solution??
Where is the code .?.???
Sir i am getting the output on serial monitor but not on LCD
Can you check your connections?
Make sure your libraries for LCD are added correctly.
Please add the libraries from the description.
Please give mq 4 library
hello sir, i am receiving a compiling error with my lcd screen. It say's no matching function
Install the required libraries
lcd.begin();//Defining 16 columns and 2 rows of lcd display . Bro in this line i am getting error. Pls help me .its an emergency pls . I have school project
is it necessary to solder his 16pins to work?
Necessary... If you do not want to solder... Then use a breadboard
@@ElectronicsSimplified7 can i pm you ? my lcd doesn't work like yours. the wires are the same how it is in the video.
@@ElectronicsSimplified7 i like your video and explanation but the only is not working is my LCD
pls help .
Visit electronicssimplified.in and contact me
If any one u have and you know how to program them plzz help
Great work bro
Can we use this to test Chlorine
hi can i get ckt diagram for this project.
github.com/rolan37/MQ-2-Sensor-Interfaced-with-Arduino
sir can you send me working of block diagram
can i get example the coding?
Its in the description
His "MQ-2" sensor looks like an MQ-135. I know because I bought the same. Only in the Fritzing schematic, an MQ-2 is depicted. MQ-2 is not even suited for carbon dioxide but MQ-135, which he handles at the beginning (I quit watching) does.
As an example, a methane (molecular) concentration of 2% means that 2 out of every 100 air molecules is methane. Similarly, a methane concentration of 2 ppm means that 2 out of every 1 million air molecules is methane. Can MQ-2 detect CO2? A short and simple answer to this question is yes, it can detect CO2.
You can refer to how smoke is mostly a combination of carbon monoxide and carbon dioxide. Mq-2 sensor has the ability to detect. But the measurements are derived from other gas concentration values.
@@ElectronicsSimplified7 You are quite right that there is a mathematical correlation between the two. It's just that we do not exhale methane. I believe cows do produce a lot of methane. So there could be one useful application for it 🙂. If you don't want to spend some 30 bucks on a real CO2 sensor you could get the SGP30 from Ali.... for a few dollars. It does a pretty good job in indirectly calculating the CO2 value in the air. Some smart folks on RUclips already found out. I probably will get one too, later on. ...
Sir please which code did you use for the gas detector
Code : www.electronicssimplified.in/feed/code-for-gas-sensor/
Broh! Can uh plzz give MQ5 library
github.com/mdsiraj1992/Gassensors
Sir i am getting the output displayed on serial monitor but not on lcd .There are no errors and connections are also proper
Why is the LCD working with other programs? Just check if the LCD can receive data and display some data on it. You might have to adjust your potentiometer at the back of your I2C module.
Is it possible to detect the gas and actually direct it in a particular place
Could you please elaborate?
How i code into the laptop
bro can we use c2h4 gas sensor fof same steps behalf of using gas sensor
No
how to connect alarm in this project if lpg or another harmful gas leakage happened
Use a threshold value for detection and digital write the buzzer High...
@@ElectronicsSimplified7 thanks
@@ElectronicsSimplified7 can u teach me how? please
needed circuit diagram also plz upload
why the analog output of sensor is being used instead of digital output
Digital will just tell us if any particle is sensed or not sensed (0 and 1 - digital).
We need to figure out what particle is sensed so we take the analog reading to decided what type of particle is being sensed.
Particle ----> Gas (Thats the simplification).
Thank you for your question!
bro i we do this project without 12 c module
Possible
I am looking to someone to make me whole unit with my logo on it, with packing and detail instructions, how to install it . I need big production of it. Thanks
For which place
bro can you make this without i2c
Bro mq2 library is not installing
You have to remove it from your Arduino/library folder
And then reinstall it.
mq-6??
Great channel!!
Thank you!
hello, is it okay to add MQ9 sensor instead of MQ2 and how about library ?
thanks in advance
No it's not okay ...
They are two different sensors. They do almost the same job but have been built different over the years.
You could download the MQ9 Sensor library from the internet
Hie sir, can you sent us the code for the Arduino.
github.com/rolan37/MQ-2-Sensor-Interfaced-with-Arduino
you conect com 3 or 4 or 5 ?
You can connect any com port. It is based on your computer where your Arduino is installed. You can go to device manager on your computer and check the universal serial Bus section
@@ElectronicsSimplified7 thank you, i got it. because my ardunio has problem so it doesn't show Com pin. I will change my Ardunio
Mostly the arduinos don't blow up... Check your USB cable first. And then also check if the Arduino has any LED indicators ON. If yes, then you need to just change your data cable and not the whole Arduino.
bro i want zip files
Bro can I have algorithm of this project tonight same project I have doing in my clg.if u interest to help comment your any social media accounts
Sir I am new student I don't know how to program so plzzz help
The program is in the GitHub link please check
Yesir
I did the same process which you did but it didn't work the code failed in uploading i didn't changed the code even but still it failed i asked my uncle who is engineer he said this cannot be worked i tried for 4-5 times but it failed
Check your USB cable. If it's faulty.
Check your USB cable. If it's faulty.
can l get the code for this project bro
It's in the description
github.com/rolan37/MQ-2-Sensor-Interfaced-with-Arduino
@@ElectronicsSimplified7 i want to connect a buzzer or speaker and two LED
@@ElectronicsSimplified7 CAN YOU HELP
Can you email me at electronicsengineering3@gmail.com
add buzzer and gsm module to it
Possible. You can mail me at electronicsengineering3@gmail.com.
sir can u plz help me connection of mu project sir
my project is fire and gas detection system with IOT sir
Sure ... Dm on Instagram electronics simplified
Sir please provide the ges sensor code.
Code : www.electronicssimplified.in/feed/code-for-gas-sensor/
TQ sir
The code was always available in the GitHub repo
*Recomemd by Emanul Perreira*
Sir kindly code and library send kr dy
Link to the code in the description
Mq2 sensor can’t differentiate gasses,
It can detect all those gases. But it can't find out which gas was detected particularly. But by concentration. It can be predicted.
So in a LPG prone leakage zone. You can set the value. That's the whole purpose.
Not working bro 😭
Please explain what is not working in detail. Happy New Year!
@@ElectronicsSimplified7 i have given all connections everything as per u said when uploading code i uploaded library and i have upload that time problem occurs "16 columns and 2 rows of lcd display" this code is wrong showing i removed that code and uploaded lcd display not show reading
Pls tell bro very urgent project bro pls 🙏🙏🙏
Led have no lights
Can you please elaborate?
@@ElectronicsSimplified7 hello sir I don't have an Uno board can swap it with nano
Yes you can
Vision of arduino pls bro it's an urgent
ruclips.net/video/CrVo-iCeZ4k/видео.html
bro code
Codes are usually in the description and always on github and my website : www.electronissimplified.in
DID NOT WORK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please elaborate
Is this working by using MQ135 sensor?
does mq-2 measure co2 or co?
Yes