Bosch Sensortec Community

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

    BME680 warning code : 2

    BME680 warning code : 2

    sinameshksar
    Member

    Hello

     

    I'm trying to use BSEC-Arduino-library for BME680 on ESP32 using the I2C interface. I installed bsec v1.8.9 lib on my Arduino IDE v1.8.11. I was able to compile the "basic" sample project and run it successfully on my esp32 dev-kit. However, I don't get any valid measurement value; instead, it continuously prints "BME680 warning code :2" on the serial. 

    I did add a 5sec delay in the main loop but didn't help. It seems I2C interface is working though, as I get Ack signal from the sensor chip (logic analyzer).

     

    Any idea what could be wrong? 

     

    Thanks in advance

    7 REPLIES 7

    kgoveas
    Community Moderator
    Community Moderator

    Hi @sinameshkar,

    For some reason I cannot open the .sal files. Given the Logic 2 is still in beta, can you provide logicdata files instead? Also, can you compare the times between data read out and the last transaction (forced mode write to start measurement) between the two devices?

    Regards,
    kgoveas

    Hi 

    An update on this issue, It turned out that it was a power supply! I was using the 3.3V pin on the ESP32 dev board to power the sensor. Once I switched to external power supply all of a sudden the sensor started working. I probed the esp 3.3v and to me, it was a clean voltage with no obvious fluctuation so I don't know exactly what was wrong especially the fact that the I2C interface Ack the packets. But it works now. Thanks 

    Thanks for the feedback !

    Glad your issue is solved
    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