Bosch Sensortec Community

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

    BMP390 attached to BHI260AP gives inaccurate pressure measurements

    BMP390 attached to BHI260AP gives inaccurate pressure measurements

    BojanSof
    Member

    I have custom design based around BHI260AP smart sensor, with the BMP390 pressure sensor attached to its i2c1 bus, same as in the shuttle board 3.

    I have built the FW for the sensor with the `VirtPressure` virtual sensor enabled and I've enabled it in my host mcu firmware.

    I am using the BHY2 API code from github to interface with the smart sensor in my host mcu.

    When I read the pressure sensor, I get raw values ~125250, and to convert them in hPa, according to the BHY2 API code, I need to divide by 128, so I obtain ~978 hPa, which is very off.

    What can cause this? Is the `BMP3Baro` driver inside BHI260AP SDK (I am using version 1.1.8.0) doing pressure compensation, or should I implement custom driver for BMP390? Can anyone check what value they are obtaining when using the shuttle board?

    Thanks in advance!

    3 REPLIES 3

    BojanSof
    Member

    I've did more experimentations and implemented custom driver for the BMP390 sensor using the BHI260AP SDK, but still the value is same, incorrect.

    I've dumped the trimming values for the calibration process and I've put them in a spreadsheet for compensation that I've found in previous forum post, for BMP388, but the procedure for compensation looks the same.

    With the trimming values I've got from the sensor, the value calculated in the spreadsheet is the same as the one from the firmware, inaccurate (attached the spreadsheet with file name bmp390_compensation.xlsl).

    But if I use the trimming values from the original spreadsheet, I obtain much more sensible values (attached the spreadsheet with file name bmp390_compensation_other_trim.xlsl).

    I've checked the CRC for them using the self-test code found in the BMP3 API github repo, and the CRC is correct.

    Is it possible that the trimming values stored in the sensor are incorrect? Any other suggestions?

    Multiple devices use the same design and all give incorrect values for the pressure.

    Thank you in advance.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi BojanSof,

    In another link https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BHI260AP-sensor-with-BMP390-to-get-press..., we run example code which parse temperature, humidity, pressure, gas sensor data on BHI260AP shuttle board 3.0, it works well. You can refer it.

    Hi BSTRobin,

    Thanks for sharing that post, I've tried that code, and the pressure sensor is reporting same value, around ~980 hPa.

    But I've got another idea, to check the national hydrometeorological service data for atmospheric and not to rely on accuweather.

    And then I've found that accuweather was reporting atmospheric pressure of 1019 hPa, but the national hydrometeorological service was reporting values in range 980 - 990 hPa, depending on the region in the city. The sensor was reporting 987 hPa this night, which is inline with the data from the national hydrometeorological service. So everything is fine with the sensor, it was false alarm.

    I am sorry for the inconvenience.

    Best regards,

    Bojan

    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