2020-12-19, 05:07 PM
(2020-12-17, 10:14 PM)Sailoog Wrote:(2020-12-17, 07:52 AM)olewsaa Wrote: I would also like to enable support for the older bmp180, while it show up at 0x77 there is no menu entry for bmp180 and hence it does not work, e.g. no data.
While it's possible to upgrade to bmp280 it would be great if the support for bmp180 could be enabled again, my bmp180 sits on a hat and the module is not plugable.
Ole
Do you have any python3 script for the bmp180 we can use?
I'm sorry, when I tested and used BMP180 I cheated and just used the Adafruit_BMP library.
import Adafruit_BMP.BMP085 as BMP085
sensor = BMP085.BMP085()
and to print out :
print('Pressure = {0:0.2f} Pa'.format(sensor.read_pressure()))
As the cost of a bmp280 is very small upgrading to the 280 is not really an issue. I think this is the best solution, extra work to replace the module is my problem.
Ole W. Saastad
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa
web : https://www.homelinux.no https://algol.homelinux.no
https://github.com/olewsaa/Yacht-computer
twitter : olewsaa