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.
  • FotoFieberF FotoFieber

    @jaredwolff
    The update has brought a big improvement.
    I think one could derive airquality from the measurements, but the CO2 ppm value is still way off.
    0_1556686461628_sensor-comparison.png

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

    @fotofieber that's great news! Pretty much what I've seen. I've stopped eC02 all together because it correlates 1:1 with TVOC on that part. Plus I don't know how actionable the C02 reading is. Does it indicate stale air? C02 is a byproduct of the VOCs? Maybe it's more useful for more industrial environments..

    Are you logging anything other than C02?

    FotoFieberF 1 Reply Last reply
    0
    • J jaredwolff

      @fotofieber that's great news! Pretty much what I've seen. I've stopped eC02 all together because it correlates 1:1 with TVOC on that part. Plus I don't know how actionable the C02 reading is. Does it indicate stale air? C02 is a byproduct of the VOCs? Maybe it's more useful for more industrial environments..

      Are you logging anything other than C02?

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

      @jaredwolff
      CO2 is an indicator of air quality. I use it since years mainly with consumer devices from Netatmo. In my graphs you can see, when people are in the rooms consume the air, when they leave, when I open the windows...

      The CO2 measurement with NDIR-sensors seems much more reliable than what I see here from CCS811. They usually show quite good results just plugged in without calibration. They are easier to handle, because you don''t need to bother with handling basline (save and restore). And they don't need a temp/hum measurement to correct their values.

      Yesterday arrived another NDIR-Sensor (Senseair S8) and a SGP30. I am curious, how they perform. Hope I have the first results in two days.

      Are you logging anything other than C02?

      In general I have much more values I log (radioactivity, luminosity, window open/close, motion...)

      In this setup I log what I can get from the sensors.

      FotoFieberF 2 Replies Last reply
      0
      • FotoFieberF FotoFieber

        @jaredwolff
        CO2 is an indicator of air quality. I use it since years mainly with consumer devices from Netatmo. In my graphs you can see, when people are in the rooms consume the air, when they leave, when I open the windows...

        The CO2 measurement with NDIR-sensors seems much more reliable than what I see here from CCS811. They usually show quite good results just plugged in without calibration. They are easier to handle, because you don''t need to bother with handling basline (save and restore). And they don't need a temp/hum measurement to correct their values.

        Yesterday arrived another NDIR-Sensor (Senseair S8) and a SGP30. I am curious, how they perform. Hope I have the first results in two days.

        Are you logging anything other than C02?

        In general I have much more values I log (radioactivity, luminosity, window open/close, motion...)

        In this setup I log what I can get from the sensors.

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

        This night was a complete fail for the CCS811 I have here:

        Fresh air at 20:00
        Sleep till 6:15 with closed windows
        -> NDIR sensors show, how air quality gets worse
        -> CCS811 shows, how the air quality gets better during sleep with closed window!
        Fresh air at 06:15

        WTF.... :)
        0_1556788324572_sensor-comparison.png

        1 Reply Last reply
        0
        • FotoFieberF FotoFieber

          @jaredwolff
          CO2 is an indicator of air quality. I use it since years mainly with consumer devices from Netatmo. In my graphs you can see, when people are in the rooms consume the air, when they leave, when I open the windows...

          The CO2 measurement with NDIR-sensors seems much more reliable than what I see here from CCS811. They usually show quite good results just plugged in without calibration. They are easier to handle, because you don''t need to bother with handling basline (save and restore). And they don't need a temp/hum measurement to correct their values.

          Yesterday arrived another NDIR-Sensor (Senseair S8) and a SGP30. I am curious, how they perform. Hope I have the first results in two days.

          Are you logging anything other than C02?

          In general I have much more values I log (radioactivity, luminosity, window open/close, motion...)

          In this setup I log what I can get from the sensors.

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

          S8 readings seem quite goot. (NDIR)
          SGP30 :( Will try with the adafruit library instead of the sparktech.
          0_1556954956512_sensor-comparison.png

          J 1 Reply Last reply
          0
          • FotoFieberF FotoFieber

            S8 readings seem quite goot. (NDIR)
            SGP30 :( Will try with the adafruit library instead of the sparktech.
            0_1556954956512_sensor-comparison.png

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

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

            SGP30 Will try with the adafruit library instead of the sparktech.

            I have that one in the same branch I mentioned before if you need a working reference.

            I followed your lead on the Grafana + InfluxDB stuff. It was dead simple to setup.

            0_1557075343811_Screen Shot 2019-05-05 at 12.55.39 PM.png

            I just want to get HTTPS/SSL working. Pretty nifty little piece of software. :)

            FotoFieberF 1 Reply Last reply
            0
            • J jaredwolff

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

              SGP30 Will try with the adafruit library instead of the sparktech.

              I have that one in the same branch I mentioned before if you need a working reference.

              I followed your lead on the Grafana + InfluxDB stuff. It was dead simple to setup.

              0_1557075343811_Screen Shot 2019-05-05 at 12.55.39 PM.png

              I just want to get HTTPS/SSL working. Pretty nifty little piece of software. :)

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

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

              I followed your lead on the Grafana + InfluxDB stuff. It was dead simple to setup.

              Yes, really simple. I use docker for grafana and influxdb.

              Your SGP30 CO2 ppm graph looks like mine... :(

              I just want to get HTTPS/SSL working.

              I use an nginx-setup here for https.

              Pretty nifty little piece of software.

              Yepp! They are real software gems.

              J 2 Replies Last reply
              0
              • FotoFieberF FotoFieber

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

                I followed your lead on the Grafana + InfluxDB stuff. It was dead simple to setup.

                Yes, really simple. I use docker for grafana and influxdb.

                Your SGP30 CO2 ppm graph looks like mine... :(

                I just want to get HTTPS/SSL working.

                I use an nginx-setup here for https.

                Pretty nifty little piece of software.

                Yepp! They are real software gems.

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

                @fotofieber also, I compiled my conclusions about some of the smaller form factor TVOC/C02 sensors. It was inspired by everything we talked about here. Our back and forth conversation has been awesome. So I wanted to say thanks for the inspiration :)

                0_1557153919177_Screen Shot 2019-05-06 at 10.44.47 AM.png

                The above is a screenshot from the side-by-side data of the BME680, CCS811 and SGP30.

                The BME680 seemed impressive at first but I'm seeing a big difference in temperature and humidity. My thinking it's likely due to the heating elements inside keeping it a little less humid and a little more hot. (These are the compensated values by the way. The non-compensated values are even lower humidity and a hotter.)

                The SGP30 is a bit of a power hog but the TVOC readings seemed to align well with the response from the BME680.

                The CCS811, like we've seen throughout this thread, had some wacky responses using the 1.0.0 firmware. I haven't seen that since all of my CCS811 are up to date.

                It's a toss up between all three but I'd shy away from the CCS811. If anyone here plans on building a production device, the stock is not reliable enough. (Digikey and Mouser have been out of stock lately) I'm not sure if you'd have the same problem in the EU or how things are in Asia.

                Anyway my TLDR conclusions are here if anyone is interested. They include software implementation factors, hardware factors, availability factors and data output factors all rolled into one.

                FotoFieberF 1 Reply Last reply
                1
                • FotoFieberF FotoFieber

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

                  I followed your lead on the Grafana + InfluxDB stuff. It was dead simple to setup.

                  Yes, really simple. I use docker for grafana and influxdb.

                  Your SGP30 CO2 ppm graph looks like mine... :(

                  I just want to get HTTPS/SSL working.

                  I use an nginx-setup here for https.

                  Pretty nifty little piece of software.

                  Yepp! They are real software gems.

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

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

                  Your SGP30 CO2 ppm graph looks like mine...

                  Also, Is your SGP30 plot the dark red one? Definitely not what I'd expect from this sensor. At first I thought it was the CCS811 as that one appears to be less reactive (at least in my testing)

                  1 Reply Last reply
                  0
                  • J jaredwolff

                    @fotofieber also, I compiled my conclusions about some of the smaller form factor TVOC/C02 sensors. It was inspired by everything we talked about here. Our back and forth conversation has been awesome. So I wanted to say thanks for the inspiration :)

                    0_1557153919177_Screen Shot 2019-05-06 at 10.44.47 AM.png

                    The above is a screenshot from the side-by-side data of the BME680, CCS811 and SGP30.

                    The BME680 seemed impressive at first but I'm seeing a big difference in temperature and humidity. My thinking it's likely due to the heating elements inside keeping it a little less humid and a little more hot. (These are the compensated values by the way. The non-compensated values are even lower humidity and a hotter.)

                    The SGP30 is a bit of a power hog but the TVOC readings seemed to align well with the response from the BME680.

                    The CCS811, like we've seen throughout this thread, had some wacky responses using the 1.0.0 firmware. I haven't seen that since all of my CCS811 are up to date.

                    It's a toss up between all three but I'd shy away from the CCS811. If anyone here plans on building a production device, the stock is not reliable enough. (Digikey and Mouser have been out of stock lately) I'm not sure if you'd have the same problem in the EU or how things are in Asia.

                    Anyway my TLDR conclusions are here if anyone is interested. They include software implementation factors, hardware factors, availability factors and data output factors all rolled into one.

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

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

                    The BME680 seemed impressive at first but I'm seeing a big difference in temperature and humidity. My thinking it's likely due to the heating elements inside keeping it a little less humid and a little more hot. (These are the compensated values by the way. The non-compensated values are even lower humidity and a hotter.)

                    I have tested several temperature sensors in the same setup and will use seperate HTU21D in my production devices anyway. So temperature and humidity would be no problem for me.

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

                    Also, Is your SGP30 plot the dark red one? Definitely not what I'd expect from this sensor. At first I thought it was the CCS811 as that one appears to be less reactive (at least in my testing)

                    Yes, it's is the dark red one. :(
                    Yesterday another CCS811 arrived. I will add it to my setup.

                    My final setup drifts to:

                    • HTU21D temp/hum
                    • MHZ19B CO2
                    • HC-SR501 (modified for 3.3V) motion
                    • WS 2812B led stripes
                    J 1 Reply Last reply
                    0
                    • FotoFieberF FotoFieber

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

                      The BME680 seemed impressive at first but I'm seeing a big difference in temperature and humidity. My thinking it's likely due to the heating elements inside keeping it a little less humid and a little more hot. (These are the compensated values by the way. The non-compensated values are even lower humidity and a hotter.)

                      I have tested several temperature sensors in the same setup and will use seperate HTU21D in my production devices anyway. So temperature and humidity would be no problem for me.

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

                      Also, Is your SGP30 plot the dark red one? Definitely not what I'd expect from this sensor. At first I thought it was the CCS811 as that one appears to be less reactive (at least in my testing)

                      Yes, it's is the dark red one. :(
                      Yesterday another CCS811 arrived. I will add it to my setup.

                      My final setup drifts to:

                      • HTU21D temp/hum
                      • MHZ19B CO2
                      • HC-SR501 (modified for 3.3V) motion
                      • WS 2812B led stripes
                      J Offline
                      J Offline
                      jaredwolff
                      wrote on last edited by jaredwolff
                      #38

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

                      I have tested several temperature sensors in the same setup and will use seperate HTU21D in my production devices anyway. So temperature and humidity would be no problem for me.

                      After someone on a different forum suggested, I actually switched it from continuous to low power mode and the temperature and humidity readings look better.

                      0_1557233131908_Screen Shot 2019-05-07 at 8.45.03 AM.png

                      (Red line is in the middle between before and after the change.)

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

                      Yesterday another CCS811 arrived. I will add it to my setup.

                      Nice, curious to see your results!

                      FotoFieberF 1 Reply Last reply
                      0
                      • J jaredwolff

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

                        I have tested several temperature sensors in the same setup and will use seperate HTU21D in my production devices anyway. So temperature and humidity would be no problem for me.

                        After someone on a different forum suggested, I actually switched it from continuous to low power mode and the temperature and humidity readings look better.

                        0_1557233131908_Screen Shot 2019-05-07 at 8.45.03 AM.png

                        (Red line is in the middle between before and after the change.)

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

                        Yesterday another CCS811 arrived. I will add it to my setup.

                        Nice, curious to see your results!

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

                        @jaredwolff 0_1557243066441_IMG_3835.jpg

                        BME680 sensor mith MCU arrived. Hope I can read the chinese specification of the module.... :) (What stand PS for?)

                        J 1 Reply Last reply
                        0
                        • FotoFieberF FotoFieber

                          @jaredwolff 0_1557243066441_IMG_3835.jpg

                          BME680 sensor mith MCU arrived. Hope I can read the chinese specification of the module.... :) (What stand PS for?)

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

                          @fotofieber hmm I'm not sure. Can you send me more info about the board you got?

                          FotoFieberF 1 Reply Last reply
                          0
                          • J jaredwolff

                            @fotofieber hmm I'm not sure. Can you send me more info about the board you got?

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

                            @jaredwolff
                            Found something on https://de.aliexpress.com/item/GY-MCU680V1-BME680-Sensor-Module-Temperature-and-Humidity-Air-Pressure-Air-Quality-IAQ-MCU680-Module/32902672818.html?spm=a2g0x.10010108.1000016.1.3bc92080ZxA8fs&isOrigTitle=true

                            When soldering the PS solder joint, the module is in the chip's own IIC mode, at which point the MCU does not participate in the operation and does not consume current. Can be used as a simple BME680 module.

                            And in serial mode:
                            https://playground.cmmakerclub.com/2018/12/esp32/วิธีการใช้งาน-gy-mcu680-กับ-esp32/

                            I will try the I2C mode first.

                            J 1 Reply Last reply
                            0
                            • FotoFieberF FotoFieber

                              @jaredwolff
                              Found something on https://de.aliexpress.com/item/GY-MCU680V1-BME680-Sensor-Module-Temperature-and-Humidity-Air-Pressure-Air-Quality-IAQ-MCU680-Module/32902672818.html?spm=a2g0x.10010108.1000016.1.3bc92080ZxA8fs&isOrigTitle=true

                              When soldering the PS solder joint, the module is in the chip's own IIC mode, at which point the MCU does not participate in the operation and does not consume current. Can be used as a simple BME680 module.

                              And in serial mode:
                              https://playground.cmmakerclub.com/2018/12/esp32/วิธีการใช้งาน-gy-mcu680-กับ-esp32/

                              I will try the I2C mode first.

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

                              @fotofieber I'm using I2C over here with great success. Let me know how it goes!

                              FotoFieberF 1 Reply Last reply
                              0
                              • J jaredwolff

                                @fotofieber I'm using I2C over here with great success. Let me know how it goes!

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

                                @jaredwolff
                                Seems like I only get an IAQ value for the BME680 and no (e)CO2. Is this correct?

                                J 1 Reply Last reply
                                0
                                • FotoFieberF FotoFieber

                                  @jaredwolff
                                  Seems like I only get an IAQ value for the BME680 and no (e)CO2. Is this correct?

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

                                  @fotofieber correct! No C02. There's also temp, humidity and pressure. Here's a little code to get up and running with their C++ library.

                                  FotoFieberF 1 Reply Last reply
                                  0
                                  • J jaredwolff

                                    @fotofieber correct! No C02. There's also temp, humidity and pressure. Here's a little code to get up and running with their C++ library.

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

                                    @jaredwolff
                                    Managed to compile Bosch arduino demo code on ESP32 on platformio after 3 hours. :sunglasses:

                                    But then....

                                    BSEC library version 1.4.7.3
                                    Timestamp [ms], raw temperature [°C], pressure [hPa], raw relative humidity [%], gas [Ohm], IAQ, IAQ accuracy, temperature [°C], relative humidity [%], Static IAQ, CO2 equivalent, breath VOC equivalent
                                    BSEC error code : -2
                                    

                                    Maybe I give up here, as I really don't like to use binary code in my sensors....

                                    J 1 Reply Last reply
                                    0
                                    • FotoFieberF FotoFieber

                                      @jaredwolff
                                      Managed to compile Bosch arduino demo code on ESP32 on platformio after 3 hours. :sunglasses:

                                      But then....

                                      BSEC library version 1.4.7.3
                                      Timestamp [ms], raw temperature [°C], pressure [hPa], raw relative humidity [%], gas [Ohm], IAQ, IAQ accuracy, temperature [°C], relative humidity [%], Static IAQ, CO2 equivalent, breath VOC equivalent
                                      BSEC error code : -2
                                      

                                      Maybe I give up here, as I really don't like to use binary code in my sensors....

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

                                      @fotofieber integrating their static library is a PITA.

                                      What processor are you using exactly? That wold dictate which version of the BSEC you'd integrate.

                                      For Arduino, the library should handle the import of the .a file. If you're in any other environment you'll have to add a few lines:

                                      LIB_DEPS += $(USER_LIB_DIR)/libalgobsec.a
                                      LDFLAGS += -Wl,--whole-archive $(USER_LIB_DIR)/libalgobsec.a -Wl,--no-whole-archive
                                      

                                      I had to add these to the makefile in .particle/toolchains/deviceOS/1.2.0-beta.1/firmware-1.2.0-beta.1/modules/xenon/user-part for the Particle stuff to work.

                                      FotoFieberF 1 Reply Last reply
                                      0
                                      • J jaredwolff

                                        @fotofieber integrating their static library is a PITA.

                                        What processor are you using exactly? That wold dictate which version of the BSEC you'd integrate.

                                        For Arduino, the library should handle the import of the .a file. If you're in any other environment you'll have to add a few lines:

                                        LIB_DEPS += $(USER_LIB_DIR)/libalgobsec.a
                                        LDFLAGS += -Wl,--whole-archive $(USER_LIB_DIR)/libalgobsec.a -Wl,--no-whole-archive
                                        

                                        I had to add these to the makefile in .particle/toolchains/deviceOS/1.2.0-beta.1/firmware-1.2.0-beta.1/modules/xenon/user-part for the Particle stuff to work.

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

                                        @jaredwolff
                                        ESP32 is the platform I use.

                                        Linking is no problem (after trial and error of two hours :) ).

                                        I seem to have made a call to the lib:

                                        BSEC library version 1.4.7.3
                                        

                                        Now adding DEBUG-Messages to the BSEC arduino library.

                                        J 1 Reply Last reply
                                        0
                                        • FotoFieberF FotoFieber

                                          @jaredwolff
                                          ESP32 is the platform I use.

                                          Linking is no problem (after trial and error of two hours :) ).

                                          I seem to have made a call to the lib:

                                          BSEC library version 1.4.7.3
                                          

                                          Now adding DEBUG-Messages to the BSEC arduino library.

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

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

                                          Linking is no problem (after trial and error of two hours ).

                                          Yea it took me a bit to figure that out too. :grimacing:

                                          Have you fired up the standard I2C library to see if you can talk to the BME680? Or maybe throw a logic analyzer on it to maker sure it's communicating? I'd imaging the compiler would barf if you used the wrong static library. Bosch does have an ESP32 specific one.

                                          Unfortunately, I don't have any way of testing that here. Keep me posted, I'm curious as to why it's not working.

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


                                          19

                                          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