Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Are there a default, identity values for the calibration data of the BME280

    Are there a default, identity values for the calibration data of the BME280

    bonnyr
    New Poster

    Hi there,

     

    I am in the process of creating a software version of the BME280 and one thing I cannot find is how to 
    program the calibration data such that I can simply use raw values that would be equal to the compensated values

    For example if I have a raw temperature (16.4 format) with the value 0x3FFF0 then have a value that reads something like 84.99 celsius 

    Alternatively, is there a way to invert the formulas such that if I start with a temperature I can compute the raw value? 

    11 REPLIES 11

    Hi @BSTRobin,

    Thanks for your reply. 

    However I think there's still a misunderstanding about what I am trying to do so I'll try again.
    I've written a piece of software that communicates over SPI with Arduino where the Bosch Sensortec library is used to read sensor data.
    The arduino side of things reads the calibration data (as recommended in the documentation), sets the sensor mode to normal and starts
    reading sensor data.

    Since the data is used on the arduino side feed into the compensation methods of the BStec libraries I wanted to know what data
    I can provide in the calibration data such that when the sensor data is read and the software is reporting something like 0x789AB (20 bits in 16.4 format)
    the resulting value would be something that represents the top of the range of the temperature sensor, resulting in something like 75.12 *C.

    To be clear I am not trying to reimplement the hardware, rather allow users to add this component to a simulator like Tinkercad for whatever project they are building.

    I hope this helps clarify my query.

     

    Cheers,

     

    Bonny

     

     

    Hi @BSTRobin

    Any help possible here?

    @BSTRobin, @FAE_CA1

    Can one of you please tell me if what I'm trying to do is possible?

    Cheers

    Bonny

    BSTRobin
    Community Moderator
    Community Moderator

    Hi bonnyr,

    The temperature data obtained from the BME280 sensor API can be considered as raw data, and then you can perform the format conversion you need.

    Hi @BSTRobin 

     

    I am not sure why we are going in circles...

    I am trying to produce these raw values so that a user software, using the BST library can read these over SPI and coupled with the coefficients, get the compensated values

    So for example, what should I put in the 24bit of the temperature registers so that when a client reads that they can convert to a real temperature?

     

    So if I wanted to generate the raw values for:

    Temperature.        Register Values (FA, FB, FC)
    20*C ? ? ?
    25*C ? ? ?
    -15*C ? ? ?
    -2.5C ? ? ?

    I know you'd say these depend on the coefficients, but given a set of coefficients what are the register values for the above temperatures?

    Alternatively, is there a way to program the coefficients for test purposes so that they simply are ignored (identity)?

    for example, if I used 0x1000 with those coefficients, the resulting temperature would be 40.96*C?

    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