BME680 atitude problem in mega-20210223

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

BME680 atitude problem in mega-20210223

#1 Post by mackowiakp » 26 Apr 2021, 18:21

FW release ESPEasy_ESP82xx_mega-20210223 - ESP8266 4M. Custom.h, own compilation.
I live at an altitude of 157 above sea level.
I would like the BME680 sensor to show the pressure reduced to sea level, as it is given in the weather forecasts. There is a suitable place in the setup to enter the height at which the sensor is located. But the driver always returns the absolute value, regardless of the height value entered.
In contrast, the driver of the BMP180 sensor, after entering the height of 157m in the same field, calculates the pressure according to the height.

How can this problem be solved?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: BME680 atitude problem in mega-20210223

#2 Post by TD-er » 26 Apr 2021, 19:53

Sounds like a bug.
Can you make a GitHub issue for it so I won't forget it?

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: BME680 atitude problem in mega-20210223

#3 Post by ThomasB » 26 Apr 2021, 20:06

From a quick review of the P106_BME680 plugin I saw that it ignores the altitude offset value.

To fix this I suggest looking at the P006_BMP085 plugin's pressureElevation() function. It should provide inspiration on how to incorporate the altitude into the BME680's pressure value.

- Thomas

EDIT: Looks like TD-er beat me to this. Yup, this bug needs some coding love.


mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: BME680 atitude problem in mega-20210223

#5 Post by mackowiakp » 27 Apr 2021, 02:40

OK. Fine. Work in progress. So will wait. THX !

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: BME680 atitude problem in mega-20210223

#6 Post by TD-er » 27 Apr 2021, 11:12

mackowiakp wrote: 27 Apr 2021, 02:40 OK. Fine. Work in progress. So will wait. THX !
It was already merged, so if you could test that would be appreciated.
Here are some binaries, but it looks like all "testing" builds have failed due to size.
https://github.com/letscontrolit/ESPEas ... /787263536

mackowiakp
Normal user
Posts: 527
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: BME680 atitude problem in mega-20210223

#7 Post by mackowiakp » 04 May 2021, 05:52

OK. Solved in mega-20210503. THX !

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests