Code Monkey home page Code Monkey logo

ina's Introduction

INA

INA2xx Devices

Arduino library to access multiple INA2xx High-Side/Low-Side Bi-Directional I2C Current and Power Monitors at the same time. Details of the library methods and example programs are to be found at the INA wiki pages.

Texas Instruments produces this family of power monitors and the library supports the following devices:

Device Max V Package Shunt mV Description Tested
INA219 (datasheet) 26V SOT-23 8p ±40,±80,±160,±320mV Yes
INA220 (datasheet) 26V VSSOP 10p ±40,±80,±160,±320mV identical to INA219 -
INA220-Q1 (datasheet) 26V VSSOP 10p ±40,±80,±160,±320mV Identical to INA219 -
INA226 (datasheet) 36V VSSOP 10p ±81.92mV Yes
INA230 (datasheet) 28V QFN 16p ±81.92mV Identical to INA226 -
INA231 (datasheet) 28V DSBGA-12 ±81.92mV Identical to INA226 -
INA260 (datasheet) 36V TSSOP 16p n.a. 2 mΩ shunt, ±15A Yes
INA3221 (datasheet) 26V VQFN(16) ±163.8mV 3 concurrent circuits Yes

Hardware layout

The packages are small and a lot of work to solder, but fortunately there are now several sources for breakout boards for the various devices which are worth it in time savings. My first test with a INA226 involved a blank breakout board, some solder paste, a frying pan, desoldering braid, a magnifying glass and quite a bit of time to set up the first breadboard.

Library description

The library locates all INA2xx devices on the I2C chain. Each unit can be individually configured with 2 setup parameters describing the expected maximum 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 INA wiki pages.

Great lengths have been taken to avoid the use of floating point in the library. This keeps the library size down because floating point support doesn't have to be compiled into the code. The results are returned as 32-bit integersTo keep the original level of precision without loss but to allow the full range of voltages and amperes to be returned the amperage .

Since the functionality differs between the supported devices there are some functions which will only work for certain devices.

INA

ina's People

Contributors

avaldebe avatar batarian711 avatar per1234 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.