Bosch Sensortec Community

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

    BME688 sensor not sensing

    gbws
    Occasional Visitor

    Re: BME688 sensor not sensing

    There is a wealth of information available on sensor status,in a typical application such as the one described, there should not be any virtual gas values expected. As noted in the data sheet, sensors may introduce virtual values to maintain a consistent sampling rate and predictable device timing.It is strongly recommended to communicate with sensors using the official Bosch Sensortec sensor API/drivers. The BME688 sensor API even offers a function named bme680_get_profile_dur(), which can predict the measurement cycle based on the sensor's configuration. You can find the BME688 driver and sensor API at this link.To benefit from IAQ output, you will also need to utilize the pre-compiled BSEC library provided here: BSEC software download. By examining the example code included in this package, you can see that it utilizes bme688_get_profile_dur() after initiating measurements, then confirms that the sensor successfully returns to sleep mode before reading out the data.

    https://afmwa.org

    Christoforos
    Established Member

    Re: BME688 sensor not sensing

    Dear gbws,

    Thank you for your reply! I am now using the official Bosch Sensortec sensor API/drivers for Arduino IDE 2. I am using the MRK Wifi 1010 board and I compile and upload the BSEC2 library basic example that runs smoothly. However, this example doesn't compile for esp32 pico d4. 

    I only care about the raw data and not the iaq. So, I actually need the BME68x parallel_mode example. I can compile this for MKR and esp32 boards with I2C protocol that gives me the following error:  "Sensor error: communication failue". 

    I attach the schematic for the circuits I am using. I checked using the I2C scanner library and the sensor address is 0x76.

    Any suggestions why the BME68x examples don't find the sensor? 

    Thank you!

    Christoforos
    Established Member

    Re: BME688 sensor not sensing

    I found the solution to the problem. 

    The example scripts for BME68x library have default communication protocol SPI whereas the BME688 sensor board has I2C. By changing the code in the examples the sensor can read the raw data. I hope this information helps other people with similar problems. 

    Thank you! 

    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