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. Air Quality Sensor

Air Quality Sensor

Scheduled Pinned Locked Moved Hardware
calibrationaqigas sensorhchoair quality
270 Posts 46 Posters 308.8k Views 35 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.
  • epierreE epierre

    @jumping you will need to scale down the script obviously, in term of power it will be too short to have more than one.

    jumpingJ Offline
    jumpingJ Offline
    jumping
    wrote on last edited by
    #260

    @epierre said:

    @jumping you will need to scale down the script obviously, in term of power it will be too short to have more than one.

    thanks for your answer! please, can you explain how the following code in your sketch is related to datasheet?

    • float CO_secCurve[2] = {726.7809737, -4.040111669}; //MQ135

    I understand the sketch in the "Gas Detection - Example", but not the previous.
    sorry for my poor english :-)

    Raspberrry PI3 - Domoticz
    ESP8266 GW - MySensors 2.1.1

    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by
      #261

      @jumping see just above on power regressin curves, this is the result from a power regression based on the data sheet provided by one maker. Sometime I leave the data points in the sketch, sometime not (based on history ;-)

      z-wave - Vera -> Domoticz
      rfx - Domoticz <- MyDomoAtHome <- Imperihome
      mysensors -> mysensors-gw -> Domoticz

      1 Reply Last reply
      0
      • epierreE epierre

        Air Quality Index is a combination of several sensors values:

        • sulfur dioxide (SO2) MQ136 / (avoid:2SH12 no datasheet)
        • nitrogen dioxide (NO2) MiCS-2710 MiCS-2714 MICS-6814
        • carbon monoxide (CO) MQ-7 MiCS-5525 TGS2442 MICS-6814
        • ozone (O3) MQ131 MICS-2610 MICS-2614
        • Particles concentration: PM2.5 and PM10 (SamYoung DSM501, Shinyei_PPD42NS, avoid: Sharp_GP2Y1010AU)

        Additional gases can be interesting to track:

        • CO2 MH-Z14

        Current work being done:

        • manage default Ro once
        • take into account humidity
        • manage to get proper values from TGS2600
        • possibility to have a push if a value goes up too quick (for deadly gases even without calibration)

        What is done:

        • remove powerdown to keep heaters on
        • add a five minute pre-heat on each startup
        • removed the powerdown
        • 2SH12 datasheet doesn't exist

        WARNING: all sensors differs even within the same reference, a calibration has to be done each time. Do not rely upon a sketch result with deadly gases.

        Working sketch in 1.4/1.5:

        • https://github.com/empierre/arduino/blob/master/MQv01dgi_1_4.ino (for a Mega, MQ2, MQ6, MQ131, MQ136, MQ138, TGS2600, TGS2602, HCHO, Barometer BMP085, DHT11)
        • https://github.com/empierre/arduino/blob/master/AirQuality-CO-NO2-NH3.ino for MICS-6814
        • https://github.com/empierre/arduino/blob/master/CO2-MH-Z14.ino
        • https://github.com/empierre/arduino/blob/master/DustSensor_SamYoung_DSM501.ino
        • https://github.com/empierre/arduino/blob/master/DustSensor_Shinyei_PPD42NS.ino
        A Offline
        A Offline
        ambuj
        wrote on last edited by
        #262

        @epierre Hi I am working on the MQ2 sensor, I want to know CO level. Did you do it before with this sensor?

        http://www.amazon.in/Butane-Hydrogen-Sensor-Detector-Arduino/dp/B01N0XSQ9J?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=9d5b3107-037a-4d7b-a8b9-722d0a4bcfea.

        I am using this module and just start work with this sensor.

        epierreE 1 Reply Last reply
        0
        • Lukács AttilaL Offline
          Lukács AttilaL Offline
          Lukács Attila
          wrote on last edited by
          #263

          @epierre is it possible that the lastest github for Samyoung 501a is not correct? Flashed it and the results are way too high (157000 mg/m3)?

          epierreE 1 Reply Last reply
          0
          • S Offline
            S Offline
            surepic
            wrote on last edited by
            #264

            Ppm percentage calculations in the code seems wrong. Instead of providing rs/ro ratio to the function is transfered rs value not the ratio.

            alexsh1A 1 Reply Last reply
            0
            • A ambuj

              @epierre Hi I am working on the MQ2 sensor, I want to know CO level. Did you do it before with this sensor?

              http://www.amazon.in/Butane-Hydrogen-Sensor-Detector-Arduino/dp/B01N0XSQ9J?tag=googinhydr18418-21&tag=googinkenshoo-21&ascsubtag=9d5b3107-037a-4d7b-a8b9-722d0a4bcfea.

              I am using this module and just start work with this sensor.

              epierreE Offline
              epierreE Offline
              epierre
              Hero Member
              wrote on last edited by
              #265

              @ambuj please see the begining of the discussion regarding MQ like reliability

              z-wave - Vera -> Domoticz
              rfx - Domoticz <- MyDomoAtHome <- Imperihome
              mysensors -> mysensors-gw -> Domoticz

              1 Reply Last reply
              0
              • Lukács AttilaL Lukács Attila

                @epierre is it possible that the lastest github for Samyoung 501a is not correct? Flashed it and the results are way too high (157000 mg/m3)?

                epierreE Offline
                epierreE Offline
                epierre
                Hero Member
                wrote on last edited by
                #266

                @lukács-attila check wiring first, seems there are several sub version around thay may need other values from datasheet

                z-wave - Vera -> Domoticz
                rfx - Domoticz <- MyDomoAtHome <- Imperihome
                mysensors -> mysensors-gw -> Domoticz

                1 Reply Last reply
                0
                • S surepic

                  Ppm percentage calculations in the code seems wrong. Instead of providing rs/ro ratio to the function is transfered rs value not the ratio.

                  alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by
                  #267

                  @surepic Which sensor? Which code? Would you please be more specific?

                  1 Reply Last reply
                  0
                  • alexsh1A alexsh1

                    @epierre I wonder if you looked at this sensor Figaro TGS8100:

                    http://www.figarosensor.com/products/entry/tgs8100.html

                    Looks like it is perfect for a low-powered platform.

                    R Offline
                    R Offline
                    Rosmel
                    wrote on last edited by
                    #268

                    @alexsh1
                    Hello, I am working recently with tgs8100 sensors, and I am developing a project, I would like to know how it was in the results? How did you acquire them? Any arduino code? Thank you

                    1 Reply Last reply
                    0
                    • alowhumA Offline
                      alowhumA Offline
                      alowhum
                      Plugin Developer
                      wrote on last edited by
                      #269

                      @rosmel said in Air Quality Sensor:

                      tgs8100

                      That's also quite a non-precise sensor if I understand correctly. Useful for general 'how's the air', but because it will respond to so many different 'polutants' you never know which of those polutant is the culprit.

                      You will find code in the forum for good CO, CO2 and fine dust sensors.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rayzyzy
                        wrote on last edited by
                        #270

                        Hi,
                        Working with tgs2602 , tgs 2620 and tgs2611 . I've read the replies from top to bottom but haven't understood how
                        exactly i take data from the graph in datasheet and use it with power regression .

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        16

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.0k

                        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