INA219 I2C interface Bi-directional current/power monitoring sensor

R176.36 inc VAT

2 in stock

Purchase this product now and earn 155 Bot Points!
SKU: INA219-120 Categories: ,

Description

The INA219B breakout board will solve all your power-monitoring problems. Instead of struggling with two multimeters, you can use this breakout to measure both the high side voltage and DC current draw over I2C with 1% precision.

Most current-measuring devices such as our current panel meter are only good for low side measuring. That means that unless you want to get a battery involved, you have to stick the measurement resistor between the target ground and true ground.

Since the voltage drop across the resistor is proportional to the current draw, this means that the ground reference will change with varying current.  Having a shifting ground reference can cause problems for many circuits.

The INA219B chip is much smarter – it can handle high side current measuring, up to +26VDC, even though it is powered with 3 or 5V. It will also report back that high side voltage, which is great for tracking battery life or solar panels.

A precision amplifier measures the voltage across the 0.1 ohm, 1% sense resistor. Since the amplifier maximum input difference is ±320mV this means it can measure up to ±3.2 Amps. With the internal 12 bit ADC, the resolution at ±3.2A range is 0.8mA. With the internal gain set at the minimum of div8, the max current is ±400mA and the resolution is 0.1mA. Advanced hackers can remove the 0.1 ohm current sense resistor and replace it with their own to change the range (say a 0.01 ohm to measure up 32 Amps with a resolution of 8mA)

 

Example Sketch & Diagram

Library: Adafruit_INA219-master

 

Other Products.

Code

#include <Wire.h>
#include <Adafruit_INA219.h>

Adafruit_INA219 ina219;

#if defined(ARDUINO_ARCH_SAMD)
 #define Serial SerialUSB
#endif

void setup(void) 
{
 #ifndef ESP8266
 while (!Serial); 
 #endif
 uint32_t currentFrequency;
 
 Serial.begin(9600);

 
 ina219.begin();

 Serial.println("Measuring voltage and current with INA219 ...");
}

void loop(void) 
{
 float shuntvoltage = 0;
 float busvoltage = 0;
 float current_mA = 0;
 float loadvoltage = 0;

 shuntvoltage = ina219.getShuntVoltage_mV();
 busvoltage = ina219.getBusVoltage_V();
 current_mA = ina219.getCurrent_mA();
 loadvoltage = busvoltage + (shuntvoltage / 1000);
 
 Serial.print("Bus Voltage: "); Serial.print(busvoltage); Serial.println(" V");
 Serial.print("Shunt Voltage: "); Serial.print(shuntvoltage); Serial.println(" mV");
 Serial.print("Load Voltage: "); Serial.print(loadvoltage); Serial.println(" V");
 Serial.print("Current: "); Serial.print(current_mA); Serial.println(" mA");
 Serial.println("");

 delay(2000);
}

Brand

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.