Bosch Sensortec Community

    SOLVED

    BME680 BSEC 1.4.7.2 installation problems on Arduino ESP8266 ( NodeMCU v2/Wemos mini pro)

    Highlighted
    Occasional Visitor

    Re: BME680 BSEC 1.4.7.2 installation problems on Arduino ESP8266 ( NodeMCU v2/Wemos mini pro)

    I have same issue with BSEC 1.4.7.3. I am able to compile in Mac and Linux with Arduino  1.8.5 - 1.8.8, but iaqSensor.run() always fails ( status -2 ).

    12:08:43.344 -> BSEC library version 1.4.7.3
    12:08:43.344 -> Timestamp [ms], raw temperature [°C], pressure [hPa], raw relative humidity [%], gas [Ohm], IAQ, IAQ accuracy, temperature [°C], relative humidity [%], Static IAQ, CO2 equivalent, breath VOC equivalent
    12:08:43.587 -> BSEC error code : -2


    Only thing I change from basic example is

    iaqSensor.begin(BME680_I2C_ADDR_SECONDARY, Wire);

    As my sensor is at 0x77

    Basic_data_loging example works fine with "envSensor.begin(BME680_I2C_ADDR_SECONDARY, Wire);"  change.

    How to debug this? I could send my binary if some one one can flash and test in working 0x77 adress device ( LOLIN D1 mini-pro or as requested) ? 

    Highlighted
    Community Moderator

    Re: BME680 BSEC 1.4.7.2 installation problems on Arduino ESP8266 ( NodeMCU v2/Wemos mini pro)

    BSEC error code : -2

    This error is related to communication failure, most commonly caused either because of hardware connection or software protocol implementation. For the BME680 to run in I2C mode with secondary I2C address selected as in your post, please make sure that both CSB and SDO pins of your BME680 are connected to its VDDIO (we cannot determine the actual connections based on the picture of your third-party board). If you have access to an oscilloscope or logic analyzer, you could also monitor the communication to the sensor on the I2C bus to determine if what you see corresponds to what your software is trying to do.

    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