Datasheet
Arduino Code
Programming the Adafruit INA219 breakout board is simple using our library:
Install the Library
Download the library from the Downloads button below
Download Adafruit_INA219
https://adafru.it/rMD
Expand the .zip file to the Libraries folder in your Arduino Sketchbook folder
(If you don't know where this is,
open File->Preferences in the IDE and it will tell you the location of your sketchbook folder)
.
Rename the folder to Adafruit_INA219
Close
all
instances of the IDE, then re-open one, so that the IDE will recognize the new library.
Load the Example
Select "
File->Examples->Adafruit_INA219->getcurrent
"
The "getcurrent" example code should open in a new IDE window.
© Adafruit Industries https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout Page 11 of 19