Altitude with BME280

Use this section to discuss your embedded Flowcode projects.
Post Reply
Monaga
Posts: 7
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 2:57 am

Altitude with BME280

Post 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
Attachments
Flowcode1.fcfx
(15.21 KiB) Downloaded 70 times

medelec35
Matrix Staff
Posts: 1445
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 470 times

Re: Altitude with BME280

Post 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.
Martin

Post Reply