Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Voltage & current sensor INA219 breakout: Examples, Pinouts, and Specs

Image of Voltage & current sensor INA219 breakout
Cirkit Designer LogoDesign with Voltage & current sensor INA219 breakout in Cirkit Designer

Introduction

The Voltage & Current Sensor INA219 Breakout by Soldered is a high-side current sensor designed to measure both voltage and current in a circuit with exceptional precision. It utilizes the I2C communication protocol, making it easy to integrate into microcontroller-based projects. This breakout board is ideal for applications such as battery management, power monitoring, and energy-efficient system design.

Explore Projects Built with Voltage & current sensor INA219 breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Adjustable DC Power Supply with LM317 and 7-Segment Voltmeter
Image of DC variable Power  Supply: A project utilizing Voltage & current sensor INA219 breakout in a practical application
This circuit converts 220V AC to a regulated DC voltage using a power transformer, bridge rectifier, and LM317 voltage regulator. The output voltage can be adjusted using a potentiometer, and the voltage is displayed on a 7-segment panel voltmeter.
Cirkit Designer LogoOpen Project in Cirkit Designer
LM317 Voltage Regulator Circuit with Bridge Rectifier for Stable DC Output
Image of voltage regualator using LM317 IC: A project utilizing Voltage & current sensor INA219 breakout in a practical application
This circuit converts 220V AC to a regulated DC voltage using a bridge rectifier, smoothing capacitors, and an LM317 voltage regulator. The output voltage can be adjusted using a potentiometer connected to the LM317's adjustment pin.
Cirkit Designer LogoOpen Project in Cirkit Designer
AC to DC Power Supply with 7-Segment Voltage Display
Image of BEE PBL: A project utilizing Voltage & current sensor INA219 breakout in a practical application
This circuit is a regulated power supply that converts 220V AC to a lower, stable DC voltage. It includes a step-down transformer, bridge rectifier, voltage regulator, and filtering capacitors. A 7-segment display indicates the output voltage, which can be adjusted using a potentiometer.
Cirkit Designer LogoOpen Project in Cirkit Designer
LM317 Voltage Regulator Circuit for Adjustable Power Supply with Transformer and Diodes
Image of 12V BULB LIGHT DIMMER CIRCUIT: A project utilizing Voltage & current sensor INA219 breakout in a practical application
This circuit is a regulated power supply that converts AC voltage to a stable DC voltage. It uses a transformer to step down the AC voltage, diodes for rectification, an electrolytic capacitor for smoothing, and an LM317 voltage regulator to provide a stable output voltage, which is adjustable via a potentiometer. The output powers a bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Voltage & current sensor INA219 breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of DC variable Power  Supply: A project utilizing Voltage & current sensor INA219 breakout in a practical application
Adjustable DC Power Supply with LM317 and 7-Segment Voltmeter
This circuit converts 220V AC to a regulated DC voltage using a power transformer, bridge rectifier, and LM317 voltage regulator. The output voltage can be adjusted using a potentiometer, and the voltage is displayed on a 7-segment panel voltmeter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of voltage regualator using LM317 IC: A project utilizing Voltage & current sensor INA219 breakout in a practical application
LM317 Voltage Regulator Circuit with Bridge Rectifier for Stable DC Output
This circuit converts 220V AC to a regulated DC voltage using a bridge rectifier, smoothing capacitors, and an LM317 voltage regulator. The output voltage can be adjusted using a potentiometer connected to the LM317's adjustment pin.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of BEE PBL: A project utilizing Voltage & current sensor INA219 breakout in a practical application
AC to DC Power Supply with 7-Segment Voltage Display
This circuit is a regulated power supply that converts 220V AC to a lower, stable DC voltage. It includes a step-down transformer, bridge rectifier, voltage regulator, and filtering capacitors. A 7-segment display indicates the output voltage, which can be adjusted using a potentiometer.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 12V BULB LIGHT DIMMER CIRCUIT: A project utilizing Voltage & current sensor INA219 breakout in a practical application
LM317 Voltage Regulator Circuit for Adjustable Power Supply with Transformer and Diodes
This circuit is a regulated power supply that converts AC voltage to a stable DC voltage. It uses a transformer to step down the AC voltage, diodes for rectification, an electrolytic capacitor for smoothing, and an LM317 voltage regulator to provide a stable output voltage, which is adjustable via a potentiometer. The output powers a bulb.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Battery charge and discharge monitoring
  • Power consumption analysis in embedded systems
  • Solar power system monitoring
  • Current and voltage measurement in robotics and IoT devices

