Skip to content

Add BMP390 sensor input module for pressure and temperature measurements#1534

Open
kevdougful wants to merge 1 commit into
kizniche:masterfrom
kevdougful:feat/bmp390
Open

Add BMP390 sensor input module for pressure and temperature measurements#1534
kevdougful wants to merge 1 commit into
kizniche:masterfrom
kevdougful:feat/bmp390

Conversation

@kevdougful

Copy link
Copy Markdown

This pull request adds a new input module for the BMP390 pressure and temperature sensor. The module supports reading temperature, pressure, and calculating altitude, and integrates with the Mycodo framework. The main changes include implementing sensor initialization, reading and compensating sensor data, and defining metadata and dependencies for the BMP390 sensor.

New BMP390 sensor input module:

  • Added InputModule class in bmp390.py to support the BMP390 sensor, including initialization, measurement reading, and compensation routines.
  • Defined sensor metadata (INPUT_INFORMATION), supported measurements (pressure, temperature, altitude in meters and feet), and I2C configuration.
  • Implemented calibration data loading and sensor compensation algorithms based on the Bosch datasheet.
  • Integrated altitude calculation using the measured pressure and configurable sea level pressure.
  • Declared required dependency on the Adafruit-GPIO library for I2C communication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant