Page 1 of 1

Altitude with BME280

Posted: Fri Jul 29, 2022 9:23 pm
by Monaga
Hello:

How altitude is calculated by taking atmospheric pressure and temperature, with a BME280 sensor?
or if know the formula for calculating altitude


Thanks

Re: Altitude with BME280

Posted: Fri Jul 29, 2022 11:35 pm
by medelec35
Hello.
I used

Code: Select all

Altitude = Pressure/ 1013.25
Altitude =  1 - pow (Altitude, (0.190284))
Altitude = Altitude * 145366.45
The pressure is taking into account the temperature within the BME280.