richonguzman / LoRa_APRS_iGate

LoRa APRS iGATE for ESP32 Based Board with Rx + Tx capabilities
MIT License
211 stars 65 forks source link

BME280 Sensor: Atmospheric pressure values not correct #30

Closed oe5reo closed 7 months ago

oe5reo commented 7 months ago

I just added an BME280 to my LoRa iGate: https://en.aprs.fi/info/OE5REO-11

Temperature and humidity seem to work fine ... but the value for atmospheric pressure is completely wrong. It is showing 947 or 946mbar although the pressure right now is about 1000mbar (looked it up on a wx station nearby).

So I am wondering ...

Do I need to calibrate the sensor first? Do I need to make some changes (perhaps in "bme_utils.cpp")? Or perhaps is the BME280 faulty and I should try another one?

Thanks for your help

73, Martin OE5REO

richonguzman commented 7 months ago

Maybe you need to adjust the height from sea level.

Check this value where you live and adjust it on bme-utils.h or .cpp

oe5reo commented 7 months ago

Hi Ricardo,

thanks for your quick reply. You mean I should put 470 (I live 470m ASL) in the yellow highlighted line (see screenshot)?

Screenshot 2024-02-08 184122

richonguzman commented 7 months ago

Yes

Try with 470 instead of 0 as this is meters height correction

oe5reo commented 7 months ago

Thank you ... working fine now!