Getting right PPM from MQ sensors

Поделиться
HTML-код
  • Опубликовано: 2 янв 2015
  • The MQ gas sensors are great, but people find it difficult to have the calibration done and reading the values in PPM, this video will teach you how to get the reading done with any MQ sensor.
    Temperature and humidity were not factored. If you need that you can send me an email so I can help you get the best of reading from your MQ gas sensors.
  • НаукаНаука

Комментарии • 105

  • @davecs8404
    @davecs8404 6 лет назад

    thank you very much for very nice explanation. but how about MQ7 and MQ135 i gonna to use them. please clarify for me!!

  • @esthervs4080
    @esthervs4080 6 лет назад +4

    hi sir could u pls explain hw did u use the value -2.6 and 2.7 in lgppm =( log(ratio)*-2.6) + 2.7

  • @khairjuani8993
    @khairjuani8993 5 лет назад +1

    @DroneTechnologies How can we calibrate the sensor if temperature and humidity are being factored. Since the sensor influence by temperature and humidity as well (datasheet on 2nd graph). I think surroung condition affect the reading.

  • @joseluisdiaz233
    @joseluisdiaz233 7 лет назад +11

    Can you share your code? I dont understand where the values of the lnPPM are in the code

  • @darioramljak7914
    @darioramljak7914 9 лет назад +2

    Hi there, thank you for sharing this video, that's a really easy way of getting approximation function for MQ relation graphs.
    Question, how do you relate Ro and Rl resistance? Ro is a sense resistance in 1000ppm of H2, and Rl is load resistance.

  • @cuongleba6247
    @cuongleba6247 5 лет назад +2

    Your tutorila is useful for me , but where do you get -2.6 and 2.7 ?

  • @arifianhutama8612
    @arifianhutama8612 7 лет назад +4

    Hi, your tutorial is good, but if you share your code for calibrated mq sensor it will better than before. Thanks

  • @MrFercho459
    @MrFercho459 6 лет назад

    hello, do you have any patron where you could confirmate the values? becuase if the sensor could have some error, we can have some CI to acondition this error..

  • @jugnu361
    @jugnu361 4 года назад

    Cool Man.........I think i will have to make one now ......... you got me interested ..Thanks

  • @mokranlechat
    @mokranlechat 4 года назад

    hi sir, could u tell how to process with mq7 sensor?
    i need to understand how to calibration is possible as well. thks.

  • @askhatzhangirbayev1094
    @askhatzhangirbayev1094 8 лет назад +1

    hello)) how to get ppm value from figaro tgs2600 gas sensor ?

  • @dinurwahyupratiwi5160
    @dinurwahyupratiwi5160 6 лет назад

    hello, i just started my new project with mq2. can i get full code for this mq2 ?

  • @kenshintemp6431
    @kenshintemp6431 4 года назад

    thank you

  • @frankran2499
    @frankran2499 7 лет назад

    Excelente guia :like:

  • @ManOleg38
    @ManOleg38 7 лет назад

    Can you make a documentation paper?

  • @JamesWylde
    @JamesWylde Год назад

    Most people programming an Arduino or otherwise know what a log plot is vs a linear plot. The part that most people struggle with is that the datasheet give R/R0 vs ppm, not Aout vs ppm. This video completely glosses over that despite the title saying it does.

  • @silvanadiaz1308
    @silvanadiaz1308 9 лет назад +9

    Hello, i'm sorry, but i can't seem to understand where did you use the equations calculated on excel, i don't understand where does the values in your code come from, and what value of Rl are you using. Would you mind sharing your full code? Thanks for the video, btw.
    Greetings from Chile

  • @MMphego
    @MMphego 8 лет назад +2

    Can you please share your code.

  • @daydreamers845
    @daydreamers845 4 года назад

    How about mq138

  • @rhemoanthonypoblete686
    @rhemoanthonypoblete686 7 лет назад

    sir can you help me calibrating mq135 to measure ammonia with a dht22 for best results. thank you :D

    • @huzniey
      @huzniey 4 года назад

      Hello. Have you got the answer for this?

  • @phamminhang7059
    @phamminhang7059 Год назад

    why Vrl= adc_rd * Vadc_5? could anyone explain this for me?

  • @cherfiilyas3580
    @cherfiilyas3580 8 лет назад

    hiii ... can you help me to getting right PPM from TGS26020 sensor !!

    • @roshangupta5709
      @roshangupta5709 3 года назад

      Did you got any solution?? I'm also stuck in calculating the ppm

  • @nileshaqua
    @nileshaqua 7 лет назад

    Natural log is base e . Why are you using base 10 than ??

  • @clip8327
    @clip8327 7 лет назад +1

    The problem is Ro (clean air) often changed the values hour by hour.
    Voltage regulator is not smooth too.

    • @19trwind82
      @19trwind82 6 лет назад

      You can adjust for that by using an analog pin to measure the voltage. Let's say you use analogRead(A5) / 1023.0 * 5 as REF_LEVEL to measure VCC, then you add in your code: float outputVoltage = (5.0 / REF_LEVEL) * voltage sensor. However, the major flaw in this tutorial is that R0 is replaced by R_load. You can be sure that the values are incorrect and probably not even close to the actual ppm's. Although with these sensors you will never be able to accurately tell. You basically need to have a known ppm in a test lab environment to calibrate the sensor. These sensors are good for measuring sudden changes. For instance if your house is on fire.

    • @joshyehezkielnuseraparinus6448
      @joshyehezkielnuseraparinus6448 6 лет назад

      is it same how to calculate ppm of MQ-2 or MQ-3?

  • @LetchikBulochkin
    @LetchikBulochkin 6 лет назад +1

    I find too many negative comments out here. Your video was superuseful for me, so many thanks. However, I don't quite understand, why you put your calculations back to LN. In order to save MCU memory? I don't hope to get any answers here, but who knows.

  • @bgv1995
    @bgv1995 7 лет назад

    Thank you for your video! Even if this MQ sensor can measure multiple gases, can it measure multiple gases at the same time? For example could we run it in a random room and read the ppms for each gas or does it work assuming that a single gas will be measured

    • @19trwind82
      @19trwind82 6 лет назад +1

      It can measure multiple gasses at the same time. However, you will not be able to tell which gas you have measured. You could only perhaps tell from your environment. For instance, you expect alcohol in your breath after drinking alcohol, you expect carbon monoxide when you light a candle.

  • @rhemoanthonypoblete686
    @rhemoanthonypoblete686 7 лет назад

    sir. can i ask for the codes ? thak you sir :D

  • @SebastianMMA16
    @SebastianMMA16 3 месяца назад

    Rl is Load Resistor, we need Ro.

  • @vitalijsfescenko5055
    @vitalijsfescenko5055 8 лет назад

    How do you measure Load Resistance (RL), I have a multimeter and same type of sensor

    • @pong301275cmu
      @pong301275cmu 7 лет назад

      this is just only R that used for measured V across RL to calculated R of sensor (Rs) by using potential divider technique.

  • @rajashekarh4281
    @rajashekarh4281 Год назад

    Sir.
    I really doesn't understand it, the sensor output is already in ppm values only, why you create anothe column named as "inPpm" what is the purpose of it ?

  • @candrasuceng4259
    @candrasuceng4259 2 года назад

    hello I have a question, what gas coordinates are you using?

    • @RonaldArthur
      @RonaldArthur 2 года назад

      The coordinates depends on the type on MQ sensor you get. In my video I used MQ2 for demonstration

    • @candrasuceng4259
      @candrasuceng4259 2 года назад

      @@RonaldArthur for example in the video, you take the coordinates of what gas?

  • @suvarnawadekar3137
    @suvarnawadekar3137 7 лет назад

    Hello sir, I am using MQ135 sensor module. I want Sensor value in PPM. How to do analog value of sensor is converted into PPM value. Please Help .

    • @KK-dy7ez
      @KK-dy7ez 5 лет назад

      Sir .have u done ur calibration work?
      we are working on the same. plz help ..........

    • @zeemzemie2586
      @zeemzemie2586 4 года назад

      @@KK-dy7ez hello sir im using the same sensor for my FYP. May i know how to convert to PPM value ? can you help me please

  • @sankarg100
    @sankarg100 6 месяцев назад

    Hi could you send me the code

  • @joshyehezkielnuseraparinus6448
    @joshyehezkielnuseraparinus6448 6 лет назад

    is it same how to calculate ppm of MQ-2 or MQ-3?

    • @pong301275cmu
      @pong301275cmu 5 лет назад

      I have data how to calculate the R ratio to gas concentration for sale.

    • @pong301275cmu
      @pong301275cmu 5 лет назад

      facebook.com/photo.php?fbid=913931562327663&set=pcb.2782490955098042&type=3&theater&ifg=1

  • @malusisibiya3330
    @malusisibiya3330 7 лет назад +3

    This looks good but I cant understand a word you are saying

  • @mostafavafaei2629
    @mostafavafaei2629 7 лет назад

    The first and important step is how could you find the exact scale of calibration curve?! How do you know 200ppm is equal to 1.6 and etc...?

    • @FSchottz
      @FSchottz 6 лет назад

      reading the graphic on datasheet

    • @goesgabriel
      @goesgabriel 6 лет назад

      I Have the same doubt. It is not possible to take that information from datasheet graphic, once the scale is not shown on the graphic. Do you have some news about it?

    • @FSchottz
      @FSchottz 6 лет назад

      if you pay more attention, the "Rs/Ro" line on graphic is between 0.1 and 1 and each line represents 0.1 more till get 1. After that each line represents 1 till get 10. The same applies to PPM Line. ;)

    • @francho123
      @francho123 4 года назад

      See this ruclips.net/video/8jR-_Om4myk/видео.html

    • @francho123
      @francho123 4 года назад

      @@goesgabriel you need to understand how to read a logaritmic scale. Take a look at this ruclips.net/video/8jR-_Om4myk/видео.html

  • @ManOleg38
    @ManOleg38 7 лет назад

    And of course where a code?

  • @procast
    @procast 6 лет назад +7

    Ratio = Rs/Rl? Obviously the datasheet says Rs/R0 which R0 is the point of LPG is at 1000PPM.
    Nothing in this video makes any sense.

    • @bhagasasi425
      @bhagasasi425 8 месяцев назад

      But how he find the linear function is very useful

  • @firdauszainuddin9814
    @firdauszainuddin9814 5 лет назад

    share the code pls

    • @Cosmos-2022
      @Cosmos-2022 5 лет назад

      if you would like to correct your sensor result, but one.
      facebook.com/groups/916444195036070/

  • @MrSasha3050
    @MrSasha3050 7 лет назад +2

    что ты тараторишь ничего не понятно. Your spellin so bad/

  • @abiudbanda
    @abiudbanda 8 лет назад +1

    Hello sir, I don't get it on how you used the formulas in the excel in your code? more elaboration will do . pleas send me explanation on abiudbanda@gmail.com will appreciate. Am using MQ-2, MQ-4 and MQ-7 all together in one sensor node. how do I incorporate all these in one code so that the LCD(20x4) diplays the values in ppm using Arduino uno as the MCU.

    • @1992sira
      @1992sira 7 лет назад

      were you able to complete the code. if yes could you please share it with me on my email mdsiraj1992@gmail.com.
      thank you

    • @4_nd_1
      @4_nd_1 2 года назад

      excuse me sir, can you share the explanation to me too?

    • @nepalikto1232
      @nepalikto1232 Год назад

      @@4_nd_1 hello bro did you get it?

    • @4_nd_1
      @4_nd_1 Год назад

      @@nepalikto1232 nah bro, still waiting):

    • @media-scene9050
      @media-scene9050 2 месяца назад

      @@4_nd_1 what about now do you have a solution now ?

  • @MrFatihenesuzun
    @MrFatihenesuzun 7 лет назад

    This is complete bullshit.İn the code you define the ratio as ratio = Rs/RL but it is abvious in datasheet that ratio is RS/Ro so all that formulla is wrong and why no one realize that.?_?

    • @19trwind82
      @19trwind82 6 лет назад +1

      I saw it too right away. It doesn't make any sense. I do think more people have realized this. If this would be correct, then you must know what RL the manufacturer has used. Usually you can choose from a range (oversimplified, higher RL means more sensitive readings), which means the Rs/R0 in the datasheet would be very likely different from yours. It is just not that easy.

    • @vimalsheoran8040
      @vimalsheoran8040 6 лет назад

      Well, many people also failed to notice that the sensor resistance i.e Rs is simply equal to (5 - Vrl)/Vrl

  • @syedaasra2423
    @syedaasra2423 3 года назад

    couldn't understand a single word

  • @nabilhossain4760
    @nabilhossain4760 8 лет назад +18

    Your English is too hard to understand... :(

  • @marcosleonar
    @marcosleonar 9 лет назад +6

    Your english isn't the best. How you adquire the function lgppm =( log(ratio)*-2.6) + 2.7?

    • @jerrygabrie9356
      @jerrygabrie9356 8 лет назад

      +Marcos Leonardo I have no idea how he came up with that either. Did you figure it out? What i've been following is this guide: sandboxelectronics.com/?p=165 let me know if you have other useful guides. Thanks.

    • @edgarpalacios5150
      @edgarpalacios5150 6 лет назад +1

      Correct me if i'm wrong, but I believe the formula should be logppm=(log(Ratio)+log(Intercept))/Slope. Then ppm=pow(e,logppm)

  • @isfandyar3797
    @isfandyar3797 2 года назад

    stop mumbling man