User Manual
current - The current in milliamps.
voltage - The voltage in volts.
power - The power in milliwatts
For example to print current, voltage, and power levels:
For more details, check out the library documentation (https://adafru.it/EGM).
That's all there is to using the INA260 sensor with CircuitPython!
Full Example Code
To get accurate measurements when calling readVoltage and readPower for low side sensing you will need to cut
the VB jumper on the right side of the breakout and connect the VBus pin to your bus.
print("Current:", ina260.current)
print("Voltage:", ina260.voltage)
print("Power:", ina260.power)
import time
import board
import adafruit_ina260
i2c = board.I2C()
ina260 = adafruit_ina260.INA260(i2c)
while True:
print("Current: %.2f mV Voltage: %.2f V Power:%.2f mW"
%(ina260.current, ina260.voltage, ina260.power))
time.sleep(1)
By default power and voltage measurements are only accurate for high side current sensing
© Adafruit Industries
https://learn.adafruit.com/adafruit-ina260-current-voltage-power-sensor-
breakout
Page 19 of 24










