Datasheet

CircuitPython Code
It's easy to use the INA219 sensor with CircuitPython and the Adafruit CircuitPython INA219 module. This module
allows you to easily write Python code that reads the current and more from the sensor.
First wire up a INA219 to your board exactly as shown on the previous pages for Arduino using an I2C interface. Here's
an example of wiring a Feather M0 to the sensor with I2C:
Board 3V to sensor Vcc
Board GND to sensor GND
Board SCL to sensor SCL
Board SDA to sensor SDA
In addition connect some load to measure the current from in series to the sensor's Vin- and Vin+ pins as mentioned
on the wiring page.
Next you'll need to install the Adafruit CircuitPython INA219 library on your CircuitPython board. Remember this
module is for Adafruit CircuitPython firmware and not MicroPython.org firmware!
First make sure you are running the latest version of Adafruit CircuitPython for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle. For example the Circuit Playground Express guide has a great
page on how to install the library bundle for both express and non-express boards.
Remember for non-express boards like the Trinket M0, Gemma M0, and Feather/Metro M0 basic you'll need to
manually install the necessary libraries from the bundle:
adafruit_ina219.mpy
adafruit_bus_device
© Adafruit Industries https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout Page 15 of 19