Pressure example BMP085
-
So (and not to cause issue), is the sketch as it stands returning an incorrect value, and just inefficient? Or is the value being returned incorrect as well?
I'm definitely all for streamlining the code, especially if it is storing arrays of a lot of unused figures. I use a BMP085 around here and in testing, and it is in a location where I want to have a few sensors on the one unit, as it will essentially form my main weather station, so the reworking of the code would be interesting.
I'm not too up to scratch on the code side, still only just learning the semantics of arduino, so I would be keen to see how this one develops. Nice work! :)
-
The forecast of my weatherstation is always "stable". The wrong factor could be an explanation for that. I changed the sketch some minutes ago, now I am curious if the forcast algorithm works as expected.
-
@Heinz Yesterday we had a thunder forecast... but the sensor reported cloudy so i will also try this :)
Thank you! I will try and report back - well done! -
Well, after the changes the forecast obviously works well. I will try to submit the changed code the next days.
-
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