Pressure example BMP085
-
For all the v2 library is out, although the v1 is the one commonly provided today
https://learn.adafruit.com/bmp085/using-the-bmp085-api-v2The BMP085 has been discontinued by BOSCH and replaced with the BMP180 which is smaller and less expensive but is identical in terms of wiring and software!
to have a correct pressure you need to correct this:
float pressure_raw = bmp.readPressure(); + float pressure = pressure_raw/pow((1.0 - ( myAltitude/44330.0 )), 5.255);now I have values that I can validate with other barometers. You just need to know your altitude from sea level.
-
The library used in the pressure example of the mysensors project already supports this:
float pressure = bmp.readSealevelPressure(ALTITUDE) / 100.0;Btw I fixed some issues in the sample see also
https://github.com/mysensors/Arduino/tree/master/libraries/MySensors/examples/PressureSensor -
Hi all,
the forcast is working as expected for a while now. It follows the pressure values from the device.
First diagram shows pressure and forcast. Looks like the calculation is ok.
But the weather doesnt know anything about the forecast :) 100% Humidity because it rains Dogs and Cats :)
This is no question. Just a little reminder about crystalballs :)
Andreas
-
Mine is also working well...here is my FHEM screentshot of today. Right now it is clearing up again after a short thunder storm...

I also added a weather situation indicator which works like a common barometer: it shows sunny when the pressure is above 1013hPa and rainy if the pressure is below this world wide average.
The field "Vorhersage" shows the forecast "sunny" as the pressure raised last last hours significantly.
-
@Heinz
I too am having reading issues with the new 180 pressure sensor.a couple of questions,
Is altitude stated in meters I think?The code revisions;
Are they to added to sketch in place of the existing parts, while the algorithm is to be totally replaced with the revised code you have supplied?Thanks
-
-
You don't need to upgrade to 1.5, you can simply download the sketch from here
https://github.com/mysensors/Arduino/tree/development/libraries/MySensors/examples/PressureSensor