Skip to content
  • 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. My Project
  3. Air Quality: CO2 Sensor MH-Z14
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Air Quality: CO2 Sensor MH-Z14

Scheduled Pinned Locked Moved My Project
gas sensorair qualityco2
28 Posts 12 Posters 28.2k Views 13 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
    #1

    Hello,

    I have started working on the MH-Z14 which is present in the store, that is accurate (uses infrared to mesure particles) and does not evolve in time.

    http://mysensors.org/store/#gas

    It gives back the concentration based on a pulse modulation (PWM). Here is my first sketch attempt:

    https://github.com/empierre/arduino/blob/master/CO2-MH-Z14.ino

    Current status: in investigation
    Discussion: The script uses the pulseIn function, but it appears that the output value is
    very much more the 1004ms cycle advised:

    pulseIn: 324657 ms
    calculated value: 649310
    324305 ms
    648606
    324136 ms
    648268
    323617 ms
    647230
    

    Anyway when I beathe on the sensor it reacts which is a good news.

    I will try to spy it with a DSO to see if there is an issue.

    Another way to do it would be through the UART access...

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

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

      Hello,

      I tried to see with the DSO and the pulse was good (1023ms).

      Looking back to values and the pulseIn, I found this is nanosecond and not millisecond... my mistake !

      So the script is validated !

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

      1 Reply Last reply
      0
      • daulagariD Offline
        daulagariD Offline
        daulagari
        Hero Member
        wrote on last edited by
        #3

        Nice, thanks, good to have to monitor in-house CO2 levels and global warming...

        Quite an expensive sensor, what are your plans with it?

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

          No special plan, it is still my quest for gas reading, from imprecise and dirt cheap MQ and like to some entry level ones that are way better ...

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

          BulldogLowellB 1 Reply Last reply
          0
          • epierreE epierre

            No special plan, it is still my quest for gas reading, from imprecise and dirt cheap MQ and like to some entry level ones that are way better ...

            BulldogLowellB Offline
            BulldogLowellB Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #5

            @epierre

            Thanks for your work on this. I am going to build 2 for my factory in China. I make construction heaters fired by diesel, kerosene, JET-A/B, and #1/#2 heating oil. I am always concerned about the employees exposure to CO buildup, even though we employ a high capacity ventilation system.

            I will let you know what the final build looks like, I envision a very high quality (machine-tool quality) build with colour changing indicator and klaxon. Something different for me, I am usually making things for my kids or the house so it has to look 'nice-ish'.

            cheers!

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

              @BulldogLowell said:

              I am always concerned about the employees exposure to CO buildup, even though we employ a high capacity ventilation system.

              I guess you meant CO2 ? ;-) I'm happy people find new use to those sketches, that is the magic of this forum ! The more basic bricks we'll have, the more usefull the use of it will be !

              You can also check the Particle mesurement in air with the SamYung, I will extend it to PM1 and PM2.5:
              http://forum.mysensors.org/topic/291/dust-sensor-1-4/20

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

              1 Reply Last reply
              0
              • R Offline
                R Offline
                roy
                wrote on last edited by
                #7

                The sensor price has dropped a lot during the past years , monitor CO2 in house at 0~10000 ppm is becoming popular to remind necessary ventilation .
                Using CO2 sensor module for a DIY CO2 monitor is a good choice , of course , this is a OEM products , mostly for using by factory .
                See detailed at
                http://www.gassensor.com.cn/product_en/typeid/9.html

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

                  @roy how can these be purchased ? they don't exist on aliexpress...

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

                  R 1 Reply Last reply
                  0
                  • epierreE epierre

                    @roy how can these be purchased ? they don't exist on aliexpress...

                    R Offline
                    R Offline
                    roy
                    wrote on last edited by
                    #9

                    @epierre I am sales manager of CO2 sensor in this company , We didn't retail CO2 sensor . Because the product is designed to built-in IAQ device , we used to cooperate with factory who need sensor on their device .

                    This products have MOQ reqirement .You can also send more information about your project to my email ruyi.li@gassensor.com.cn
                    I will see what support we can provide to you .

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

                      Hello,

                      There are projects and projects... Here I provide code for many already available sensors, and on Particle/Spark.io we are building hardware that would facilitate IAQ devices building, but it is always the end user that has to order the device, which is thus an important point.

                      The MOQ is thus irrelevant except if people group themselves to reach the minimum order quantity, but before that we need to make some prototypes so the code will be tested and validated for people to use it anywhere.

                      Tell me if this is possible to get samples in this optic,

                      Emmanuel

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

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        roy
                        wrote on last edited by
                        #11

                        Positive answer , we can provide samples . see available types in attachment .Which one do you preferred ?Choose the output interface and I can send communication protocol in advacne .
                        Just need your information to send products ,your company ,shipping address , contact name , contact phone number .Air Quality Sensor Module Product List (Wuhan Cubic-V2015.1).pdf
                        Regards
                        Roy Lee
                        ruyi.li@gassensor.com.cn

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

                          @roy any news ? I've sent you an email but did not get any answer so far...

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

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            roy
                            wrote on last edited by
                            #13

                            @epierre ,can you please send your email again, it maybe spammed by my server .

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mortommy
                              wrote on last edited by mortommy
                              #14

                              Hi @epierre ,
                              the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
                              Thank you.
                              Regards.

                              epierreE alexsh1A 2 Replies Last reply
                              0
                              • M mortommy

                                Hi @epierre ,
                                the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
                                Thank you.
                                Regards.

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

                                @mortommy the €23 is the same I have (I paid $70 at the time...)

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

                                1 Reply Last reply
                                0
                                • M mortommy

                                  Hi @epierre ,
                                  the CO2 sensor is not available anymore in the store page. On aliexpress there are sensors from 25$ to 80$; did you test the cheapest one? Or in the meantime you have any other suggestion? I'd like to order one and make my CO2 sensor node.
                                  Thank you.
                                  Regards.

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

                                  @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

                                  You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

                                  http://www.aliexpress.com/item/FREE-SHIPPING-MH-Z19-CO2-detection-sensor-module/32576013283.html?spm=2114.30010308.3.21.cLSnEB&ws_ab_test=searchweb201556_10,searchweb201602_5_10037_10017_507_10032,searchweb201603_2&btsid=ce733a29-ca27-4f2a-b438-95e3abc647b0

                                  epierreE 1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mortommy
                                    wrote on last edited by
                                    #17

                                    thank you guys. :thumbsup:

                                    1 Reply Last reply
                                    0
                                    • alexsh1A alexsh1

                                      @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

                                      You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

                                      http://www.aliexpress.com/item/FREE-SHIPPING-MH-Z19-CO2-detection-sensor-module/32576013283.html?spm=2114.30010308.3.21.cLSnEB&ws_ab_test=searchweb201556_10,searchweb201602_5_10037_10017_507_10032,searchweb201603_2&btsid=ce733a29-ca27-4f2a-b438-95e3abc647b0

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

                                      @alexsh1 said:

                                      @mortommy I'd strongly suggest you go for this sensor. It is expensive, but very-very precise and reliable. You can go for MQ-135 - this is what I did at the beginning. It is utterly useless and can probably be used in enclosed premises, but not in normal houses/flats as its reading are just jumping up and down.

                                      agreed ! that comes with experience !

                                      You can go for the MH-Z19 sensor - it is not much cheaper than MH-Z14 (or MH-Z14A).

                                      it is now $3 difference

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

                                      1 Reply Last reply
                                      0
                                      • F Offline
                                        F Offline
                                        flopp
                                        wrote on last edited by
                                        #19

                                        I am playing with a MH-Z19 and found this thread and the link in the first post is not working.

                                        This is the correct link

                                        https://github.com/empierre/arduino/blob/master/AirQuality-CO2-MH-Z14.ino

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

                                          Does the MH-Z14 code work for the MH-Z19 as well?

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


                                          4

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular