INA219 Current Sensor Module Features
The INA219 module is used to measure both current and voltage at the same time. This module uses I2C communication to transfer the voltage and current data.
- Measurement accuracy: 1%
- Maximum measured voltage: 26V
- Maximum measured current: 3.2A.
Pay attention to inductive loads switching. Its instantaneous voltages may damage the circuit.
Download the Datasheet of this sensor here.
INA219 Current Sensor Module Pinout
This Module has 6 pins:
- VCC: Module power supply
- GND: Ground
- SDA: I2C Data
- SCL: I2C Clock
- Vin-: Load terminal pin
- Vin+: Source terminal pin
You can see the pinout of this module in the image below.
Apart from the components above, you also need an LED and a 220ohm resistor for this tutorial.
Interfacing INA219 Current Sensor Module with Arduino
Step 1: Circuit
The following circuit shows how you should connect Arduino to INA219 sensor. Connect wires accordingly.
The orange wire (3.3 volts) is called the Bus voltage and the blue wire is called the Load voltage.
Shunt voltage is the potential difference between the Load voltage and the Bus voltage.
Step 2: Library
Go to Library manager, search for INA219 and install the Adafruit INA219 library.
Step 3: Code
Upload the following code to Arduino.
/* DC-Current-Voltage-Sensor-Module made on 06 Feb 2021
This code is for measuring both voltage and current. We want to find the source voltage and the voltage and current of the load. The source voltage is 3.3V and the load voltage is actually the LED voltage. The current passing through LED is also calculated using the shunt voltage. The shunt resistance creates a very small potential difference called the shunt voltage.
These parameters will be displayed on the Serial Monitor: Bus, Shunt and Load voltage, current and power: