Skip to content

Latest commit

 

History

History
executable file
·
10 lines (8 loc) · 1.35 KB

README.md

File metadata and controls

executable file
·
10 lines (8 loc) · 1.35 KB

INA226

INA226 High-Side/Low-Side Bi-Directional I2C Current and Power Monitor library for the Arduino. Texas Instruments produces this family of power monitors and the series is described at on their product page at INA226.

Hardware layout

The datasheet has examples of how to hook up INA226.

Library description

The library uses INA226 devices connected to the I2C chain. Each unit can be individually configured with 4 setup parameters describing the expected voltage, shunt / resistor values which then set the internal configuration registers is ready to begin accurate measurements. The details of how to setup the library along with all of the publicly available methods can be found on the INA226 wiki pages.

The INA226 has a dedicated interrupt pin which can be used to trigger pin-change interrupts on the Arduino and the examples contain a program that measures readings using this output pin so that the Arduino can perform other concurrent tasks while still retrieving measurements.

dboe Logo