In Part 3, I wrote about a talking barometer but had to mock up a barometer. The other day, a barometer chip and pi Cobbler arrived so I now have a real talking barometer.
Apart from the RPi, the components are:
Kernel support for I2C is included in the Raspian distro. Mostly following the Adafruit tutorial, additons from the Quick2Wire site, I only had to:
The BMP085 module worked fine. However for use in forecasting, the observed barometric pressure has to be corrected for altitude back to sea-level pressure, so I added an additional method using the formula provided in the datasheet:
The original talking barometer code worked except that the generator which read raw barometric pressures was changed to now create the BMP085 object and read the sea level pressure at intervals.
The only complication is that an altitude is now required and this has to be passed through the filter pipeline, which is messy. Perhaps a configuation file would be better if less functional.
Thanks to Bristol Hackspace for the soldering iron and reassurance, and of course to Google search, although one could wish that it wasn't easier to find information which is out-of-date than up-to-date.