Home Sensors & Detection INA219 Current Sensor
Sensors & Detection

INA219 Current Sensor

$2-5

Specifications

Voltage0-26V
Current±3.2A (0.8mA resolution)
InterfaceI2C
Power CalculationBuilt-in

Use cases

Battery monitoringSolar powerPower profiling

Integration code

Example code
from ina219 import INA219

ina = INA219(shunt_ohms=0.1, i2c=i2c)
ina.configure()

voltage = ina.voltage()
current = ina.current()
power = ina.power()

print(f"V: {voltage:.2f}V, I: {current:.1f}mA, P: {power:.1f}mW")

Notes and tips

Essential for power monitoring. Use INA226 for higher precision.