Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Measuring Altitude using BMP280 sensor

    Measuring Altitude using BMP280 sensor

    Ravi
    New Poster

    Hi,

        My application requires measuring the altitude with 0.5m to 1m accuracy. So, I am using the BMP280 sensor to calculate the altitude. The sensor is connected to the NODEMCU(ESP8266) and data read using the I2C interface in Arduino IDE. But while testing the altitude varies to 20m even though the sensor is kept at someplace over a period of time(around 6hrs). PFA for the code and image which shows the variation in altitude (MIN and MAX). Please suggest some solution in order to get the required functionality.

    7 REPLIES 7

    Jachoo
    Occasional Visitor

    calculating altitude compensating for atmospheric lapse rate shall be done using the formulae given below

    mahivarma_0-1634516978654.pngmahivarma_1-1634517008808.png

    one issue with using two sensors to measure the relative height is the effect of absolute error in the pressure sensor. the absolute error for BMB390 is +/-50 pascals which approximately is equivalent to +/-4m in altitude. considering the absolute accuracy error in both sensors the tolerance for th measured height can be up to +/-8m. this probably can be improved, improved a lot by marrying the two sensors. record the difference in absolute pressure reading between the two sensors while at same altitude and then compensate for this difference with the future measurements. I haven't tried this yet. but I am going to. if anyone else in the group has tried this pls let me know.

    regards

    Mahi

    I am trying to reference my altitude measurement to nearest weather station's air pressure report.

    however, I believe I still need to calibrate BMP barometer first to an absolute reference.  any one has experience on how often this calibration needs to be done? can I do a factory calibration and use the result for the life of the product which might be 5-10 years?

    I intend to use BMP581 in my design.

    much thanks

    Leo

    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