Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BME680 rules for running BSEC with timer

    BME680 rules for running BSEC with timer

    dduehren
    Occasional Visitor

    I hve a couple of questions that could be answered if you had some clear rules defined about using the BSEC library. 

    I have an application where I want to log data evry minute.  Currently I average 3 readings at 20 seconds sampling to get the data at the minute mark. I currently have the BME680 running with the Adafruit_BME680.h library and getting the T, H, Raw Resistance, and Pressure, sampling at the 20s interval.

    I'd like to add the BSEC library eCO2 to that list.

    So I several questions.

    1. Can I run the Adafruit library and BSEC library at the same time? 

    2. In ULP mode, from what I read, the libary has to be "read" every 3 seconds (ie.  iaqSensor.run() has to run every 3 seconds, at which time I could read the eC02 value.  And this could be triggered by a timer.  Is this correct?

    3. In ULP plus mode, I could then also do iaq.Sensor() at the 20 second mark.  And very 3rd 20 second read would correspond to a 3 second read too. Is this correct?

    4. What isn't clear is what values are really only able to be read at the 3 second interval?  Clearly with the Adafruit library I can read at various intervals.  So the raw signals are available more regularly.  What bout the compensated T and H readings?  Are they only at the 3 second mark?

    5. I saw somewhere on this forum that one of the iaq values has to be 3 in order for the eCO2 value to be valid.  Which one is that?

    6. Why isn't some basic info like this in the data sheet or the integration guide.  Most of the world doesn't run its software on a busy loop.

     

     

    1 REPLY 1

    Minhwan
    Community Moderator
    Community Moderator

    Hello, 

     

    Are you talking about below library for adafruit? 

    https://learn.adafruit.com/adafruit-bme680-humidity-temperature-barometic-pressure-voc-gas/bsec-air-...

    BSEC library does support many adafruit arduino platforms. 

    You can check the below link

    https://github.com/BoschSensortec/BSEC-Arduino-library

    1. Can I run the Adafruit library and BSEC library at the same time? 

    - Not sure about adafruit library, but the adafruit library also probably uses our BSEC library. If so, you can't run it at same time. 

    2. In ULP mode, from what I read, the libary has to be "read" every 3 seconds (ie.  iaqSensor.run() has to run every 3 seconds, at which time I could read the eC02 value.  And this could be triggered by a timer.  Is this correct?

    - ULP reads data every 300s, and LP reads every 3s. And, you can eCO2 value according the time. 

    3. In ULP plus mode, I could then also do iaq.Sensor() at the 20 second mark.  And very 3rd 20 second read would correspond to a 3 second read too. Is this correct?

    - Sorry, I don't understand your question. What do you mean 20s mark? Basically, you can only read the data in our time frame. 

    4. What isn't clear is what values are really only able to be read at the 3 second interval?  Clearly with the Adafruit library I can read at various intervals.  So the raw signals are available more regularly.  What bout the compensated T and H readings?  Are they only at the 3 second mark?

    - BME680 driver offers forced mode which can read data any time you want. But, it's not for BSEC library. 

    If you just want to read T and H using BME680, please check our BME68x driver as below. 

    https://github.com/BoschSensortec/BME68x-Sensor-API/blob/master/examples/forced_mode/forced_mode.c

    5. I saw somewhere on this forum that one of the iaq values has to be 3 in order for the eCO2 value to be valid.  Which one is that?

    - We have IAQ accuracy level, and you can get accurate IAQ value and eCO2 once IAQ accruacy level reaches to 3. 

    6. Why isn't some basic info like this in the data sheet or the integration guide.  Most of the world doesn't run its software on a busy loop.

    - If you download our BSEC library from bosch website, there is integration guide. And, there is brief  introduction for emxaple. 

    https://www.bosch-sensortec.com/software-tools/software/bsec/

    Thanks ,

     

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist