Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. get(Calculating) toluene gas with MQ138 Sensor

get(Calculating) toluene gas with MQ138 Sensor

Scheduled Pinned Locked Moved Hardware
1 Posts 1 Posters 954 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JeonSY
    wrote on last edited by
    #1

    hello!
    i want to get a toluene PPM by using MQ138 sensor.
    there are some sources on internet so i have used that.
    but the output is not correct( i have another thing to get a toluene gas the name is YesAir device)
    so i want to check that source codes are correct.
    is there another guys have used MQ138 sensor?
    i used this sources
    https://gist.github.com/esmarr58/2e9335bfc64077407ed2286408982f61
    i knew this site from this source. but i do not know how to get the curve and can not sure the initialized value. and some codes was not working such as

    return  (long)((long)(1024*1000*(long)rl_value)/raw_adc-(long)rl_value);
    

    https://gist.github.com/esmarr58/2e9335bfc64077407ed2286408982f61
    i used this source. sure i changed curve to [1.7, -0.57, -0.5] and RL value to 4.7(from datasheet)
    now i can get a PPM value but the values are 0.00006, 0.00008.....
    MQ138 datasheet

    i know this sensor's range is 5~500 PPM. so i want to check the code. that codes are correct?
    and if that wrong, where should i get a correct source code..?
    waiting anything.
    regard.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    22

    Online

    12.1k

    Users

    11.2k

    Topics

    113.4k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular