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.
  • J Offline
    J Offline
    jaredwolff
    wrote on last edited by
    #55

    @FotoFieber how goes the testing?

    The BME680 and the SGP30 both correlate in their readings with temperature. This means when the temperature goes up and down, i've seen the TVOC reading go up and down as well. Hardly useful for a sensor that is supposed to tell you if your air is bad or not.

    Take a look at the screenshot below:

    0_1560869706305_image.png

    You can see that both sensors react wildly to temperature. Whereas the CCS811 has a bump but not significantly. If I go by the scales in the data sheets for the BME680 and SGP30, the room that these sensors are in require immediate venting.

    Even right now, the SGP30 sensor is half way to the danger zone. 😵

    Danger zone!

    0_1560869685735_image.png

    While testing that, I also threw everything together into an enclosure. Even added GPS:

    0_1560869778746_image.png

    So it sits up in the kitchen and chirps at me when I burn my food. I switch on my air purifier and the particulate level goes down pretty quick!

    Nca78N FotoFieberF 2 Replies Last reply
    2
    • J jaredwolff

      @FotoFieber how goes the testing?

      The BME680 and the SGP30 both correlate in their readings with temperature. This means when the temperature goes up and down, i've seen the TVOC reading go up and down as well. Hardly useful for a sensor that is supposed to tell you if your air is bad or not.

      Take a look at the screenshot below:

      0_1560869706305_image.png

      You can see that both sensors react wildly to temperature. Whereas the CCS811 has a bump but not significantly. If I go by the scales in the data sheets for the BME680 and SGP30, the room that these sensors are in require immediate venting.

      Even right now, the SGP30 sensor is half way to the danger zone. 😵

      Danger zone!

      0_1560869685735_image.png

      While testing that, I also threw everything together into an enclosure. Even added GPS:

      0_1560869778746_image.png

      So it sits up in the kitchen and chirps at me when I burn my food. I switch on my air purifier and the particulate level goes down pretty quick!

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

      Thank you for the feedback @jaredwolff, that is very useful.
      Do you confirm that you use the BSEC library for the BME680 and not direct values from the sensor ?

      J 1 Reply Last reply
      1
      • Nca78N Nca78

        Thank you for the feedback @jaredwolff, that is very useful.
        Do you confirm that you use the BSEC library for the BME680 and not direct values from the sensor ?

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

        @nca78 I am using the BSEC library. I’m using the compensated humidity and temperature so I’m sure if that. I may have to take a second look at the code for both sensors. I may have mucked something up!

        1 Reply Last reply
        1
        • J jaredwolff

          @FotoFieber how goes the testing?

          The BME680 and the SGP30 both correlate in their readings with temperature. This means when the temperature goes up and down, i've seen the TVOC reading go up and down as well. Hardly useful for a sensor that is supposed to tell you if your air is bad or not.

          Take a look at the screenshot below:

          0_1560869706305_image.png

          You can see that both sensors react wildly to temperature. Whereas the CCS811 has a bump but not significantly. If I go by the scales in the data sheets for the BME680 and SGP30, the room that these sensors are in require immediate venting.

          Even right now, the SGP30 sensor is half way to the danger zone. 😵

          Danger zone!

          0_1560869685735_image.png

          While testing that, I also threw everything together into an enclosure. Even added GPS:

          0_1560869778746_image.png

          So it sits up in the kitchen and chirps at me when I burn my food. I switch on my air purifier and the particulate level goes down pretty quick!

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

          @jaredwolff
          My experiments with VOC sensors were all not satisfactory.

          The NDIR-sensors reported more or less the same as the netatmo devices and I will therefore stick with them. Apart from that, using the NDIR-sensors in arduino is much easier and you don't have to store baselines or link precompiled code.

          Nca78N 1 Reply Last reply
          1
          • FotoFieberF FotoFieber

            @jaredwolff
            My experiments with VOC sensors were all not satisfactory.

            The NDIR-sensors reported more or less the same as the netatmo devices and I will therefore stick with them. Apart from that, using the NDIR-sensors in arduino is much easier and you don't have to store baselines or link precompiled code.

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

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

            @jaredwolff
            My experiments with VOC sensors were all not satisfactory.

            The NDIR-sensors reported more or less the same as the netatmo devices and I will therefore stick with them. Apart from that, using the NDIR-sensors in arduino is much easier and you don't have to store baselines or link precompiled code.

            Of course sensors measuring CO2 will give better results than sensors trying to guess the CO2 levels by measuring something else.
            But the power consumption is way too high, my hope was to be able to have a battery (li-ion) powered sensor able to run the BME680 in low power settings for a few months and just use it as a warning on when you need to ventilate a room. Unfortunately it seems to not even be fit for this limited use case :(

            J 1 Reply Last reply
            1
            • Nca78N Nca78

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

              @jaredwolff
              My experiments with VOC sensors were all not satisfactory.

              The NDIR-sensors reported more or less the same as the netatmo devices and I will therefore stick with them. Apart from that, using the NDIR-sensors in arduino is much easier and you don't have to store baselines or link precompiled code.

              Of course sensors measuring CO2 will give better results than sensors trying to guess the CO2 levels by measuring something else.
              But the power consumption is way too high, my hope was to be able to have a battery (li-ion) powered sensor able to run the BME680 in low power settings for a few months and just use it as a warning on when you need to ventilate a room. Unfortunately it seems to not even be fit for this limited use case :(

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

              @nca78 I mean, you can run it on a battery. Just need a really big one! 😬

              Because of the internal heater it does make it hard to integrate into a battery powered application.

              I haven’t measured the low power mode on the BME. What were you getting @Nca78

              Nca78N 1 Reply Last reply
              0
              • J jaredwolff

                @nca78 I mean, you can run it on a battery. Just need a really big one! 😬

                Because of the internal heater it does make it hard to integrate into a battery powered application.

                I haven’t measured the low power mode on the BME. What were you getting @Nca78

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

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

                I haven’t measured the low power mode on the BME. What were you getting @Nca78

                With 5mn interval it's supposed to use only 90uA, it's good enough for a li-ion battery of a reasonable size.

                J 1 Reply Last reply
                0
                • Nca78N Nca78

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

                  I haven’t measured the low power mode on the BME. What were you getting @Nca78

                  With 5mn interval it's supposed to use only 90uA, it's good enough for a li-ion battery of a reasonable size.

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

                  @nca78 agreed. It totally depends on the application. On a 225mA button cell that may not work especially if it has to last a year or two!

                  1 Reply Last reply
                  0
                  • SebexS Offline
                    SebexS Offline
                    Sebex
                    wrote on last edited by
                    #63

                    So @jaredwolff & @FotoFieber what sensor would you suggest to use for measuring air quality using an Arduino (nano/uno), with the option to make it battery powered in the future. From my understanding this will remove the BME from the list due to memory/computing requirements. What are your suggestions?

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

                      Hey @Sebex

                      After running my setup for more than 8 months here are a few suggestions:

                      1. If you care about particulates then the PM2.5 sensor works wonders. I've been using the HPMA115S0. It uses UART which you should be able to use with any Arduino variant.
                      2. If you're more concerned with chemicals, a MOx sensor like the CCS811 is still my choice.

                      The CCS811 is available as development boards from Adafruit and Sparkfun. The HPMA115S0 can be purchased from Arrow, Mouser and Digikey.

                      I actually developed an all-in-one for Featherwing board. You can check that out for inspiration as well.

                      SebexS 1 Reply Last reply
                      1
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #65

                        Regarding the bme680, has anyone yet figured out the correct amount of pre-heating that should be applied to it, or is that still unknown? See https://forum.mysensors.org/topic/7788/bosch-bme680-sensor/15?_=1578489395821 .

                        J 1 Reply Last reply
                        0
                        • J jaredwolff

                          Hey @Sebex

                          After running my setup for more than 8 months here are a few suggestions:

                          1. If you care about particulates then the PM2.5 sensor works wonders. I've been using the HPMA115S0. It uses UART which you should be able to use with any Arduino variant.
                          2. If you're more concerned with chemicals, a MOx sensor like the CCS811 is still my choice.

                          The CCS811 is available as development boards from Adafruit and Sparkfun. The HPMA115S0 can be purchased from Arrow, Mouser and Digikey.

                          I actually developed an all-in-one for Featherwing board. You can check that out for inspiration as well.

                          SebexS Offline
                          SebexS Offline
                          Sebex
                          wrote on last edited by
                          #66

                          @jaredwolff thanks. I noticed that for the CSS811 there's no mysensor sketch example, any suggestions for a good guide to build one myself?

                          Something else I wondered is adding multiple sensors to 1 pin. I want to combine the CCS811 with the Si7021 that I am running now on an Arduino. Perhaps I don't necessarily need to use the same pins but lets say you have running X amount of sensors that it becomes inevitable to use a similar pin. Is it possible to share pins in arduino sketches, if so how does this work? Or is every value sent by the sensor tagged. Couldn't find the answer anywhere on the forum.

                          Nca78N 1 Reply Last reply
                          0
                          • SebexS Sebex

                            @jaredwolff thanks. I noticed that for the CSS811 there's no mysensor sketch example, any suggestions for a good guide to build one myself?

                            Something else I wondered is adding multiple sensors to 1 pin. I want to combine the CCS811 with the Si7021 that I am running now on an Arduino. Perhaps I don't necessarily need to use the same pins but lets say you have running X amount of sensors that it becomes inevitable to use a similar pin. Is it possible to share pins in arduino sketches, if so how does this work? Or is every value sent by the sensor tagged. Couldn't find the answer anywhere on the forum.

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

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

                            Perhaps I don't necessarily need to use the same pins

                            Both the sensors you quote are using I2C. So they both use the same 2 pins (SDA, SCL) to communicate. You can put many I2C sensors on those same pins, they each have an address to know which sensor is receiving/sending data to the master (here, your arduino).
                            Look for a tutorial on I2C first.

                            SebexS 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              Regarding the bme680, has anyone yet figured out the correct amount of pre-heating that should be applied to it, or is that still unknown? See https://forum.mysensors.org/topic/7788/bosch-bme680-sensor/15?_=1578489395821 .

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

                              @NeverDie

                              I've set up the BME680 to use low power mode. I saw that the temperature readings were much higher in normal mode. Here's the init:

                                // Begin BME680 work
                                #ifdef HAS_BME680
                                bsec.begin(BME680_I2C_ADDR_PRIMARY, Wire);
                                checkIaqSensorStatus();
                              
                                // Set up BME680 sensors
                                bsec_virtual_sensor_t sensorList[7] = {
                                  BSEC_OUTPUT_RAW_TEMPERATURE,
                                  BSEC_OUTPUT_RAW_PRESSURE,
                                  BSEC_OUTPUT_RAW_HUMIDITY,
                                  BSEC_OUTPUT_RAW_GAS,
                                  BSEC_OUTPUT_IAQ,
                                  BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_TEMPERATURE,
                                  BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_HUMIDITY
                                };
                              
                                bsec.updateSubscription(sensorList, 7, BSEC_SAMPLE_RATE_LP); //BSEC_SAMPLE_RATE_LP
                                checkIaqSensorStatus();
                                #endif
                              

                              @Sebex I agree with @Nca78, you can look into how I2C works. The cool thing is you can add up to 255 sensors as long as they have different addresses. (or if you do some tricky hardware stuff for devices with the same address) Unfortunately I only have implementations for my Featherwing.

                              1 Reply Last reply
                              0
                              • Nca78N Nca78

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

                                Perhaps I don't necessarily need to use the same pins

                                Both the sensors you quote are using I2C. So they both use the same 2 pins (SDA, SCL) to communicate. You can put many I2C sensors on those same pins, they each have an address to know which sensor is receiving/sending data to the master (here, your arduino).
                                Look for a tutorial on I2C first.

                                SebexS Offline
                                SebexS Offline
                                Sebex
                                wrote on last edited by
                                #69

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

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

                                Perhaps I don't necessarily need to use the same pins

                                Both the sensors you quote are using I2C. So they both use the same 2 pins (SDA, SCL) to communicate. You can put many I2C sensors on those same pins, they each have an address to know which sensor is receiving/sending data to the master (here, your arduino).
                                Look for a tutorial on I2C first.

                                Thanks I get it now :smile:

                                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