adafruit_ina219
¶
CircuitPython driver for the INA219 current sensor.
Author(s): Dean Miller
Implementation Notes¶
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware (2.2.0+) for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
- class adafruit_ina219.ADCResolution[source]¶
Constants for
bus_adc_resolution
orshunt_adc_resolution
- class adafruit_ina219.INA219(i2c_bus: I2C, addr: int = 64)[source]¶
Driver for the INA219 current sensor
- set_calibration_16V_400mA() None [source]¶
Configures to INA219 to be able to measure up to 16V and 400mA of current. Counter overflow occurs at 1.6A.
Note
These calculations assume a 0.1 ohm shunt resistor is present
- set_calibration_16V_5A() None [source]¶
Configures to INA219 to be able to measure up to 16V and 5000mA of current. Counter overflow occurs at 8.0A.
Note
These calculations assume a 0.02 ohm shunt resistor is present
- set_calibration_32V_1A() None [source]¶
Configures to INA219 to be able to measure up to 32V and 1A of current. Counter overflow occurs at 1.3A.
Note
These calculations assume a 0.1 ohm shunt resistor is present