Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    How to work with the BME680 interrupt in Arduino environment?

    How to work with the BME680 interrupt in Arduino environment?

    crmrosa
    New Poster

    Good afternoon,

    I am trying to programing my IoT environment (Nordic nRF52840) to sleep when the temperature and humidity are in the safe limits, but when it is near to the operation limits, it make the device wake up to send a alert about it.

    I was reading the "Bosch Sensortec | BME680 Datasheet" and I saw item "5.3.1.1 SPI 3 wire interrupt enable – spi_3w_int_en" that "New data interrupt can be enabled if the device is in SPI 3 wire mode and pi_3w_int_en=1. The new data interrupt is then indicated on the SDO pad".

    Could I use this data interrupt (low/high) to create a low power profile behavior for the solution (MCU and sensor) sleep/wake up?

    Regards,

    Claudio 

     

    crmrosa_0-1717260812706.png

     

    2 REPLIES 2

    BSTRobin
    Community Moderator
    Community Moderator

    Hi crmrosa,

    Thanks for your inquiry.
    Yes, SDO can trigger an interrupt notification host to read data. Regardless of whether CPOL or CPHA is configured as 00 or 11, SPI data is sampled on the rising edge and moved out on the falling edge, and SDO is triggered on the falling edge.

    Good morning,

    I am developing my code with VSCode/platformio/C++ in the Adafruit solution for BME680.   

    I would like to make the Embedded System sleep if you I have a overheat or too much humidity, it should wake up if temperature and/or humity is in the borderline to send a warning message to Operation Center.  This sensor solution is part of monitor solution for wagons in a train for a Brazilian railroad company. 

    Do you have any small C++ example code with this interruption ?

    Regards,

    Claudio

    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