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. My Project
  3. Particle Powered Air Quality Sensor Logging to Google Docs

Particle Powered Air Quality Sensor Logging to Google Docs

Scheduled Pinned Locked Moved My Project
si7021air qualitypm2.5particlehpma115s0ccs811
69 Posts 6 Posters 6.4k Views 8 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.
  • alowhumA alowhum

    Nice work.

    Does it use the temperature and humidity values to optimise the fine dust calculation?

    Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by
    #3

    @alowhum said in Particle Powered Air Quality Sensor Logging to Google Docs:

    Nice work.

    Does it use the temperature and humidity values to optimise the fine dust calculation?

    No it doesn't.
    And by the way PM10 values are worthless, they are evaluated based on PM2.5 values. Meaning if you put the sensor in an environment with only 2.5-10 µm sized particles, it will say 0ug/m3.
    Not saying the sensor is bad, it's good but only for pm2.5. I suspect it's just a remake of a PMS5003 with longer lasting laser and fan.

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

      Wait, are you saying you believe the Honeywell device is a remake of the Plantower PMS5003?

      1 Reply Last reply
      0
      • FotoFieberF Offline
        FotoFieberF Offline
        FotoFieber
        Hardware Contributor
        wrote on last edited by
        #5

        @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

        Particle^2 Air Quality Sensor

        The CO2 measurement seems to be based on AMS CCS811. What is your experience with this sensor?

        I was comparing this sensor with Netatmo (+-50 ppm accuracy according to the website) and a MH-Z14A. Maybe you can tell me from my graph, if my sensor is broken and I should consider oredering another:

        0_1554993748723_co2-sensor-comparison.png

        J 1 Reply Last reply
        0
        • alowhumA alowhum

          Nice work.

          Does it use the temperature and humidity values to optimise the fine dust calculation?

          J Offline
          J Offline
          jaredwolff
          wrote on last edited by jaredwolff
          #6

          @alowhum Only used for TVOC. Though I think that algorithm is suspect. I've put a line in with AMS about it.

          @fotofieber are you running the sensor as-is or are you updating the environmental data as you run it? As I mention above, I've seen some weird results with the CCS811. (Lots of correlation with humidity and temperature) There are other TVOC/C02 sensors out there that I definitely want to check out and compare side-by-side. (right now I only have one data point which is the CCS811)

          1 Reply Last reply
          0
          • FotoFieberF FotoFieber

            @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

            Particle^2 Air Quality Sensor

            The CO2 measurement seems to be based on AMS CCS811. What is your experience with this sensor?

            I was comparing this sensor with Netatmo (+-50 ppm accuracy according to the website) and a MH-Z14A. Maybe you can tell me from my graph, if my sensor is broken and I should consider oredering another:

            0_1554993748723_co2-sensor-comparison.png

            J Offline
            J Offline
            jaredwolff
            wrote on last edited by
            #7

            @FotoFieber btw which code are you using? Adafruit's library?

            FotoFieberF 1 Reply Last reply
            0
            • Nca78N Nca78

              @alowhum said in Particle Powered Air Quality Sensor Logging to Google Docs:

              Nice work.

              Does it use the temperature and humidity values to optimise the fine dust calculation?

              No it doesn't.
              And by the way PM10 values are worthless, they are evaluated based on PM2.5 values. Meaning if you put the sensor in an environment with only 2.5-10 µm sized particles, it will say 0ug/m3.
              Not saying the sensor is bad, it's good but only for pm2.5. I suspect it's just a remake of a PMS5003 with longer lasting laser and fan.

              J Offline
              J Offline
              jaredwolff
              wrote on last edited by
              #8

              @nca78 said in Particle Powered Air Quality Sensor Logging to Google Docs:

              @alowhum said in Particle Powered Air Quality Sensor Logging to Google Docs:

              Nice work.

              Does it use the temperature and humidity values to optimise the fine dust calculation?

              No it doesn't.
              And by the way PM10 values are worthless, they are evaluated based on PM2.5 values. Meaning if you put the sensor in an environment with only 2.5-10 µm sized particles, it will say 0ug/m3.
              Not saying the sensor is bad, it's good but only for pm2.5. I suspect it's just a remake of a PMS5003 with longer lasting laser and fan.

              I would have to agree with this observation thus far. The PM10 readings correlate 1:1 with the PM2.5. Good thing PM2.5 is what we really care about! For anyone who's curious, the sensor saturates at 1000µg/m3. Just had an interesting experience with that... 😬

              1 Reply Last reply
              0
              • J jaredwolff

                @FotoFieber btw which code are you using? Adafruit's library?

                FotoFieberF Offline
                FotoFieberF Offline
                FotoFieber
                Hardware Contributor
                wrote on last edited by
                #9

                @jaredwolff
                I am using the adafruit library and compensating temp/hum with the measurements of a SI7021. The results are really bad and I have ordered another CCS811 for comparison.

                void readCCS811(JsonObject &root)
                {
                  static bool bFirst = true;
                  static Adafruit_CCS811 sensor;
                  if (bFirst)
                  {
                    DEBUG_PRINTLN("Initializing CCS811");
                    if (!sensor.begin())
                    {
                      DEBUG_PRINTLN("CCS811 Initialization failed.");
                    }
                    else
                    {
                      sensor.setDriveMode(CCS811_DRIVE_MODE_IDLE);
                      delay(10000);
                      sensor.setDriveMode(CCS811_DRIVE_MODE_60SEC);
                      bFirst = false;
                    }
                  }
                  if (sensor.available())
                  {
                
                    // setEnvironmentalData(uint8_t humidity, double temperature);
                    sensor.setEnvironmentalData(lasthum, lasttemp);
                
                    if (!sensor.readData())
                    {
                      uint16_t lastppm = sensor.geteCO2();
                      if (lastppm > 0)
                      { 
                        JsonObject rootCCS811 = root.createNestedObject("ccs811");
                        rootCCS811["co2"] = lastppm;
                        rootCCS811["tvoc"] = sensor.getTVOC();
                      }
                    }
                    else
                    {
                      DEBUG_PRINTLN("CCS811 ERROR!");
                    }
                  }
                }
                
                J 2 Replies Last reply
                0
                • FotoFieberF FotoFieber

                  @jaredwolff
                  I am using the adafruit library and compensating temp/hum with the measurements of a SI7021. The results are really bad and I have ordered another CCS811 for comparison.

                  void readCCS811(JsonObject &root)
                  {
                    static bool bFirst = true;
                    static Adafruit_CCS811 sensor;
                    if (bFirst)
                    {
                      DEBUG_PRINTLN("Initializing CCS811");
                      if (!sensor.begin())
                      {
                        DEBUG_PRINTLN("CCS811 Initialization failed.");
                      }
                      else
                      {
                        sensor.setDriveMode(CCS811_DRIVE_MODE_IDLE);
                        delay(10000);
                        sensor.setDriveMode(CCS811_DRIVE_MODE_60SEC);
                        bFirst = false;
                      }
                    }
                    if (sensor.available())
                    {
                  
                      // setEnvironmentalData(uint8_t humidity, double temperature);
                      sensor.setEnvironmentalData(lasthum, lasttemp);
                  
                      if (!sensor.readData())
                      {
                        uint16_t lastppm = sensor.geteCO2();
                        if (lastppm > 0)
                        { 
                          JsonObject rootCCS811 = root.createNestedObject("ccs811");
                          rootCCS811["co2"] = lastppm;
                          rootCCS811["tvoc"] = sensor.getTVOC();
                        }
                      }
                      else
                      {
                        DEBUG_PRINTLN("CCS811 ERROR!");
                      }
                    }
                  }
                  
                  J Offline
                  J Offline
                  jaredwolff
                  wrote on last edited by
                  #10

                  @fotofieber you're not alone in this. I've actually stopped setting the environmental data.

                  I don't see as many random spikes as with. I've asked AMS about the frequency or when the data should be updated. I have a feeling it's supposed to be sparingly..

                  1 Reply Last reply
                  0
                  • FotoFieberF FotoFieber

                    @jaredwolff
                    I am using the adafruit library and compensating temp/hum with the measurements of a SI7021. The results are really bad and I have ordered another CCS811 for comparison.

                    void readCCS811(JsonObject &root)
                    {
                      static bool bFirst = true;
                      static Adafruit_CCS811 sensor;
                      if (bFirst)
                      {
                        DEBUG_PRINTLN("Initializing CCS811");
                        if (!sensor.begin())
                        {
                          DEBUG_PRINTLN("CCS811 Initialization failed.");
                        }
                        else
                        {
                          sensor.setDriveMode(CCS811_DRIVE_MODE_IDLE);
                          delay(10000);
                          sensor.setDriveMode(CCS811_DRIVE_MODE_60SEC);
                          bFirst = false;
                        }
                      }
                      if (sensor.available())
                      {
                    
                        // setEnvironmentalData(uint8_t humidity, double temperature);
                        sensor.setEnvironmentalData(lasthum, lasttemp);
                    
                        if (!sensor.readData())
                        {
                          uint16_t lastppm = sensor.geteCO2();
                          if (lastppm > 0)
                          { 
                            JsonObject rootCCS811 = root.createNestedObject("ccs811");
                            rootCCS811["co2"] = lastppm;
                            rootCCS811["tvoc"] = sensor.getTVOC();
                          }
                        }
                        else
                        {
                          DEBUG_PRINTLN("CCS811 ERROR!");
                        }
                      }
                    }
                    
                    J Offline
                    J Offline
                    jaredwolff
                    wrote on last edited by
                    #11

                    @fotofieber I've had some luck with removing the fraction portion of the temperature readings. It looks like the Adafruit code does use it. The suggested code from AMS does not use it.

                    I'm also tooling around with saving the baseline. They suggest every 24h. That should help bring your readings back up to where they were in the event of a reset.

                    FotoFieberF 1 Reply Last reply
                    0
                    • J jaredwolff

                      @fotofieber I've had some luck with removing the fraction portion of the temperature readings. It looks like the Adafruit code does use it. The suggested code from AMS does not use it.

                      I'm also tooling around with saving the baseline. They suggest every 24h. That should help bring your readings back up to where they were in the event of a reset.

                      FotoFieberF Offline
                      FotoFieberF Offline
                      FotoFieber
                      Hardware Contributor
                      wrote on last edited by FotoFieber
                      #12

                      @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

                      @fotofieber I've had some luck with removing the fraction portion of the temperature readings. It looks like the Adafruit code does use it. The suggested code from AMS does not use it.

                      Could you please share your code?

                      There is an application note about update frequency on https://ams.com/documents/20143/36005/CCS811_AN000369_2-00.pdf/fb08da36-5b40-732b-39b0-62d2d9db5a3c

                      It is recommended that the T+RH data is read from the ENS210 at the same frequency as the
                      CCS811 generates eCO2 and TVOC outputs. For example in mode 3, 60 second mode, the
                      application software should read the ENS210 data once every minute.

                      The code in the application notes

                      i2c_buff[0] = ((RH % 1000) / 100) > 7 ? (RH/1000 + 1)<<1 : (RH/1000)<<1;
                      i2c_buff[1] = 0;
                      if(((RH % 1000) / 100) > 2 && (((RH % 1000) / 100) < 8))
                      {
                      i2c_buff[0] |= 1;
                      }
                      

                      looks quit different to the adafruit implementation:

                      uint8_t hum_perc = humidity << 1;
                      	
                      // other code
                      
                      
                      	uint8_t buf[] = {hum_perc, 0x00,
                      		(uint8_t)((temp_conv >> 8) & 0xFF), (uint8_t)(temp_conv & 0xFF)};
                      

                      In the same document the handling of baseline is described. I think the adafruit code may be incomplete... :)

                      I'll try the sparkfun lib, it hase baseline support and looks more like the programming note from aws.

                      FotoFieberF 1 Reply Last reply
                      0
                      • FotoFieberF FotoFieber

                        @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

                        @fotofieber I've had some luck with removing the fraction portion of the temperature readings. It looks like the Adafruit code does use it. The suggested code from AMS does not use it.

                        Could you please share your code?

                        There is an application note about update frequency on https://ams.com/documents/20143/36005/CCS811_AN000369_2-00.pdf/fb08da36-5b40-732b-39b0-62d2d9db5a3c

                        It is recommended that the T+RH data is read from the ENS210 at the same frequency as the
                        CCS811 generates eCO2 and TVOC outputs. For example in mode 3, 60 second mode, the
                        application software should read the ENS210 data once every minute.

                        The code in the application notes

                        i2c_buff[0] = ((RH % 1000) / 100) > 7 ? (RH/1000 + 1)<<1 : (RH/1000)<<1;
                        i2c_buff[1] = 0;
                        if(((RH % 1000) / 100) > 2 && (((RH % 1000) / 100) < 8))
                        {
                        i2c_buff[0] |= 1;
                        }
                        

                        looks quit different to the adafruit implementation:

                        uint8_t hum_perc = humidity << 1;
                        	
                        // other code
                        
                        
                        	uint8_t buf[] = {hum_perc, 0x00,
                        		(uint8_t)((temp_conv >> 8) & 0xFF), (uint8_t)(temp_conv & 0xFF)};
                        

                        In the same document the handling of baseline is described. I think the adafruit code may be incomplete... :)

                        I'll try the sparkfun lib, it hase baseline support and looks more like the programming note from aws.

                        FotoFieberF Offline
                        FotoFieberF Offline
                        FotoFieber
                        Hardware Contributor
                        wrote on last edited by
                        #13

                        The CCS81 seems to be much more complicated to handle than the MH-Z14A. There is an MCU on the sensor and you can make firmware upgrades which should reduce the burn in time. After burn in, you shoul save the actual baseline from time to time (e.g. every 24 hours) and restore it, when you reboot.

                        My hacked code looks now much more complicated:

                        void readCCS811(JsonObject &root)
                        {
                          static int loopCount = 0;
                          static bool bFirst = true;
                          static CCS811 myCCS811(CCS811_ADDR);
                          JsonObject rootCCS811;
                        
                          loopCount++;
                          if (bFirst)
                          {
                            DEBUG_PRINTLN("Initializing CCS811");
                            CCS811Core::status returnCode = myCCS811.begin();
                            DEBUG_PRINT("CCS811 begin exited with: ");
                            printDriverError(returnCode);
                            DEBUG_PRINTLN("");
                        
                            if (returnCode == CCS811Core::SENSOR_SUCCESS)
                              bFirst = false;
                        
                            //This sets the mode to 60 second reads, and prints returned error status.
                            returnCode = myCCS811.setDriveMode(3);
                            DEBUG_PRINT("Mode request exited with: ");
                            printDriverError(returnCode);
                            DEBUG_PRINTLN("");
                        
                            if ((EEPROM.read(0) == 0xA5) && (EEPROM.read(1) == 0xB2))
                            {
                              DEBUG_PRINTLN("EEPROM contains saved data.");
                              //The recovered baseline is packed into a 16 bit word
                              unsigned int baselineToApply = ((unsigned int)EEPROM.read(2) << 8) | EEPROM.read(3);
                              DEBUG_PRINT("Saved baseline: 0x");
                              if (baselineToApply < 0x100)
                                DEBUG_PRINT("0");
                              if (baselineToApply < 0x10)
                                DEBUG_PRINT("0");
                              DEBUG_PRINT(baselineToApply, HEX);
                              //This programs the baseline into the sensor and monitors error states
                              CCS811Core::status errorStatus = myCCS811.setBaseline(baselineToApply);
                              if (errorStatus == CCS811Core::SENSOR_SUCCESS)
                              {
                                DEBUG_PRINTLN("Baseline written to CCS811.");
                              }
                              else
                              {
                                printDriverError(errorStatus);
                              }
                            }
                          }
                        
                          if (myCCS811.dataAvailable())
                          {
                        
                            myCCS811.readAlgorithmResults();
                            myCCS811.setEnvironmentalData(lasthum, lasttemp);
                        
                            uint16_t lastppm = myCCS811.getCO2();
                        
                            if (lastppm > 0)
                            { // bis und mit 400 nur an der Initialisierung
                              rootCCS811 = root.createNestedObject("ccs811");
                              rootCCS811["co2"] = lastppm;
                              rootCCS811["tvoc"] = myCCS811.getTVOC();
                            }
                          }
                        
                          // save Baseline every 24 hours
                          if (loopCount >= 24 * 60)
                          {
                            // read baseline
                            unsigned int baseline = myCCS811.getBaseline();
                        
                            rootCCS811["baseline"] = baseline;
                        
                            DEBUG_PRINTLN("baseline for this sensor: 0x");
                            if (baseline < 0x100)
                              DEBUG_PRINT("0");
                            if (baseline < 0x10)
                              DEBUG_PRINT("0");
                            DEBUG_PRINTLN(baseline, HEX);
                            //The baseline is saved (with valid data indicator bytes)
                            EEPROM.write(0, 0xA5);
                            EEPROM.write(1, 0xB2);
                            EEPROM.write(2, (baseline >> 8) & 0x00FF);
                            EEPROM.write(3, baseline & 0x00FF);
                            EEPROM.commit();
                        
                            loopCount = 0;
                          }
                        }
                        

                        The results in the first 24 hours don't seem better. Hope they will getting better after 48 hours. :(

                        I am not really keen on programming a firmware upgrade program for the CCS811. The second sensor I ordered from aliexpress is hopefully better.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jaredwolff
                          wrote on last edited by
                          #14

                          I have no experience with the MH-Z14A but compared to other comparable parts I think the CCS811 is a bit more simple to implement. (And less costly, despite it's $$$ price)

                          Since my firmware improvements here (MSB for temp and humidity for saving the environmental data) seems to have helped tremendously. I have implemented the baseline save/restore but I haven't seen any crazy jumps or differences in operation. Maybe your MOX sensor is contaminated.

                          I'm playing with some other sensors to see how they compare. I'll share my results here too.

                          FotoFieberF 1 Reply Last reply
                          0
                          • J jaredwolff

                            I have no experience with the MH-Z14A but compared to other comparable parts I think the CCS811 is a bit more simple to implement. (And less costly, despite it's $$$ price)

                            Since my firmware improvements here (MSB for temp and humidity for saving the environmental data) seems to have helped tremendously. I have implemented the baseline save/restore but I haven't seen any crazy jumps or differences in operation. Maybe your MOX sensor is contaminated.

                            I'm playing with some other sensors to see how they compare. I'll share my results here too.

                            FotoFieberF Offline
                            FotoFieberF Offline
                            FotoFieber
                            Hardware Contributor
                            wrote on last edited by
                            #15

                            @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

                            I have no experience with the MH-Z14A but compared to other comparable parts I think the CCS811 is a bit more simple to implement. (And less costly, despite it's $$$ price)

                            The MH-Z14A is really simple to implement. Just send some characters over serial interface and get the CO2 value. You don't need to think about baselines and firmware versions. A cheap sensor is of no use, if you can't get correct readings. Maybe I am doing something wrong? :)

                            But maybe you can share your code and I can get better results?

                            The CCS811 I have here maybe cheap….
                            0_1555968023025_sensor-comparison.png

                            J 1 Reply Last reply
                            0
                            • FotoFieberF FotoFieber

                              @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

                              I have no experience with the MH-Z14A but compared to other comparable parts I think the CCS811 is a bit more simple to implement. (And less costly, despite it's $$$ price)

                              The MH-Z14A is really simple to implement. Just send some characters over serial interface and get the CO2 value. You don't need to think about baselines and firmware versions. A cheap sensor is of no use, if you can't get correct readings. Maybe I am doing something wrong? :)

                              But maybe you can share your code and I can get better results?

                              The CCS811 I have here maybe cheap….
                              0_1555968023025_sensor-comparison.png

                              J Offline
                              J Offline
                              jaredwolff
                              wrote on last edited by
                              #16

                              @fotofieber after assembling and testing a few more boards. I've noticed that the fresh sensors, do need some time to "burn-in." I'm seeing wild values in the 1000's whereas the one I've been using for a few weeks is rock solid.

                              Here's a capture of one I'm testing right now:

                              0_1556208457191_Screen Shot 2019-04-25 at 12.07.09 PM.png

                              The blue is the one that's been running for a while. The red is a fresh unused sensor.

                              I haven't had a chance to play with the MH-Z14A. I'm currently doing an eval of all sensors that I can (easily) get my hands on to compare side by side.

                              All the latest and greatest code for my project is located under the Beam me Up section in my original post above. #3 I think. Here's the link again though.

                              FotoFieberF 1 Reply Last reply
                              0
                              • J jaredwolff

                                @fotofieber after assembling and testing a few more boards. I've noticed that the fresh sensors, do need some time to "burn-in." I'm seeing wild values in the 1000's whereas the one I've been using for a few weeks is rock solid.

                                Here's a capture of one I'm testing right now:

                                0_1556208457191_Screen Shot 2019-04-25 at 12.07.09 PM.png

                                The blue is the one that's been running for a while. The red is a fresh unused sensor.

                                I haven't had a chance to play with the MH-Z14A. I'm currently doing an eval of all sensors that I can (easily) get my hands on to compare side by side.

                                All the latest and greatest code for my project is located under the Beam me Up section in my original post above. #3 I think. Here's the link again though.

                                FotoFieberF Offline
                                FotoFieberF Offline
                                FotoFieber
                                Hardware Contributor
                                wrote on last edited by
                                #17

                                @jaredwolff
                                Thx for the link to your sourcecode.
                                How long is the time interval on the graph in your post?

                                I tried to use drive mode 1 (measurement every second) with an average calculation for every minute. But it didn't get better... :(

                                I added now a MH-Z19B to the testbed.

                                Awaiting still from aliexpress:
                                SGP30
                                MICS-VZ-89TE
                                GY-MCU680V1 BME680
                                Senseair S8-0053
                                and another CCS811.
                                0_1556312751563_IMG_3814.JPG

                                J 1 Reply Last reply
                                0
                                • FotoFieberF FotoFieber

                                  @jaredwolff
                                  Thx for the link to your sourcecode.
                                  How long is the time interval on the graph in your post?

                                  I tried to use drive mode 1 (measurement every second) with an average calculation for every minute. But it didn't get better... :(

                                  I added now a MH-Z19B to the testbed.

                                  Awaiting still from aliexpress:
                                  SGP30
                                  MICS-VZ-89TE
                                  GY-MCU680V1 BME680
                                  Senseair S8-0053
                                  and another CCS811.
                                  0_1556312751563_IMG_3814.JPG

                                  J Offline
                                  J Offline
                                  jaredwolff
                                  wrote on last edited by
                                  #18

                                  @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                  How long is the time interval on the graph in your post?

                                  The interval was either 20 seconds or 2 minutes. My code defaults to 2 minutes. There's just no reason to be checking it that often.

                                  The CCS811 on the other hand takes a measurement every second. (I left it in the default mode) I just take the latest measurement when it's time to send the update to the server.

                                  Curious to see what conclusions you come to with your tests. I think we'll get there right around the same time!

                                  FotoFieberF 1 Reply Last reply
                                  0
                                  • J jaredwolff

                                    @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                    How long is the time interval on the graph in your post?

                                    The interval was either 20 seconds or 2 minutes. My code defaults to 2 minutes. There's just no reason to be checking it that often.

                                    The CCS811 on the other hand takes a measurement every second. (I left it in the default mode) I just take the latest measurement when it's time to send the update to the server.

                                    Curious to see what conclusions you come to with your tests. I think we'll get there right around the same time!

                                    FotoFieberF Offline
                                    FotoFieberF Offline
                                    FotoFieber
                                    Hardware Contributor
                                    wrote on last edited by FotoFieber
                                    #19

                                    @jaredwolff
                                    The MHZ19B is working out of the box without tuning. NDIR sensors seem to be easier to handle but are more power hungry.
                                    0_1556347989054_sensor-comparison co2.png
                                    In addition to the CO2 ppm, it has a temperature reading, which is not to bad:
                                    0_1556348218175_sensor-comparison temp.png
                                    The temperature of the BMP280 and ST7012 are quite high. They are on the same small pcb as the CCS811.

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      jaredwolff
                                      wrote on last edited by jaredwolff
                                      #20

                                      @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                      The MHZ19B is working out of the box without tuning. NDIR sensors seem to be easier to handle but are more power hungry.

                                      Nice! Glad to see something working for you. The MHZ19B seems like a good option when you have the space. I wonder how it is long term.

                                      How many hours have you continuously run your CCS811? I'm seeing the fresh one I had normalize to zero over almost 24h of continuous running. (See the blue trace below for TVOC & C02)

                                      0_1556375221442_Screen Shot 2019-04-27 at 10.26.57 AM.png

                                      I'm also not surprised by the readings you're getting on temp. Unless you get a sensors that is specifically more precise you could get some significant deviations. I would expect ±1 °C from most sensors though..

                                      FotoFieberF 1 Reply Last reply
                                      0
                                      • J jaredwolff

                                        @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                        The MHZ19B is working out of the box without tuning. NDIR sensors seem to be easier to handle but are more power hungry.

                                        Nice! Glad to see something working for you. The MHZ19B seems like a good option when you have the space. I wonder how it is long term.

                                        How many hours have you continuously run your CCS811? I'm seeing the fresh one I had normalize to zero over almost 24h of continuous running. (See the blue trace below for TVOC & C02)

                                        0_1556375221442_Screen Shot 2019-04-27 at 10.26.57 AM.png

                                        I'm also not surprised by the readings you're getting on temp. Unless you get a sensors that is specifically more precise you could get some significant deviations. I would expect ±1 °C from most sensors though..

                                        FotoFieberF Offline
                                        FotoFieberF Offline
                                        FotoFieber
                                        Hardware Contributor
                                        wrote on last edited by
                                        #21

                                        @jaredwolff said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                        Nice! Glad to see something working for you. The MHZ19B seems like a good option when you have the space.

                                        The MH-Z19B does use less space than the MH-Z14B. I thinkt the footprint is similar to my CCS811 PCB from aliexpress. But it is taller. I think the main argument against the MH-Z19B could be power consumption.

                                        I wonder how it is long term.

                                        I have some MH-Z14B working fine for more than two years. Accoriding to the datasheet, the MH-Z19B should last more than 15 years.

                                        How many hours have you continuously run your CCS811?

                                        More than two days. It didn't get better.

                                        I'm seeing the fresh one I had normalize to zero over almost 24h of continuous running. (See the blue trace below for TVOC & C02)

                                        I can't see the time on your graph. I only see 2019-0... would it be possible to show the time?

                                        The manufacturer has improved accuracy with the last firmware of the CCS811. Which version of firmware do you have on your CCS811?

                                        1 Reply Last reply
                                        0
                                        • J Offline
                                          J Offline
                                          jaredwolff
                                          wrote on last edited by jaredwolff
                                          #22

                                          @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                          The manufacturer has improved accuracy with the last firmware of the CCS811. Which version of firmware do you have on your CCS811?

                                          Good question. According to my code: 1.1.0

                                          @fotofieber said in Particle Powered Air Quality Sensor Logging to Google Docs:

                                          I can't see the time on your graph. I only see 2019-0... would it be possible to show the time?

                                          Hmm. Yea they're full timestamps. Pretty useless huh? What are you using to create your graphs? That way we're looking at the same thing.

                                          On another note: I did get SPG30 and BME680 up and running. I ran the SPG30 while I was tinkering with the BME680. It's about 12 hours of data. (Sorry the x axis is not quite working out.)

                                          0_1556496951580_Screen Shot 2019-04-28 at 8.06.17 PM.png

                                          My initial impressions from the integration:

                                          SPG30 is about as easy as the CCS811. As you can see it has its own demons. It does require another power supply (1.8V typical for this part) And it can get power hungry if you run it tons (48mA when the heater is on).

                                          The BME680 is not so easy to integrate into the Particle platform. Mostly due to the added archive file (i.e. static library, i.e..a file). After tinkering with what they had I have it taking in and processing data. The only thing I really care about is the IAQ calculation which is not open source. It does some other calculations on the temperature and humidity if you choose to integrated it with a space heater. (or HVAC unit for that matter)

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


                                          23

                                          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