INA3221 Breakout Board

Similar documents
INA169 Breakout Board Hookup Guide

Temperature Sensor and System Monitor in a 10-Pin µmax

Dual Bidirectional I 2 C-Bus and SMBus Voltage-Level Translator UM3212M8 MSOP8 UM3212DA DFN

FXWA9306 Dual Bi-Directional I 2 C-Bus and SMBus Voltage- Level Translator

PI6ULS5V9509 Level Translating I 2 C-Bus/SMBus Repeater with Tiny Package

EM Arduino 4-20mA Shield Documentation. Version 1.5.0

2-Bit Bidirectional Voltage Level Translator for Open-Drain and Push-Pull Applications UM2102S SOT23-6 General Description

Pololu Dual G2 High-Power Motor Driver for Raspberry Pi

High-side Current Sensing Techniques for the isppac-powr1208

Adafruit SGP30 TVOC/eCO2 Gas Sensor

The CV90312T is a wireless battery charger controller working at a single power supply. The power

POLOLU MAX14870 SINGLE BRUSHED DC MOTOR DRIVER CARRIER USER S GUIDE

Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi B+

DS1307ZN. 64 X 8 Serial Real Time Clock

Multimode 155Mbps Optical Transceiver SFP with Digital Diagnostic

Features. Description PI6ULS5V9515A

ADC081C021/ADC081C027 I 2 C-Compatible, 8-Bit Analog-to-Digital Converter (ADC) with Alert Function

SFP-CWDMxx.60. CWDM* Wavelength (0 to 70 o C)

INTEGRATED CIRCUITS. PCA9515 I 2 C bus repeater. Product data Supersedes data of 2002 Mar May 13

Features. Description. Pin Description. Pin Configuration PI6ULS5V9517A. MSOP-8 and SOIC-8. UQFN1.6x1.6-8L(Top view) DFN2x3-8L(Top view)

INTEGRATED CIRCUITS. PCA channel I 2 C hub. Product data Supersedes data of 2000 Dec 04 File under Integrated Circuits ICL03.

Adafruit 16-Channel Servo Driver with Arduino

3-Channel Fun LED Driver

SNR-SFP-LX 1.25Gbps. Features. Applications. Product Description

NCT5927W. Nuvoton. Level translating

2.5Gbps SFP Transceiver

Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ. Description. Applications. On-Demand Power Control Logic.

Data Sheet. APDS-9702 Signal Conditioning IC for Optical Proximity Sensors with Digital I 2 C Interface. Features. Description.

4.25Gbps SFP Transceiver

Single Fiber 1.25Gbps Bi-directional Optical Transceiver SFP with Digital Diagnostics

9DoF Sensor Stick Hookup Guide

2A Sink/Source Bus Termination Regulator

EOLS-1312-XXXX 1.25Gbps SFP Transceiver

Product Specification SFP WDM 1G 40km SC Transceiver

Product Specification Gigabit RoHS Compliant Long-Wavelength SFP+ Transceiver FTLF1426P2BTL

Product Specification. 16GFC RoHS Compliant Long-Wavelength SFP+ Transceiver FTLF1429P3BCE

DEMO CIRCUIT 976 LT3476EUHF. Quadruple High Power LED Driver in Buck Mode DESCRIPTION. PERFORMANCE SUMMARY Specifications are at TA = 25 C

TOP VIEW. I 2 C/SMBus CONTROLLER. Maxim Integrated Products 1

LP3943/LP3944 as a GPIO Expander

IS31FL CHANNEL FUN LED DRIVER July 2015

SFP+ BIDI Series JB1270-SFP-LC.S40. Features. Applications. Ordering information

ADC081C021/ADC081C027

SFP+ BIDI Series GigaStream BIDI-10G-SFP-40A & BIDI-10G-SFP-40B

16 Channels LED Driver

Adafruit 16-channel PWM/Servo Shield

BOOST/ BUCK-BOOST/ BUCK CONTROLLER IC with External MOSFET

The SCX18.S provides dual high power regulators capable of supplying 3A to the connected servos from an external Li-Pol or

ACT8846 Rev 9.0, 18-Jun-2018

OCTECH 1.25Gbps SFP Transceiver

XFP 10G MM SR. 10Gbps XFP Optical Transceiver, 300m Reach

I2C Encoder. HW v1.2

ES3112-3LCD Gbps SFP Optical Transceiver, 10KM Reach

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic

Characteristic Sym Notes Minimum Typical Maximum Units Operating Frequency Range MHz. RF Chip Rate 11 Mcps RF Data Rates 1, 2, 5.

ACPL Data Sheet. Three-Channel Digital Filter for Sigma-Delta Modulators. Description. Features. Specifications.

RT9554A. Battery Output Current Sense Protection IC. General Description. Features. Applications. Pin Configurations. Ordering Information RT9554A

SGMII SFP 125Mbps 1310nm MMF 2KM SLSG D

INF8574 GENERAL DESCRIPTION

DS1065 EconOscillator/Divider

PERFORMANCE SPECIFICATIONS - ELECTRICAL

SFP Series IOLS-1348-XXXX. 4.25Gbps up to 30 km transmission. version 0.1 FEATURES PRODUCT DESCRIPTION

IS31FL3190 IS31FL CHANNEL FUN LED DRIVER. Preliminary Information November 2015

RT9728C. 120mΩ, 1.3A Power Switch with Programmable Current Limit. General Description. Features. Applications. Pin Configurations

NCT5917W. Nuvoton. Level translating. I2C-bus/SMBus Repeater

400 ma nano-quiescent synchronous step-down converter with digital voltage selection and Power Good

DS1307/DS X 8 Serial Real Time Clock

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

XFP 10G SR 03km LC Optical Transceiver

GPH-3102-L1C(D) 100BASE-LX Spring-Latch SFP Transceiver, 10km Reach

Product Specification. 16GFC RoHS Compliant Long-Wavelength SFP+ Transceiver FTLF1429P3BCV

FMS Input, 6-Output Video Switch Matrix with Output Drivers, Input Clamp, and Bias Circuitry

802.11g Wireless Sensor Network Modules

Description. Features. Pin Configuration. Pin Description PI4MSD5V9546A. 4 Channel I2C bus Switch with Reset

Product Specification. 10Gb/s, 40km Single Mode, Multi-Rate SFP+ Transceiver FTLX1672D3BTL APPLICATIONS

Tarocco Closed Loop Motor Controller

High Accuracy Ambient Light Sensor with I 2 C Interface

FLD00042 I 2 C Digital Ambient Light Sensor

FPF2495 IntelliMAX 28 V Over-Voltage, Over-Current Protection Load Switch with Adjustable Current-Limit Control

10Gb/s DWDM Single-mode SFP+ Transceiver

Design of an Electrical Power Subsystem Using the CubeSat Stackable

PART TOP VIEW V EE 1 V CC 1 CONTROL LOGIC

Parameter Symbol Min Max Unit Storage Temperature T ST Case Operating Tempature Tc Supply Voltage V CC V

OCTECH 1.25Gbps SFP Transceiver

Nuvoton SMBus GPIO Controller W83L603G W83L604G

Product Specification. 10Gb/s 80km Single Mode SFP+ Transceiver FTLX1871D3BCL APPLICATIONS FTLX1871D3BCL

Product Specification Gigabit RoHS Compliant Long-Wavelength SFP+ Transceiver FTLX1370W3BTL APPLICATIONS

SFP Series IOLS-1624-XX-XX. 2.5Gbps APD High Sensitivity Receiver. version 0.1 FEATURES PRODUCT DESCRIPTION

PowerAmp Design. PowerAmp Design PAD125 CURRENT LIMIT ACCESSORY MODULE

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Implications of Slow or Floating CMOS Inputs

Two-/Four-Channel, I 2 C, 7-Bit Sink/Source Current DAC

CMOS MT9D111Camera Module 1/3.2-Inch 2-Megapixel Module Datasheet

Low Power, Adjustable UV and OV Monitor with 400 mv, ±0.275% Reference ADCMP671

New Current-Sense Amplifiers Aid Measurement and Control

PERFORMANCE SPECIFICATIONS - ELECTRICAL

Motor Driver HAT User Manual

AC Current click PID: MIKROE Weight: 27 g

DS1803 Addressable Dual Digital Potentiometer

EVALUATION KIT AVAILABLE EEPROM-Based System Monitors with Nonvolatile Fault Memory

RT9728A. 120mΩ, 1.3A Power Switch with Programmable Current Limit. General Description. Features. Applications. Pin Configurations

Transcription:

