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.
  • korttomaK korttoma

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

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

    @korttoma

    Unfortunately no one has created it :(

    korttomaK 1 Reply Last reply
    0
    • hekH hek

      @korttoma

      Unfortunately no one has created it :(

      korttomaK Offline
      korttomaK Offline
      korttoma
      Hero Member
      wrote on last edited by
      #43

      @hek
      ahh, that's why I cant find it... no pressure from my side to get one done but maybe we should mention this little detail on the MySensors building page just as a heads up for others since there is a sketch published and all...

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

        I made a template but I'm unable to test it...

        z-wave - Vera -&gt; Domoticz
        rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
        mysensors -&gt; mysensors-gw -&gt; Domoticz

        1 Reply Last reply
        0
        • epierreE epierre

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

          @hek here is an updated list from the Wunder Weather list of reportable gases:

          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)

          • NO - nitric oxide
          • NOX - nitrogen oxides
          • NO3 ion (nitrate, not adjusted for ammonium ion) UG/M3
          • SO4 ion, sulfate, not adjusted for ammonium ion, UG/M3
          • SO2 sulfur dioxide, ppb
          • EC (elemental carbon) – PM2.5 UG/M3
          • OC (organic carbon, not adjusted for oxygen and hydrogen) – PM2.5 UG/M3
          • BC (black carbon at 880 nm) UG/M3
          • UV-AETH (second channel of Aethalometer at 370 nm) UG/M3
          • PM2.5 mass - UG/M3
          • PM10 mass - PM10 mass

          z-wave - Vera -&gt; Domoticz
          rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
          mysensors -&gt; mysensors-gw -&gt; Domoticz

          hekH 1 Reply Last reply
          0
          • epierreE epierre

            @hek here is an updated list from the Wunder Weather list of reportable gases:

            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)

            • NO - nitric oxide
            • NOX - nitrogen oxides
            • NO3 ion (nitrate, not adjusted for ammonium ion) UG/M3
            • SO4 ion, sulfate, not adjusted for ammonium ion, UG/M3
            • SO2 sulfur dioxide, ppb
            • EC (elemental carbon) – PM2.5 UG/M3
            • OC (organic carbon, not adjusted for oxygen and hydrogen) – PM2.5 UG/M3
            • BC (black carbon at 880 nm) UG/M3
            • UV-AETH (second channel of Aethalometer at 370 nm) UG/M3
            • PM2.5 mass - UG/M3
            • PM10 mass - PM10 mass
            hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #46

            Thanks!

            Still thinking about you gas_type suggestion. It would introduce another level of device types. Hmm..

            1 Reply Last reply
            0
            • korttomaK korttoma

              @hek
              ahh, that's why I cant find it... no pressure from my side to get one done but maybe we should mention this little detail on the MySensors building page just as a heads up for others since there is a sketch published and all...

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

              @korttoma look above to S_CO2Sensor.json D_CO2Sensor.xml D_CO2Sensor.json, if you can test it...

              z-wave - Vera -&gt; Domoticz
              rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
              mysensors -&gt; mysensors-gw -&gt; Domoticz

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

                @Yveaux I know you are strong at finding datasheet... can you find one for me ? I can't find the 2SH12 sensor altgough I've asked for it to all suppliers on aliexpress...

                Same for theWSP1110

                z-wave - Vera -&gt; Domoticz
                rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                mysensors -&gt; mysensors-gw -&gt; Domoticz

                YveauxY 1 Reply Last reply
                0
                • epierreE epierre

                  @Yveaux I know you are strong at finding datasheet... can you find one for me ? I can't find the 2SH12 sensor altgough I've asked for it to all suppliers on aliexpress...

                  Same for theWSP1110

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

                  @epierre Couldn't find it either, sorry...
                  I wouldn't buy a $52,- component without a datasheet, if I were you...

                  http://yveaux.blogspot.nl

                  epierreE 2 Replies Last reply
                  0
                  • YveauxY Yveaux

                    @epierre Couldn't find it either, sorry...
                    I wouldn't buy a $52,- component without a datasheet, if I were you...

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

                    @Yveaux When I asked for the WSP110 they sent me only this (not the same for this one is HCHO and well documented...) :

                    HTB1WamGGXXXXXXVXFXXq6xXFXXXS.jpg

                    z-wave - Vera -&gt; Domoticz
                    rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                    mysensors -&gt; mysensors-gw -&gt; Domoticz

                    hekH 1 Reply Last reply
                    0
                    • epierreE epierre

                      @Yveaux When I asked for the WSP110 they sent me only this (not the same for this one is HCHO and well documented...) :

                      HTB1WamGGXXXXXXVXFXXq6xXFXXXS.jpg

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

                      @epierre

                      I wonder what the green curve represents :confused:

                      epierreE 2 Replies Last reply
                      0
                      • hekH hek

                        @epierre

                        I wonder what the green curve represents :confused:

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

                        @hek that should be the more sensitive, and since it is given mostly for CHCO I guess this is it... (Formaldehyde)

                        z-wave - Vera -&gt; Domoticz
                        rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                        mysensors -&gt; mysensors-gw -&gt; Domoticz

                        1 Reply Last reply
                        0
                        • hekH hek

                          @epierre

                          I wonder what the green curve represents :confused:

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

                          @hek 甲醛 is formaldehyde, given by google translate so I'm right !

                          z-wave - Vera -&gt; Domoticz
                          rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                          mysensors -&gt; mysensors-gw -&gt; Domoticz

                          hekH 1 Reply Last reply
                          0
                          • epierreE epierre

                            @hek 甲醛 is formaldehyde, given by google translate so I'm right !

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

                            @epierre

                            Haha :thumbsup:

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

                              Davide answered me, lot of things to read but a warning:

                              Anyway, for consistent CO2 investigaion, you HAVE to chose a NDIR sensor, those chemical sensor can not be used. They decay in a few year, and they differs a little one from each other.
                              

                              I've asked him back for precision if he speaks of the organic sensor or the ceramic ones (like MQ...).

                              For the CO2, it is MH-Z14 which is $66+ priced.

                              z-wave - Vera -&gt; Domoticz
                              rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                              mysensors -&gt; mysensors-gw -&gt; Domoticz

                              hekH 1 Reply Last reply
                              0
                              • epierreE epierre

                                Davide answered me, lot of things to read but a warning:

                                Anyway, for consistent CO2 investigaion, you HAVE to chose a NDIR sensor, those chemical sensor can not be used. They decay in a few year, and they differs a little one from each other.
                                

                                I've asked him back for precision if he speaks of the organic sensor or the ceramic ones (like MQ...).

                                For the CO2, it is MH-Z14 which is $66+ priced.

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

                                @epierre said:

                                MH-Z14

                                Like this little puppy?

                                epierreE 1 Reply Last reply
                                0
                                • hekH hek

                                  @epierre said:

                                  MH-Z14

                                  Like this little puppy?

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

                                  @hek exact !

                                  z-wave - Vera -&gt; Domoticz
                                  rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                                  mysensors -&gt; mysensors-gw -&gt; Domoticz

                                  1 Reply Last reply
                                  0
                                  • epierreE epierre

                                    @korttoma look above to S_CO2Sensor.json D_CO2Sensor.xml D_CO2Sensor.json, if you can test it...

                                    korttomaK Offline
                                    korttomaK Offline
                                    korttoma
                                    Hero Member
                                    wrote on last edited by
                                    #58

                                    @epierre said:

                                    @korttoma look above to S_CO2Sensor.json D_CO2Sensor.xml D_CO2Sensor.json, if you can test it...

                                    Thanks, found the device files and got the device included again.
                                    Seems like my MQ-2 is always reporting 0 or nothing at all. I guess I need to try to calibrate it again.
                                    It will do the calibration every time the sensor is restarted right?
                                    How can I calibrate the sensor if I put it somewhere where the air is not clean enough? (bring clean air in a jar? ;) )

                                    Maybe it would be an idea to add a calibration button to the mix and when run using the button it would save the calibration related data in the RAM so it can then always use this calibrated value and then it would not re-calibrate every time it loses power.
                                    I have the 10k resistor between GND and A0, is this really necessary?
                                    Does the potentiometer on the sensor board affect the analog out at all or is it only for sensitivity on the digital out?

                                    Sorry for all the questions ;)

                                    • Tomas
                                    epierreE 1 Reply Last reply
                                    0
                                    • korttomaK korttoma

                                      @epierre said:

                                      @korttoma look above to S_CO2Sensor.json D_CO2Sensor.xml D_CO2Sensor.json, if you can test it...

                                      Thanks, found the device files and got the device included again.
                                      Seems like my MQ-2 is always reporting 0 or nothing at all. I guess I need to try to calibrate it again.
                                      It will do the calibration every time the sensor is restarted right?
                                      How can I calibrate the sensor if I put it somewhere where the air is not clean enough? (bring clean air in a jar? ;) )

                                      Maybe it would be an idea to add a calibration button to the mix and when run using the button it would save the calibration related data in the RAM so it can then always use this calibrated value and then it would not re-calibrate every time it loses power.
                                      I have the 10k resistor between GND and A0, is this really necessary?
                                      Does the potentiometer on the sensor board affect the analog out at all or is it only for sensitivity on the digital out?

                                      Sorry for all the questions ;)

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

                                      @korttoma said:

                                      Thanks, found the device files and got the device included again.

                                      So you confirm they can be used as is ?

                                      @korttoma said:

                                      Seems like my MQ-2 is always reporting 0 or nothing at all. I guess I need to try to calibrate it again.
                                      It will do the calibration every time the sensor is restarted right?
                                      How can I calibrate the sensor if I put it somewhere where the air is not clean enough? (bring clean air in a jar? wink )

                                      this is the ongoing work, except CO2 which is known to be 399ppm (co2now.org) that should report this in clean air, for the other that should be little, and for deadly gases a full warning if this is high.

                                      @korttoma said:

                                      Maybe it would be an idea to add a calibration button to the mix and when run using the button it would save the calibration related data in the RAM so it can then always use this calibrated value and then it would not re-calibrate every time it loses power.

                                      That is an option, but EEPROM has a 100k write cycle only... this is what citizensensors says about it:

                                      1) Metal oxide gas sensors have intrinsic drift over time i.e. it is necessary to perform calibration on a regular basis.
                                      
                                      2) Because of spread in baseline resistance, sensitivity, cross-sensitivity, temperature dependency it is not possible to apply same calibration parameters to all the sensors.
                                      
                                      3) This type of sensor is efficient to detect change in concentration but not well adapted to absolute readings because of multiple dependency (T, RH, cross-contaminants).
                                      
                                      4) Using smart algorithm allows indicating useful information like the correlation with CO2 in confined space like offices or buildings (see VZ-87 in attachment).
                                      
                                      For absolute readings with high accuracy and repeatability I agree with you that you should use another technology.
                                      

                                      From this we have the calibration issue... in another post, since they only report resistance, they say they will rebuild all their platform to address callibration issue... but since calibration depends only from a reference gas concentration... only the pre-calibrated sensors remains viable for the low cost MQ/MICS/TGS will never be really calibrated...

                                      @korttoma said:

                                      I have the 10k resistor between GND and A0, is this really necessary?
                                      Does the potentiometer on the sensor board affect the analog out at all or is it only for sensitivity on the digital out?

                                      no you can remove it, I have observed a different behavior when moving it, it looks like it is shared by both digital and analogic for the same reason. What I'd like to find is where to measure the resistance for there are often some more on the board.

                                      @korttoma said:

                                      Sorry for all the questions

                                      good questions are always useful, especially when they meet my current subject of interrest ;-)

                                      z-wave - Vera -&gt; Domoticz
                                      rfx - Domoticz &lt;- MyDomoAtHome &lt;- Imperihome
                                      mysensors -&gt; mysensors-gw -&gt; Domoticz

                                      korttomaK 1 Reply Last reply
                                      0
                                      • epierreE epierre

                                        @korttoma said:

                                        Thanks, found the device files and got the device included again.

                                        So you confirm they can be used as is ?

                                        @korttoma said:

                                        Seems like my MQ-2 is always reporting 0 or nothing at all. I guess I need to try to calibrate it again.
                                        It will do the calibration every time the sensor is restarted right?
                                        How can I calibrate the sensor if I put it somewhere where the air is not clean enough? (bring clean air in a jar? wink )

                                        this is the ongoing work, except CO2 which is known to be 399ppm (co2now.org) that should report this in clean air, for the other that should be little, and for deadly gases a full warning if this is high.

                                        @korttoma said:

                                        Maybe it would be an idea to add a calibration button to the mix and when run using the button it would save the calibration related data in the RAM so it can then always use this calibrated value and then it would not re-calibrate every time it loses power.

                                        That is an option, but EEPROM has a 100k write cycle only... this is what citizensensors says about it:

                                        1) Metal oxide gas sensors have intrinsic drift over time i.e. it is necessary to perform calibration on a regular basis.
                                        
                                        2) Because of spread in baseline resistance, sensitivity, cross-sensitivity, temperature dependency it is not possible to apply same calibration parameters to all the sensors.
                                        
                                        3) This type of sensor is efficient to detect change in concentration but not well adapted to absolute readings because of multiple dependency (T, RH, cross-contaminants).
                                        
                                        4) Using smart algorithm allows indicating useful information like the correlation with CO2 in confined space like offices or buildings (see VZ-87 in attachment).
                                        
                                        For absolute readings with high accuracy and repeatability I agree with you that you should use another technology.
                                        

                                        From this we have the calibration issue... in another post, since they only report resistance, they say they will rebuild all their platform to address callibration issue... but since calibration depends only from a reference gas concentration... only the pre-calibrated sensors remains viable for the low cost MQ/MICS/TGS will never be really calibrated...

                                        @korttoma said:

                                        I have the 10k resistor between GND and A0, is this really necessary?
                                        Does the potentiometer on the sensor board affect the analog out at all or is it only for sensitivity on the digital out?

                                        no you can remove it, I have observed a different behavior when moving it, it looks like it is shared by both digital and analogic for the same reason. What I'd like to find is where to measure the resistance for there are often some more on the board.

                                        @korttoma said:

                                        Sorry for all the questions

                                        good questions are always useful, especially when they meet my current subject of interrest ;-)

                                        korttomaK Offline
                                        korttomaK Offline
                                        korttoma
                                        Hero Member
                                        wrote on last edited by
                                        #60

                                        @epierre said:

                                        @korttoma said:

                                        Thanks, found the device files and got the device included again.
                                        So you confirm they can be used as is ?

                                        well, for the device in Vera I had to change the parameter "device_file" from "D_AirQuality1.xml" to "D_CO2Sensor.xml".
                                        I don't get any errors but I also do not get any values but I guess this is because my node is not sending any values.

                                        I'll try to look in to why my node is not reporting any value and try to remove the 10kR and see if I can measure the load resistance of my MQ-2 sensor board and maybe even remove some unnecessary components from it...

                                        • Tomas
                                        1 Reply Last reply
                                        0
                                        • P Offline
                                          P Offline
                                          pbo
                                          wrote on last edited by
                                          #61

                                          Hi All. Very interesting stuff, thanks all for sharing! I'm attempting to integrate an MQ-2, MQ-6 and MQ-135 (sensors only, no boards) using parts of epierre's sketch but I'm confused on a few things on how to set it up properly:

                                          1. What resistor(s) should go between A0 and ground? Keep in mind I'm not using a sensor board with built in protection resistor. Should there be a protection resistor then an adjustable pot for calibration?
                                          2. define RL_VALUE (5)
                                            -- does this refer to the size of the protection resistor between A0 and ground?
                                          3. define RO_CLEAN_AIR_FACTOR (9.83)
                                            -- does this value need to change at all?
                                          4. float Ro4 = 2.511;
                                            -- when you say this needs to be tuned to 10k, does that mean put a pot between A0 and ground and adjust until the calibration R0 is 10k?

                                          Sorry for all the questions, I appreciate any input! Thanks!

                                          epierreE 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.1k

                                          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