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 Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by
    #22

    and now eveyone through aceton:

    MQ2    :LPG   :25ppm   CO    :0ppm    SMOKE :48ppm
    MQ6    :LPG   :19677ppm    CH4   :3010ppm
    MQ131  :CL2   :71ppm    O3    :51ppm
    TGS2600:H2    :8448ppm C2H5OH:15007ppm C4H10 :28738ppm
    MQ135  :CO2   :840ppm    CO    :0ppm     CH3   :400ppm    NH4    :1474ppm
    Dust   :raw   : 728    Voltage: 3.55 - Dust Density: 504.30
    

    remark that dust sensor goes up ! and TGS2600 goes down afterward:

    MQ2    :LPG   :8ppm   CO    :0ppm    SMOKE :11ppm
    MQ6    :LPG   :1264ppm    CH4   :1194ppm
    MQ131  :CL2   :27ppm    O3    :24ppm
    TGS2600:H2    :4966ppm C2H5OH:8407ppm C4H10 :16227ppm
    MQ135  :CO2   :840ppm    CO    :0ppm     CH3   :400ppm    NH4    :1474ppm
    Dust   :raw   : 165    Voltage: 0.81 - Dust Density: 36.96
    
    1 Reply Last reply
    0
    • epierreE Offline
      epierreE Offline
      epierre
      Hero Member
      wrote on last edited by epierre
      #23

      @hek I now have the netatmo CO2 xml and json, they are based on the generic sensor.

      But I don't have mysensors running on my vera...

      I would need from you:

      • the device and variable type
      • an icon, but maybe I can reuse the other one

      maybe
      CO2 = {22, "urn:schemas-micasaverde-com:device:CO2Sensor:1", "D_CO2Sensor.xml", "CO2 "}
      CO2 = {36, "urn:micasaverde-com:serviceId:CO2Sensor", "Concentration", "396" },

      S_CO2Sensor.json D_CO2Sensor.xml D_CO2Sensor.json

      P.S. there's the icon from Nest plugin too: http://cocu.la/vera/nest/nest_co.png

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

        About initial calibration, just a warning from this graph:

        chart.png

        you can see high levels around july 21 then dropping in august... the sensor has been restarted... that is what the call clean air...

        this automatic reading at the start should be stored in the sketch and not reclaculated at each reboot or you would loose all reference on your data...

        1 Reply Last reply
        0
        • epierreE Offline
          epierreE Offline
          epierre
          Hero Member
          wrote on last edited by
          #25
          This post is deleted!
          1 Reply Last reply
          0
          • epierreE Offline
            epierreE Offline
            epierre
            Hero Member
            wrote on last edited by
            #26
            This post is deleted!
            YveauxY 1 Reply Last reply
            1
            • epierreE epierre

              This post is deleted!

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #27

              @epierre did you just post the same reply 3 times or is the forum software showing yet another bug?

              http://yveaux.blogspot.nl

              epierreE 1 Reply Last reply
              0
              • YveauxY Yveaux

                @epierre did you just post the same reply 3 times or is the forum software showing yet another bug?

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

                @Yveaux don't know, I did post once...

                1 Reply Last reply
                0
                • korttomaK Offline
                  korttomaK Offline
                  korttoma
                  Hero Member
                  wrote on last edited by
                  #29

                  I wanted to get acquainted with the MQ2 AirQuality Sensor so I took a look at the sketch from github.
                  One thing I noticed was that there is some sleep-time defined, is this just to make the sensor report the value every 30 seconds?
                  I guess it is not for saving power so you can run it on batteries because my understanding is that it needs to be hot in order to function correctly and that will drain the battery fast.

                  Does not look like the calibration during setup takes in account the preheating time either, maybe it is a good idea to add a delay before the calibration so the sensor gets hot enough.

                  Please correct me if I'm wrong.

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

                    @hek Here is a first list from the most commons:

                    • Carbon Monoxide – CO
                    • Carbon Dioxide – CO2
                    • Oxygen – O2
                    • Methane – CH4
                    • Hydrogen – H2
                    • Ammonia – NH3
                    • Isobutane – C4H10
                    • Ethanol – CH3CH2OH (aka C2H5OH or C2H60)
                    • Toluene – C6H5CH3
                    • Hydrogen Sulfide – H2S
                    • Nitrogen Dioxide – NO2
                    • Ozone – O3
                    • Hydrocarbons – VOC
                    • Chlorine CL2
                    • Ammonium NH4
                    • Ethanol CO2H50H
                    • Methyl CH3
                    • Acetone CH3_2CO
                    • LPG (both C3H8 C4H10)
                    epierreE 1 Reply Last reply
                    0
                    • korttomaK korttoma

                      I wanted to get acquainted with the MQ2 AirQuality Sensor so I took a look at the sketch from github.
                      One thing I noticed was that there is some sleep-time defined, is this just to make the sensor report the value every 30 seconds?
                      I guess it is not for saving power so you can run it on batteries because my understanding is that it needs to be hot in order to function correctly and that will drain the battery fast.

                      Does not look like the calibration during setup takes in account the preheating time either, maybe it is a good idea to add a delay before the calibration so the sensor gets hot enough.

                      Please correct me if I'm wrong.

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

                      @korttoma said:

                      Does not look like the calibration during setup takes in account the preheating time either, maybe it is a good idea to add a delay before the calibration so the sensor gets hot enough.

                      Please correct me if I'm wrong.

                      I see your point, but from experience I don't see a difference on heating... I should have a closer look. This one does not need a special pre-heating as some other (MQ-7).

                      Clearly this cannot run on battery on MQ/TGS/MICS series, so surely removing the sleep and adding a wait would do the trick the same way.

                      If you want to play and see something, the MQ135 is much better for it reacts to CO2, so having someone in a room or not you could see it easily changing.

                      A current weakness on the sketches is to take into accound humidity and temperature to correct the value, that will come too.

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

                        I was looking for some other gas sensor, but these have no shield ready to connect to arduino :

                        Sensor	     Operating Voltage  	Heater Power
                        MiCS-2710 (NO2)	  2.5 V	           43 mW
                        MiCS-5525 (CO)	   5.0 V	           76 mW
                        

                        do I need a dedicated 2.5 V linear regulator such as Microchip TC1071VCT713 ?

                        1 Reply Last reply
                        0
                        • epierreE Offline
                          epierreE Offline
                          epierre
                          Hero Member
                          wrote on last edited by
                          #33
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • epierreE Offline
                            epierreE Offline
                            epierre
                            Hero Member
                            wrote on last edited by
                            #34
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • epierreE Offline
                              epierreE Offline
                              epierre
                              Hero Member
                              wrote on last edited by
                              #35

                              @hek about initial calibration, how would I do check if there is a value in the eeprom or not, and if not run an initial calibration ?

                              hekH 1 Reply Last reply
                              0
                              • epierreE epierre

                                @hek about initial calibration, how would I do check if there is a value in the eeprom or not, and if not run an initial calibration ?

                                hekH Offline
                                hekH Offline
                                hek
                                Admin
                                wrote on last edited by
                                #36

                                @epierre

                                Unwritten eeprom has the value 0xff.

                                1 Reply Last reply
                                0
                                • O Offline
                                  O Offline
                                  Omemanti
                                  wrote on last edited by
                                  #37

                                  Hi,
                                  First of al I'm a novice in all of this. I can read some code but the whole arduino thing is new to me.

                                  I tried to get the MQ135 working on my uno with tearing apart the : https://github.com/empierre/arduino/blob/master/1.3/MQ135dgi.ino.
                                  I tried to pull out the bits and parts to get a accurate reading on my serial monitor.

                                  It sometimes read 1 or 2, but most of the time it is 0.
                                  Can it have something to do with it being mounted on its own PCB? (I ordered the one suggested in the store..)
                                  Can someone help me out?

                                  Groetjes Mark

                                  epierreE 1 Reply Last reply
                                  0
                                  • O Omemanti

                                    Hi,
                                    First of al I'm a novice in all of this. I can read some code but the whole arduino thing is new to me.

                                    I tried to get the MQ135 working on my uno with tearing apart the : https://github.com/empierre/arduino/blob/master/1.3/MQ135dgi.ino.
                                    I tried to pull out the bits and parts to get a accurate reading on my serial monitor.

                                    It sometimes read 1 or 2, but most of the time it is 0.
                                    Can it have something to do with it being mounted on its own PCB? (I ordered the one suggested in the store..)
                                    Can someone help me out?

                                    Groetjes Mark

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

                                    @Omemanti hello have you plugged it on the right pins, this is an analogic sensor to be plugged on A0, with 5V and GND pins. Don't wire the digital one, useless...

                                    My minimal value is 53.. so not 0 or 1 hwich looks more like the digital output ;-)

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      Omemanti
                                      wrote on last edited by
                                      #39

                                      should be alright right?

                                      mq135ex.jpg

                                      epierreE 1 Reply Last reply
                                      0
                                      • O Omemanti

                                        should be alright right?

                                        mq135ex.jpg

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

                                        @Omemanti cabling is correct

                                        1 Reply Last reply
                                        0
                                        • korttomaK Offline
                                          korttomaK Offline
                                          korttoma
                                          Hero Member
                                          wrote on last edited by korttoma
                                          #41

                                          Hi,
                                          Where can I find AirQuality1.xml?? (or all files related to this device if there are others then the .xml)

                                          01 09/03/14 13:46:53.685 ctrl_chr[31;1mDevice_LuaUPnP::LoadDeviceDoc can't load /etc/cmh-lu//D_AirQuality1.xmlctrl_chr[0m <0x2acc9000>
                                          02 09/03/14 13:46:53.686 ctrl_chr[33;1mJobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//D_AirQuality1.xmlctrl_chr[0m <0x2acc9000>

                                          Seems like if this file is missing it brakes the whole MySensors plugin.
                                          All devices related to MySensors plugin are blank and nothing seems to update.
                                          Deleting the device that use AirQuality.xml will make the rest work again.

                                          Help!!

                                          • Tomas
                                          hekH 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