bmp180 - Temperature & Barometic Pressure Sensor

CircuitPython driver from BMP180 Temperature and Barometic Pressure sensor

  • Author(s): BadTigrou, Jose D. Montoya

class bmp180.BMP180(i2c_bus: busio.I2C, address: int = 119)[source]

Base BMP180 object. Use BMP180_I2C instead of this. This checks the BMP180 was found, reads the coefficients and enables the sensor for continuous reads

property temperature

The compensated temperature in Celsius.

property altitude

The altitude based on the sea level pressure - which you must enter ahead of time

property pressure

The compensated pressure in hectoPascals.

property mode

Operation mode Allowed values are set in the MODE enum class

Mode

Value

bmp180.MODE_ULTRALOWPOWER

0x00

bmp180.MODE_STANDARD

0x01

bmp180.MODE_HIGHRES

0x02

bmp180.MODE_ULTRAHIGHRES

0x03

Example

i2c = board.I2C()
qmc = bmp180.BMP180(i2c)


bmp180.mode = bmp180.MODE_HIGHRES
property oversampling_setting

Oversampling setting Allowed values are set in the OVERSAMPLES enum class