Bosch Sensortec Community

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

    BME680 power consumption

    BME680 power consumption

    Gino
    Member

    Hi everybody,

    my BME680 seems to work fine (readings are meaningful and IAQ is calculated after few minutes), however it seems like I'm doing something wrong since the power consumption I get from my custom device (nRF52832+BME680) is always around 6 mA (regardless of the power mode: LP or ULP).
    Such problem is not due to other FW functionalities since if I disable the BME680 then I get an expected power consumption of 5 uA, so there must be something wrong in my use of BSEC library.
    I've verified that the while loop within the bsec_iot_loop() is running at the correct period, depending on LP or ULP mode.
    Maybe the sensor is never going to sleep? Any suggestion on how to solve this?
     
    I'm attaching relevant project files. I've cleared out the project for convenient reading: what I'm doing now is just reading the sensor, running BSEC library and sending its output via BLE when output_ready().
     
    Thank you and best regards
    Gino
    5 REPLIES 5

    handytech
    Community Moderator
    Community Moderator

    Could you share a little more about how the current is measured? If the current is for the whole custom device (nRF52832+BME680), there may be some specific behavior or configuration of the nRF52 that are out of our reach. 

    ~6mA could be indicative that the nRF52 is not able to go to sleep. For example if the FPU generates a pending interrupt that is not cleared/handled, the CPU won't be able to go to sleep.

    Hi handytech,

    thanks for your answer. Yes, I'm measuring the current flowing through the whole custom board (nRF+BME) and your suggestion may be right: the problem is caused by the use of BME but the one who's consuming power is actually the nRF. As you mentioned, this is most likely due to floating point calculations. Is it possible to substitute such calculations  or they're essential for the BSEC? In any case, I'm now investigating on how to solve this on the nRF side.

    Thanks

    handytech
    Community Moderator
    Community Moderator

    Unfortunately floating point compensation is mandatory for BSEC.

    I believe a workaround is mentioned in the nRF52832 errata (chapter 3.25). A possible alternative from Nordic's DevZone would be to implement the FPU IRQ handler to clear its flags.

    Yes, there is a workaround for it, however it did not change my situation. I'm afraid my problem was also due to the sleep() function I was using with bsec_iot_loop(). Now I've implemented it using a timer and the power consumption is low as expected. Thank you again for your help.

    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