Product Specification Features and Benefits:! The is an easy to use 3 Channel Current / Voltage I2C Monitor. The monitors both shunt voltage drops and bus supply voltages in addition to having programmable conversion times and averaging modes for these signals. The INA3221 also offers both critical and warning alerts to detect multiple programmable out-of-range conditions for each channel. 3 Channel AD converter for current/voltage Works with Arduino and Raspberry Pi 3.3V / 5.0V I2C Bus Senses 0V to +26V Offset Voltage: +/-80 uv (Max) Gain Error: 0.25% (Max) Four Programmable Addresses Programmable Conversion Times 0.1 Ohm Shunt Resistors (Can be replaced) Compare to using 3 INA219 single channel devices Software Drivers for Arduino and Raspberry Pi Included! Low Cost Quantity Discounts Available Immediate Availability Introduction The is a three-channel, highside current and bus voltage monitor with an I2C interface. Sometimes, you want to measure lots of things in your system. A great example is when you have a solar powered system. To figure out what is going on in your solar system dynamically, you need to measure the current and voltage for the Solar Cells, Batteries and the Load (computer) all at the same time. The conventional way to do this is to use three $10 INA219 (same function, but only one channel) for a cost of $30 and much more wiring / space. This INA3221 breakout board will do the same job as three INA219's but for about half the cost and about 40% of the space. Version 1.0 - Page 1 of 10

How To Use The INA3221 is a three-channel, high-side current and bus voltage monitor with an I2C interface. The INA3221 monitors both shunt voltage drops and bus supply voltages in addition to having programmable conversion times and averaging modes for these signals. The INA3221 also offers both critical and warning alerts to detect multiple programmable out-of-range conditions for each channel. There are three 0.1 Ohm shunts already on the board that can be removed by cutting a trace on the board if you want some other value. To use the INA3221, you connect the I2C bus up to an Arduino or Raspberry Pi and then connect the loads that you want to measure as shown below: Version 1.0 - Page 2 of 10

Pinout Wiring List Raspberry Pi (A/B/A+/B+/Pi 2) Signal Name Raspberry Pi A/B/A+/B+/Pi 2 Power 3.3V (GPIO/1) VCC (JP1/1) GND GND (GPIO/6) GND (JP1/2) SCL I2C1_SCL (GPIO/5) SCL (JP1/3) SDA I2C1_SDA (GPIO/3) SDA (JP1/4) Version 1.0 - Page 3 of 10

Arduino Uno Signal Name Arduino Uno Power 5.0V (POWER/5V) VCC (JP1/1) GND GND (POWER/GND) GND (JP1/2) SCL ADC5/SCL (ANALOG IN/A5) SCL (JP1/3) SDA ADC4/SDA (ANALOG IN/A4) SDA (JP1/4) Ardunio Mega 2560 Signal Name Arduino Mega 2560 Power 5.0V (POWER/5V) VCC (JP1/1) GND GND (POWER/GND) GND (JP1/2) SCL SCL (COMMUNICATIONS 21) SCL (JP1/3) SDA SDA (COMMUNICATIONS 20) SDA (JP1/4) Note: As with all SwitchDoc Labs Breakout s, the does not contain any Pullup resistors for the I2C Bus SCL/SDA. You must supply those somewhere on your bus (10K resistors generally work well). We do not put pull-ups on boards because if you put multiple devices on the same I2C bus you will end up having too many pull-ups. Version 1.0 - Page 4 of 10

Theory of Operation INA3221 IC For more information, see the full INA3221 Specification at: http://www.ti.com/lit/ds/symlink/ina3221.pdf The INA3221 senses current on buses that can vary from 0 V to +26 V. The device is powered from a single +2.7-V to +5.5-V supply and draws 350 μa (typ) of supply current. The INA3221 is specified over the operating temperature range of 40 C to +125 C. The I2C interface features four programmable addresses. Version 1.0 - Page 5 of 10

