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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 110

  • @vempalihrishita2475
    @vempalihrishita2475 4 หลายเดือนก่อน +3

    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

  • @varunpareek557
    @varunpareek557 2 ปีที่แล้ว +11

    This just saved my life before the deadline. Thanks

  • @williamchupin6551
    @williamchupin6551 2 ปีที่แล้ว +1

    very help full this is the only video i can find thats help full

  • @kiki-pk8fl
    @kiki-pk8fl 4 หลายเดือนก่อน +6

    Thank you sir !! This helped us in the last minute of our project

  • @keorapetsemagano318
    @keorapetsemagano318 7 หลายเดือนก่อน +2

    Thank you so much!

  • @sahebgoudabiradar7130
    @sahebgoudabiradar7130 4 หลายเดือนก่อน +2

    It is working without any problem wow ❤❤

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Sir konsi cooding upload karni h first link ya second.... Or me ardino ko power phone se duga to ye work kare kya

  • @malitrisha614
    @malitrisha614 8 หลายเดือนก่อน +1

    Does the output from the sensor comes directly in PPM?

    • @malitrisha614
      @malitrisha614 8 หลายเดือนก่อน +1

      Ppm(parts per million)

  • @Roshni-aBrightnessinLife
    @Roshni-aBrightnessinLife 2 ปีที่แล้ว +4

    Very useful ..and life saving...good job👏👏👍

  • @Quark2632
    @Quark2632 6 หลายเดือนก่อน +2

    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

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน

      Unfortunately I am not sure about these sensors . 👍🏻👏🏻

  • @prabhatverma7538
    @prabhatverma7538 2 ปีที่แล้ว +3

    This is very helpful, life saving ... Very nice bro ... :)

  • @joycevillacora8295
    @joycevillacora8295 ปีที่แล้ว +2

    What type and size og jumper wire are you using?

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      Those are standard jumper wires . You can get the combination of these wires MM MF FF

  • @omsudhamsh.h
    @omsudhamsh.h 5 วันที่ผ่านมา +1

    ThankYou Man _/\_

  • @sanjaykumar-ow6qs
    @sanjaykumar-ow6qs 9 หลายเดือนก่อน +2

    Very nice explanation each and every peoject.
    You are providing content in simple way.
    It is very helpful to begginer
    Once again thank you.

  • @christianjamesferrer-uw9fg
    @christianjamesferrer-uw9fg 4 หลายเดือนก่อน +2

    Hello! Is it possible to do without the buzzer? And is it in ppm?

  • @kbunny7548
    @kbunny7548 4 หลายเดือนก่อน +1

    Bro can i use hw battery instead of that battery that is used in video ?

  • @preethijanjyam365
    @preethijanjyam365 2 หลายเดือนก่อน +1

    Sir ,can i know what you have used for that gas it's looking like lighter but it's not I think so

    • @preethijanjyam365
      @preethijanjyam365 2 หลายเดือนก่อน +1

      Component name

    • @hashincludeelectronics
      @hashincludeelectronics  2 หลายเดือนก่อน +1

      @@preethijanjyam365 yes you can use lighter . 👍🏻👏🏻

  • @bistaprajolita
    @bistaprajolita ปีที่แล้ว +3

    Which software did you use to make the circuit diagram?

  • @arpithagangadhar6484
    @arpithagangadhar6484 11 หลายเดือนก่อน +1

    Sir without battery, im able to do this, could u plz let me know y u have used batter

    • @hashincludeelectronics
      @hashincludeelectronics  11 หลายเดือนก่อน

      It was used for demo purpose . You can use any power supply . But don’t use non rechargeable battery .

  • @gianniejoe8061
    @gianniejoe8061 ปีที่แล้ว +1

    The buzzer has to be active or passive?

  • @crstnaangela
    @crstnaangela ปีที่แล้ว +1

    What to do if I want to put the sensor inside a storage tank like a tire?

  • @christiannacapatan8162
    @christiannacapatan8162 25 วันที่ผ่านมา +1

    It's okay if i use mq5 sensor?

  • @zizo8737
    @zizo8737 ปีที่แล้ว +1

    Can we exclude the battery?

  • @michaeljoshuamanallo1742
    @michaeljoshuamanallo1742 2 ปีที่แล้ว +2

    I have a question is it normal for the sensor to smell??

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว +1

      Nope it’s not normal. May be your sensor is burnt . Please check .

    • @mrpanda-eh6om
      @mrpanda-eh6om 7 หลายเดือนก่อน +1

      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

  • @DiganthandDrithi193
    @DiganthandDrithi193 ปีที่แล้ว +2

    Hello, my sensor is sensing the smoke but buzzer is not beeping

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว +1

      Check the connections properly . Is your buzzer working individually?

  • @mariaalpizarmata445
    @mariaalpizarmata445 2 หลายเดือนก่อน +2

    can I do this with MQ-7 sensor???

  • @srshorts1843
    @srshorts1843 10 หลายเดือนก่อน +1

    Can i use mq 4 gas sensor

    • @hashincludeelectronics
      @hashincludeelectronics  9 หลายเดือนก่อน

      I have not tried it . However it should also work if output is same format 👍🏻👏🏻

  • @finneen
    @finneen ปีที่แล้ว +3

    Does it also work with a mq-4 ?

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      If MQ4 sensor has analog or digital output pin then it will work 👍🏻 please check it

  • @jitx2797
    @jitx2797 ปีที่แล้ว +1

    Bro pls give the link of mq2 sensor

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      Could you please search online ? For now I don’t have link for it .

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Sir, apke liter se fire kyu nahi nikal rahi h, apne kya change kiya h

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      It’s a gas 👏🏻👍🏻

    • @gamerx4360
      @gamerx4360 2 หลายเดือนก่อน

      ​@@hashincludeelectronics Sir iss lighter ka link to purchase ya naam mil sakta h kya?

  • @Azim-hacks
    @Azim-hacks 5 หลายเดือนก่อน +2

    Bro I want to connect dc motor

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      You can use relay for that . Please check my video on how to use relay 👍🏻👏🏻

  • @sanjaisakthi5936
    @sanjaisakthi5936 ปีที่แล้ว +1

    How do write coding for this I am not able to get it

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      You can get the code and diagram from the link provided in the description of the video 👍🏻

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    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

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      Please check the video for this step 👍🏻👏🏻

  • @rony20053
    @rony20053 7 หลายเดือนก่อน +1

    Why we are using (sensorvalue>200)

    • @hashincludeelectronics
      @hashincludeelectronics  7 หลายเดือนก่อน

      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 👍🏻

    • @rony20053
      @rony20053 7 หลายเดือนก่อน +1

      okk thank you @@hashincludeelectronics

    • @sohamsaha626
      @sohamsaha626 7 หลายเดือนก่อน

      Sir we use 3 different gases...can we take an average value or threshold value....

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Sir I connect ardino to my phone to give power so it not work

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      Please use the power supply as shown in video 👍🏻👏🏻

    • @moppetbox999
      @moppetbox999 4 หลายเดือนก่อน

      Lekin phone se bhi ordino or gas sensor on ho rahe h per vo Gas detect nahi kar raha

  • @breeze9402
    @breeze9402 ปีที่แล้ว +1

    the arduino turns off when i plug the gnd in gnd and vcc in 5v pls help me

    • @hashincludeelectronics
      @hashincludeelectronics  ปีที่แล้ว

      Please Check the connections properly 👍🏻

    • @breeze9402
      @breeze9402 ปีที่แล้ว

      @@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

  • @remas6605
    @remas6605 5 หลายเดือนก่อน +1

    Can I program it to pictoblox

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน

      Unfortunately I am not sure about this 👍🏻👏🏻

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Sir Ye gas sensor ki 3rd pin kyu use nahi ki

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      Please check the video for any details 👍🏻👏🏻

  • @oasygaming8245
    @oasygaming8245 ปีที่แล้ว

    Vaiya ai Censor koi pawya jay??

  • @shamsulalam6712
    @shamsulalam6712 วันที่ผ่านมา +1

    Buzzer Don't work but i checked that buzzer is fine .... What's the solution?

    • @hashincludeelectronics
      @hashincludeelectronics  22 ชั่วโมงที่ผ่านมา

      It’s very simple project so please check the connections again . Also take a look at video slowly and carefully for any missing step 👍🏻👏🏻

    • @hashincludeelectronics
      @hashincludeelectronics  22 ชั่วโมงที่ผ่านมา

      It’s very simple project so please check the connections again . Also take a look at video slowly and carefully for any missing step 👍🏻👏🏻

  • @ghostxaxom1087
    @ghostxaxom1087 2 ปีที่แล้ว +1

    What if I want to connect an LCD to display the sensor value/smoke level/alarm status. What will i have to do?

    • @hashincludeelectronics
      @hashincludeelectronics  2 ปีที่แล้ว +1

      You can do that easily . Check my video on lcd display with Arduino .

    • @ghostxaxom1087
      @ghostxaxom1087 2 ปีที่แล้ว

      @@hashincludeelectronics sure... Thanks

  • @yashraj6634
    @yashraj6634 5 หลายเดือนก่อน +1

    My buzzer has positive and negative. What to do?

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน +1

      Connect negative to ground . And positive to pin as shown in video 👏🏻👍🏻

    • @yashraj6634
      @yashraj6634 5 หลายเดือนก่อน +1

      @@hashincludeelectronics thanks😊

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน +1

      @@yashraj6634 welcome 🙏

    • @yashraj6634
      @yashraj6634 5 หลายเดือนก่อน +1

      @@hashincludeelectronics hey! What if I try to connect a wired buzzer?

    • @hashincludeelectronics
      @hashincludeelectronics  5 หลายเดือนก่อน +1

      @@yashraj6634 what do you mean by wired buzzer ?

  • @gds7250
    @gds7250 3 หลายเดือนก่อน +1

    How much money spend this project

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Please reply sir

  • @moppetbox999
    @moppetbox999 4 หลายเดือนก่อน +1

    Sir code kaha h

    • @hashincludeelectronics
      @hashincludeelectronics  4 หลายเดือนก่อน

      Code and diagram link is provided in the description of the video 👍🏻👏🏻

    • @moppetbox999
      @moppetbox999 4 หลายเดือนก่อน

      Sir, muze vo link nahi mil raha h please upload pdf in comments box

  • @mrmago0277
    @mrmago0277 3 หลายเดือนก่อน +1

    will this help detect the wives farts?

  • @ziadibrahim7
    @ziadibrahim7 2 หลายเดือนก่อน +1

    He doesn't work 😢

    • @hashincludeelectronics
      @hashincludeelectronics  2 หลายเดือนก่อน

      What issues are you facing ?

    • @ziadibrahim7
      @ziadibrahim7 2 หลายเดือนก่อน

      The code is written correctly, but the sensor LED is on and no sound is emitted

    • @urbansnipertn
      @urbansnipertn หลายเดือนก่อน

      ​@@ziadibrahim7check your buzzer

    • @shamsulalam6712
      @shamsulalam6712 วันที่ผ่านมา

      ​@@ziadibrahim7same issu....have you find out the solution?