pi_ina219

This Python library supports the INA219 voltage, current and power monitor from Texas Instruments with a Raspberry Pi using the I2C bus. The intent of the library is to make it easy to use the quite complex functionality of this sensor.

MIT License

Downloads
2.3K
Stars
108
Committers
7

Bot releases are visible (Hide)

pi_ina219 - PyPi documentation fix Latest Release

Published by chrisb2 over 1 year ago

PyPi documentation fix.

pi_ina219 - Added is_conversion_ready() function to check if a new reading is available

Published by chrisb2 almost 4 years ago

The is_conversion_ready() function checks if the INA219 has updated the registers with a new reading, this can be used to guarantee that a measurement represents a new reading, not the previous reading. The method is checking bit CNVR in the voltage register according to INA219 datasheet.

pi_ina219 - Update to use named logger rather than the root logger

Published by chrisb2 almost 5 years ago

Allows a main module module to configure root logger using basicConfig() if required.

pi_ina219 - Support addressing i2c bus numbers > 1

Published by chrisb2 over 6 years ago

A new parameter 'busnum' has been added to the INA219 class contructor this is the I2C bus number for the device platform, defaults to auto detects 0 or 1 for Raspberry Pi or Beaglebone Black (optional).