Technical Specifications

The following table outlines the key technical details of the INA219 breakout:

Parameter Value
Operating Voltage 3.0V to 5.5V
Current Measurement Range ±3.2A (default shunt resistor)
Voltage Measurement Range 0V to 26V
Communication Protocol I2C
Default I2C Address 0x40
Resolution 12-bit ADC
Shunt Resistor Value 0.1Ω (pre-installed)
Accuracy ±1% (typical)
Operating Temperature Range -40°C to +85°C

Pin Configuration

The INA219 breakout board has the following pin layout:

Pin Name Description
VIN+ Positive input for current measurement (connect to load)
VIN- Negative input for current measurement (connect to power)
GND Ground connection
VCC Power supply input (3.0V to 5.5V)
SDA I2C data line
SCL I2C clock line

Usage Instructions

Connecting the INA219 Breakout

  1. Power the Board: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to ground.
  2. Connect the Load:
    • Attach the VIN+ pin to the positive terminal of the power source.
    • Attach the VIN- pin to the positive terminal of the load.
  3. I2C Communication: Connect the SDA and SCL pins to the corresponding I2C pins on your microcontroller (e.g., Arduino UNO: A4 for SDA and A5 for SCL).

Example Arduino Code

Below is an example of how to use the INA219 breakout with an Arduino UNO to measure voltage and current:

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

// Create an instance of the INA219 class
Adafruit_INA219 ina219;

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  while (!Serial) {
    delay(10); // Wait for the serial monitor to open
  }

  // Initialize the INA219 sensor
  if (!ina219.begin()) {
    Serial.println("Failed to find INA219 chip");
    while (1) {
      delay(10); // Halt execution if the sensor is not detected
    }
  }
  Serial.println("INA219 sensor initialized");
}

void loop() {
  float shuntVoltage = ina219.getShuntVoltage_mV(); // Get shunt voltage in mV
  float busVoltage = ina219.getBusVoltage_V();     // Get bus voltage in V
  float current_mA = ina219.getCurrent_mA();       // Get current in mA
  float power_mW = ina219.getPower_mW();           // Get power in mW

  // Print the measurements to the serial monitor
  Serial.print("Bus Voltage: ");
  Serial.print(busVoltage);
  Serial.println(" V");

  Serial.print("Shunt Voltage: ");
  Serial.print(shuntVoltage);
  Serial.println(" mV");

  Serial.print("Current: ");
  Serial.print(current_mA);
  Serial.println(" mA");

  Serial.print("Power: ");
  Serial.print(power_mW);
  Serial.println(" mW");

  Serial.println("-----------------------------");
  delay(1000); // Wait 1 second before taking the next reading
}

Important Considerations

  • Shunt Resistor: The pre-installed 0.1Ω shunt resistor is suitable for most applications. For higher currents, replace it with a lower-value resistor.
  • I2C Address: The default I2C address is 0x40. If multiple INA219 sensors are used, modify the address by adjusting the onboard address pins.
  • Voltage Limits: Ensure the measured voltage does not exceed 26V to avoid damaging the sensor.

Troubleshooting and FAQs

Common Issues

  1. No Communication with the Sensor

    • Cause: Incorrect I2C wiring or address mismatch.
    • Solution: Verify the SDA and SCL connections and ensure the correct I2C address is used in the code.
  2. Incorrect Current or Voltage Readings

    • Cause: Improper shunt resistor value or loose connections.
    • Solution: Check the shunt resistor and ensure all connections are secure.
  3. Sensor Not Detected

    • Cause: Power supply issues or faulty sensor.
    • Solution: Confirm the VCC and GND connections and test with another INA219 breakout.

FAQs

Q: Can the INA219 measure negative currents?
A: Yes, the INA219 can measure bidirectional currents. Ensure the configuration matches your application.

Q: How do I change the I2C address?
A: Adjust the address pins (A0 and A1) on the breakout board to set a new I2C address. Refer to the INA219 datasheet for address configuration details.

Q: Can I use the INA219 with a 3.3V microcontroller?
A: Yes, the INA219 is compatible with both 3.3V and 5V logic levels.

By following this documentation, you can effectively integrate the INA219 breakout into your projects for precise voltage and current measurements.