The INA3221 is a current-shunt and bus voltage monitor that communicates over an I2C- and SMBus-compatible interface. The device provides digital shunt and bus voltage readings necessary for accurate decision making in precisely-controlled systems and also monitors multiple rails to ensure compliance voltages are maintained. Programmable registers offer flexible configuration for measurement precision and continuous versus single-shot operation. The INA3221 performs two measurements on up to three power supplies of interest. The voltage developed from the load current passing through a shunt resistor creates a shunt voltage that is measured between the IN+ and IN pins. The device also internally measures the power-supply bus voltage at the IN pin for each channel. The differential shunt voltage is measured with respect to the VIN pin while the bus voltage is measured, with respect to ground. As noted, the INA3221 takes two measurements for each channel. Each measurement can be independently or sequentially measured, based on the mode setting (bits[2:0] in the Configuration Register). When the INA3221 is in normal operating mode (that is, the MODE bits of the Configuration Register are set to '111'), the device continuously converts a shunt voltage reading followed by a bus voltage reading. This procedure converts one channel and then continues to the shunt voltage reading of the next enabled channel, followed by the channel bus voltage reading for that channel, and so on, until all enabled channels have been measured. The programmed Configuration Register mode setting applies to all channels. Any channels not enabled are bypassed in the measurement sequence, regardless of mode setting. The INA3221 has two operating modes (continuous and single-shot) that determine the internal ADC operation after these conversions complete. When the INA3221 is set to continuous mode, based on the MODE bit settings, the device continues to cycle through all enabled channels until a new configuration setting is programmed. ALERT MONITORING Because the INA3221 allows programmable thresholds that ensure the intended application operates within the desired operating conditions, multiple monitoring functions are available via four Alert pins: Critical Alert, Warning Alert, Power Valid Alert, and Timing Control Alert. These Alert pins are open-drain connections. Critical Alert The Critical Alert monitors functions based on individual conversions of each shunt voltage channel. The Critical Alert Limit feature compares the shunt voltage conversion for each channel to the corresponding value programmed into the corresponding limit register to determine if the measured value exceeds the intended limit. Exceeding the programmed limit indicates that the current through the shunt resistor is too high. The default Critical Alert Limit value for each channel is set to a Version 1.0 - Page 6 of 10

positive full-scale value to effectively disable this alert at power-up. The corresponding limit registers can be programmed at any time to begin monitoring for out-of-range conditions. The Critical Alert pin is asserted and pulled low if any channel measurements exceed the limit present in the corresponding channel Critical Alert Limit. When the Critical Alert pin is asserted, the Mask/Enable Register can be read to determine which channel caused the Critical Flag Bit to assert. The INA3221 also allows the Critical Alert pin to be controlled by the Summation Control function. The Summation Control function compares the sum of the single conversions of the desired channels based on the Summation Channel Control bits set in the Mask/Enable Register to determine if the combined sum has exceeded the programmed limit. In order for this summation limit to have a meaningful value, all included channels must use the same shunt resistor value. The individual conversion values cannot be added directly together in the Shunt Voltage Sum register to report the total current unless equal shunt resistor values are used for each channel. The Summation Channel Control bits either disable the Summation Control function or allow the Summation Control function to switch between including two or three channels in the Shunt Voltage Sum register. The Shunt Voltage Sum Limit register contains the programmed value used to compare the Shunt Voltage Sum register to determine if the total summed limit has been exceeded. If the Shunt Voltage Sum Limit value is exceeded, the Critical Alert pin is asserted low. Either the Summation Flag bit or the individual Critical Alert Limit bits in the Mask/Enable Register can determine the source of the alert when the Critical Alert pin asserts. Warning Alert The Warning Alert monitors the averaged value of each shunt voltage channel. The averaged value of each shunt voltage channel is based on the number of averages set with the Average Mode bits in the Configuration Register. The average value is updated in the shunt voltage output register each time there is a conversion on the corresponding channel. The averaged value is compared to the value programmed in the corresponding channel Warning Alert Limit register to determine if the averaged value has been exceeded, which indicates if the average current is too high. The default Warning Alert Limit value for each channel is set to a positive full-scale value to effectively disable this alert at power-up. The corresponding limit registers can be programmed at any time to begin monitoring for out-of-range conditions. The Warning Alert pin is asserted and pulled low if any channel measurements exceed the limit present in the corresponding channel Warning Alert Limit. When the Warning Alert pin is asserted, the Mask/Enable Register can be read to determine which channel Warning Flag Bit is asserted. Power Valid Alert The Power Valid Alert verifies if all power rails are above the required levels. This feature allows the INA3221 to ensure power sequencing is properly managed and that the reported measurements are valid based on system configuration. The Power Valid mode starts at power-up to detect when all channels exceed a 10-V threshold. This 10-V level is the default value programmed into the Version 1.0 - Page 7 of 10

