Skip to content

codebrainz/ina260

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino INA260 Library

Introduction

This is a small library which exposes the functionality of Texas Instruments' INA260 current-sense amplifier I2C device. It is necessary to read the INA260 datasheet first to understand how the device works. There should be a 1:1 mapping between the datasheet and the types and functions exposed in this library, wherever possible.

The library also includes several helper and conversion functions which users of this device may find useful.

Installation

Check-out the Git repository or extract a .zip of it to a directory named INA260 in your Arduino Sketch directory's libraries sub-directory. Refer to the Installing Additional Arduino Libraries Guide for more information on installing Arduino libraries.

Documentation

The best sources of information are the TI INA260 datasheet and the INA260.h header file. Since this is a thin wrapper over the INA260 I2C interface, you should be able to work out how to use this API based on the information provided in the datasheet. See also the examples directory for working examples on using the library.

Dependencies

This library uses only the standard Arduino/Wire libraries and modern C++ standard library/compiler. It makes use of some GCC-specific extensions and assumes the target architecture is little endian. For most uses this doesn't matter, unless you're porting the library to a new architecture or compiler. The examples assume you have the Arduino connected by USB/serial and can use the Arduino IDE's Serial Monitor/Plotter functionality.