How to use Gas/Smoke sensor with Arduino | Gas leak alarm system
ฝัง
- เผยแพร่เมื่อ 17 มิ.ย. 2021
- In this video we are going to learn how to use MQ2 Gas-Smoke Sensor with Arduino so that we can detect presence of gas/smoke in air and take some action.
We will make gas leak alarm system to turn on buzzer.
I have explained in details each step along with code and connections.
👉Please subscribe: th-cam.com/users/hashinclude...
👉Components list :
✅ Arduino Uno amzn.to/3tjKRMR
✅ MQ-2 Gas/Smoke Sensor module amzn.to/3pK2XGE
✅ Buzzer
✅ 7-12 V DC battery
✅ Jumper wires
👉 Shorts Channel :
/ ujwalnandanwar
👉Code and diagram:
github.com/un0038998/lessons/...
👉Watch more videos:
/ hashincludeelectronics
👉Follow us on Instagram:
/ hashincludeelectronics
#gassensor #smokesensor #mq2sensor #hashincludeelectronics #arduino - วิทยาศาสตร์และเทคโนโลยี
Thank you sooo much sir
this helped us a lott
we were just beginners and we followed all your instructions... It Is A Success. thank you
This just saved my life before the deadline. Thanks
I am glad that this project helped you 👍🏻
very help full this is the only video i can find thats help full
Awesome 👍🏻
Thank you sir !! This helped us in the last minute of our project
Thank you so much!
Thank you 🙏
It is working without any problem wow ❤❤
That’s amazing . Good job 👍🏻👏🏻
Sir konsi cooding upload karni h first link ya second.... Or me ardino ko power phone se duga to ye work kare kya
Does the output from the sensor comes directly in PPM?
Ppm(parts per million)
Very useful ..and life saving...good job👏👏👍
Thanks a lot
Can i use same code for ms 1100 voc sensor to turn on buzzer using Arduino after certain concentration of these voc.?
Note - volatile organic compounds such as formaldehyde, benzene, xylene etc
Unfortunately I am not sure about these sensors . 👍🏻👏🏻
This is very helpful, life saving ... Very nice bro ... :)
Happy to help
What type and size og jumper wire are you using?
Those are standard jumper wires . You can get the combination of these wires MM MF FF
ThankYou Man _/\_
Welcome 🙏
Very nice explanation each and every peoject.
You are providing content in simple way.
It is very helpful to begginer
Once again thank you.
Thank you very much 👍🏻👏🏻
Hello! Is it possible to do without the buzzer? And is it in ppm?
Yes you can do it without buzzer 👍🏻👏🏻
Bro can i use hw battery instead of that battery that is used in video ?
I believe you can 👍🏻👏🏻
Sir ,can i know what you have used for that gas it's looking like lighter but it's not I think so
Component name
@@preethijanjyam365 yes you can use lighter . 👍🏻👏🏻
Which software did you use to make the circuit diagram?
It’s fritzing 👍🏻
Sir without battery, im able to do this, could u plz let me know y u have used batter
It was used for demo purpose . You can use any power supply . But don’t use non rechargeable battery .
The buzzer has to be active or passive?
It’s passive buzzer
What to do if I want to put the sensor inside a storage tank like a tire?
You can create a PCB and use that .
It's okay if i use mq5 sensor?
Please give it a try 👍🏻👏🏻
Can we exclude the battery?
Yes you can . Use ac dc adapter instead of battery .
I have a question is it normal for the sensor to smell??
Nope it’s not normal. May be your sensor is burnt . Please check .
I have had moments when multiple sensors had a weird smell and got hot, more experienced people said its fine so i trust them lol
Hello, my sensor is sensing the smoke but buzzer is not beeping
Check the connections properly . Is your buzzer working individually?
can I do this with MQ-7 sensor???
Yes you can 👍🏻👏🏻
thank youuuu@@hashincludeelectronics
@@mariaalpizarmata445 welcome 🙏
Can i use mq 4 gas sensor
I have not tried it . However it should also work if output is same format 👍🏻👏🏻
Does it also work with a mq-4 ?
If MQ4 sensor has analog or digital output pin then it will work 👍🏻 please check it
Bro pls give the link of mq2 sensor
Could you please search online ? For now I don’t have link for it .
Sir, apke liter se fire kyu nahi nikal rahi h, apne kya change kiya h
It’s a gas 👏🏻👍🏻
@@hashincludeelectronics Sir iss lighter ka link to purchase ya naam mil sakta h kya?
Bro I want to connect dc motor
You can use relay for that . Please check my video on how to use relay 👍🏻👏🏻
How do write coding for this I am not able to get it
You can get the code and diagram from the link provided in the description of the video 👍🏻
Sir, me kese check karu ki mera gas sensor sahi h ya nahi uski Red light to on hoti h per vo gas detect nahi kar raha
Please check the video for this step 👍🏻👏🏻
Why we are using (sensorvalue>200)
This sensor gives range of analog values. So I used 200 as an example value . You can check what different values it gives by printing on serial monitor and use that . 👍🏻👏🏻 200 worked for me to detect gas 👍🏻
okk thank you @@hashincludeelectronics
Sir we use 3 different gases...can we take an average value or threshold value....
Sir I connect ardino to my phone to give power so it not work
Please use the power supply as shown in video 👍🏻👏🏻
Lekin phone se bhi ordino or gas sensor on ho rahe h per vo Gas detect nahi kar raha
the arduino turns off when i plug the gnd in gnd and vcc in 5v pls help me
Please Check the connections properly 👍🏻
@@hashincludeelectronics yes i checked them and i also checked if my arduino pins were malfunctioning bt everything seemed right maybe the gas sensor is faulty
Can I program it to pictoblox
Unfortunately I am not sure about this 👍🏻👏🏻
Sir Ye gas sensor ki 3rd pin kyu use nahi ki
Please check the video for any details 👍🏻👏🏻
Vaiya ai Censor koi pawya jay??
Buzzer Don't work but i checked that buzzer is fine .... What's the solution?
It’s very simple project so please check the connections again . Also take a look at video slowly and carefully for any missing step 👍🏻👏🏻
It’s very simple project so please check the connections again . Also take a look at video slowly and carefully for any missing step 👍🏻👏🏻
What if I want to connect an LCD to display the sensor value/smoke level/alarm status. What will i have to do?
You can do that easily . Check my video on lcd display with Arduino .
@@hashincludeelectronics sure... Thanks
My buzzer has positive and negative. What to do?
Connect negative to ground . And positive to pin as shown in video 👏🏻👍🏻
@@hashincludeelectronics thanks😊
@@yashraj6634 welcome 🙏
@@hashincludeelectronics hey! What if I try to connect a wired buzzer?
@@yashraj6634 what do you mean by wired buzzer ?
How much money spend this project
Around 30 CAD or so 👍🏻👏🏻
Please reply sir
I have replied 👍🏻👏🏻
Sir code kaha h
Code and diagram link is provided in the description of the video 👍🏻👏🏻
Sir, muze vo link nahi mil raha h please upload pdf in comments box
will this help detect the wives farts?
You can give it a shot and let us know 😂👍🏻
He doesn't work 😢
What issues are you facing ?
The code is written correctly, but the sensor LED is on and no sound is emitted
@@ziadibrahim7check your buzzer
@@ziadibrahim7same issu....have you find out the solution?