Power Valid Upper Limit register. This value can be reprogrammed when the INA3221 is powered up to a valid supply voltage level of at least 2.7 V. When all three bus voltage measurements reach the programmed value loaded to the Power Valid Upper Limit register, the Power Valid Alert pin is pulled high. The Power Valid Alert powers up in a low state and is not pulled high until the Power Valid conditions are met, indicating all bus voltage rails are above the Power Valid Upper Limit value. Timing Control Alert The INA3221 has a Timing Control Alert function helps verify proper power-supply sequencing. On power-up, the default INA3221 setting is Continuous Shunt and Bus Voltage conversion mode. While in this mode at power-up, the INA3221 internally begins comparing the channel 1 bus voltage to determine when a 1.2-V level is reached. Operating Values Min Normal Max Unit VCC Supply Voltage 2.7 5.5 V Analog Inputs IN+, IN- Differential (VIN+) - (VIN-) Commonmode -26 26 V 0 26 V Analog Inputs Current IN+, IN- 0 2 A Pin Locations Physical dimensions of board: 38 mm x 28mm x 12mm(max). I/O Key: I - Digital Input O - Digital Output A - Analog Version 1.0 - Page 8 of 10

Pin Functions JP1 - Computer Side Pins Input / Output Control Lines for NAME PIN I/O DESCRIPTION VCC JP1 / 1 A Power for the. Use 3.3V with Raspberry Pi and 5.0V with Arduino GND JP1 / 2 A GND SCL JP1 / 3 I Serial bus clock line; open-drain input. SDA JP1 / 4 I/O Serial bus data line; open-drain input/output. PV JP1 / 5 O Power Valid Output; open-drain output. TC JP1 / 6 O Timing Control Alert Output; open-drain output. WRN JP1 / 7 O Warning Alert Output; open-drain output. CRT JP1 / 8 O Critical Alert Output; open-drain output. JP2 - Measurement Input Pins Used for connecting loads and power supply that are to be measured. NAME PIN I/O DESCRIPTION INA1+ JP2 / 1 A Connect to load side of the channel 1 shunt resistor. Bus voltage is the measurement from this pin to ground. Shunt resistor of 0.1 Ohm on board. May be replaced by cutting trace. INA1- JP2 / 2 A Connect to supply side of the channel 1 shunt resistor. INA2+ JP2 / 3 A Connect to load side of the channel 2 shunt resistor. Bus voltage is the measurement from this pin to ground. Shunt resistor of 0.1 Ohm on board. May be replaced by cutting trace. INA2- JP2 / 4 A Connect to supply side of the channel 2 shunt resistor. INA3+ JP2 / 5 A Connect to load side of the channel 3 shunt resistor. Bus voltage is the measurement from this pin to ground. Shunt resistor of 0.1 Ohm on board. May be replaced by cutting trace. INA3- JP2 / 6 A Connect to supply side of the channel 3 shunt resistor. Version 1.0 - Page 9 of 10

Software for Arduino and Raspberry Pi SwitchDoc Labs developed this pure Python INA3221 Raspberry Pi library as part of the SunAirPlus product development and for this It is similar to using three INA219 High Side Current Monitors, but not quite. There are significant differences in the chip itself and especially in the software needed. In SunAirPlus, we want to measure the current and voltage for all three major subsystems: The LiPo Battery, Solar Panels and the Computer. The software is located on the SwitchDoc Labs github under https://github.com/switchdoclabs/sdl_pi_ina3221. Arduino drivers are also located on github under https://github.com/switchdoclabs/sdl_arduino_ina3221. The first test on the Raspberry Pi should always be i2cdetect -y 1 which should show you the INA3221 at the default address of 0x40. A similar test can be run on the Arduino. Running the test results from the board are below: Test SDL_Pi_INA3221 Version 1.0 - SwitchDoc Labs Sample uses 0x40 and SunAirPlus board INA3221 Will work with the INA3221 SwitchDoc Labs Breakout ------------------------------ LIPO_Battery Bus Voltage: 4.15 V LIPO_Battery Shunt Voltage: -9.12 mv LIPO_Battery Load Voltage: 4.14 V LIPO_Battery Current 1: 91.20 ma Solar Cell Bus Voltage 2: 5.19 V Solar Cell Shunt Voltage 2: -73.52 mv Solar Cell Load Voltage 2: 5.12 V Solar Cell Current 2: 735.20 ma Output Bus Voltage 3: 4.88 V Output Shunt Voltage 3: 48.68 mv Output Load Voltage 3: 4.93 V Output Current 3: 486.80 ma Version 1.0 - Page 10 of 10