Bosch Sensortec Community

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

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

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

    rbx
    New Poster

    Hi,

    I have a couple of questions realted to BSEC 1.4.7.2 installation in Arduino ESP8266 (2.4.2 and 2.5.0):

    1. Executed all the steps from Integration Guidelines for Arduino platforms.pdf. the library seems to be properly  installed, the examples can be compiled without warnings and downloladed to the target platform. However, all the examples display the following error message after loading:

    BSEC library version 1.4.7.1
    BME680 error code : -2

    - Any clue why the target displays version 1.4.7.1 instead of 1.4.7.2 which was downloaded and installed? 1.4.7.2 is the only library installed in my Arduino setup.

    - Any idea why error code: -2 is reported for every  example? The same HW setup works without any issues with Adafruit BME680 library.

     

    2. Why are there two different versions of bsec_dataset.h and bsec_interface.h inclued in BSEC library distribution? Which version of these files should be installed in Arduino setup? The ones that come with the libalgobsec.a (from \BSEC_1.4.7.2_Generic_Release_20190122.zip\algo\bin\Normal_version\esp8266) or the ones from BSEC_1.4.7.2_Generic_Release_20190122.zip\Arduino\BSEC\src\inc?

    3. Has anyone successfully run BSEC examples on NodeMCU/Wemos HW?

    Regards

    rbx

    6 REPLIES 6

    micha_pr
    Established Member

    Hi,

    it is running fine here (and stable (more or less - see other posts) with Wemos D1 mini.
    Have you checked the I2C address?

    -> iaqSensor.begin(BME680_I2C_ADDR_PRIMARY, Wire); 
    in ben680_defs.h:
    #define BME680_I2C_ADDR_PRIMARY UINT8_C(0x76) #define BME680_I2C_ADDR_SECONDARY UINT8_C(0x77)

    I'm using the files from ...Arduino\BSEC\src\inc

    Have you any more debug info?

    Hi, I manage to resolve my problem. It was related to Wire object initialization - i.e.  Wire.begin(I2C_PIN_SDA, I2C_PIN_SCL) was missing for I2C configuration. Once I added this to setup(), everything seems to be working fine.

    Regards

    rbx

    Hello,

    please i am stuck in the same problem. I dont understand how to modify Basic library example to make it works. My bme680 address is 0x77 that match Secondary address. I tried to add a Wire.begin but no success. 

    handytech
    Community Moderator
    Community Moderator

    Have you tried following the suggestion in this comment above? That would mean for example to initialize the library with the secondary address instead of the primary by default:

    iaqSensor.begin(BME680_I2C_ADDR_SECONDARY, Wire);

    Otherwise it would be great if you could share more details about your setup, including hardware used, schematic, code snippet, etc.

    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