Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME280 returns reset values

    BME280 returns reset values

    turboscrew
    New Poster

    What could be the problem, when after power-on reset I get temperature and pressure right, but humidity value is the reset value (0x8000).

    The next read returns the reset values for all of them.

    The communication looks good (saleae) taken from the BME280 board pins.

    Could that be caused by floating CSB? Too frequent reading? Bad oversampling setting? I'm using XinaBox SW1 with threads soldered on the connection pads and DuPonts in the other end. The processor is STM32L425 also running with VCC 1.8V.

    It's hard to imagine how that could be power issue, because of the low current consumption compared the 3A output of the power supply.

    I'm using 1.8V for Vcc and Vccio, though.

    15 REPLIES 15

    Vincent
    Community Moderator
    Community Moderator

    In order to check the issue,  you need to double check the register 0xF2 and 0xF4. 

    Whether you use Force mode or normal mode?   

    If use Force mode,  did you trigger the measure by writting the Force mode into register 00xF4 every time?  then wait after measurement time to get data out?

    If use normal mode,  what is the oversampling settings and your read out frequency? 

    Did you use our latets API from Github for BME280 already in your project? 

    That was quick!

    I wrote my own driver. I tried both normal and forced mode. And I polled until status register has bits 0 and 3 reset before burst read of data registers.

    I don't remember the oversampling settings. But I checked (in normal mode) that when I read, the mode seemed to be sleeping mode.

    Is that how it works, or should the mode register contain the value written there?

    [edit]

    Oversampling settings are 0 for humidity, 1 for temperature and pressure. I'm trying to read about every 500 ms.

    And yes, in force mode trials I write force mode into  the config-register before each read attempt.

    But after one succesful read, should the register values to contain reset values (0x080000 or 0x8000)?

     

     

     

    Raising the voltage from 1.8V to 3.3V changed the situation such that no reset values are seen anymore, but still humidity raw value is wrong, I think. I also set the ovarsampling for humidity to 1.

    The data read from the chip is:

    buff[0] uint8_t 0x48 (Hex)
    buff[1] uint8_t 0x87 (Hex)
    buff[2] uint8_t 0x0 (Hex)
    buff[3] uint8_t 0x85 (Hex)
    buff[4] uint8_t 0xeb (Hex)
    buff[5] uint8_t 0x0 (Hex)
    buff[6] uint8_t 0x52 (Hex)
    buff[7] uint8_t 0x95 (Hex)

    Since I have no idea what the raw values represent, I can't figure out whether they make sense or not.

    The compensation constants read from the chip are:

    digH[0] int32_t 75
    digH[1] int32_t 397
    digH[2] int32_t 0
    digH[3] int32_t 783
    digH[4] int32_t 50
    digH[5] int32_t 30

    The configuration registers contain:

    status uint8_t 0x4 (Hex)
    ctrl_meas uint8_t 0x27 (Hex)
    ctrl_hum uint8_t 0x1 (Hex)
    config uint8_t 0x1 (Hex)

    right after the data read.

     

    Vincent
    Community Moderator
    Community Moderator

    The mode is bit [1:0] in same register (0xF4) as oversampling of temperature and pressure.

    And every time you write register 0xF4,  you should not forget to keep the value for oversampling of temperature and pressure. 

    The oversampling of humidity should not be 0 if you need humidity value.

    and you need to follow the compensate formula in our API in Github to convert the register value to meaningful physical value.

    https://github.com/BoschSensortec/BME280_driver

    Sensor supports 1.8V operation,  it should not have reset issue under 1.8V.  Maybe you need to check the whole circuit. 

    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