Voltmètre / Ampèremètre INA219/GY-219 []

Outils pour utilisateurs

Outils du site


Voltmètre / Ampèremètre INA219/GY-219

Ceci est une ancienne révision du document !


Voltmètre / Ampèremètre INA219


SPECS & FEATURES

  • Operational Voltage (3 – 5.5 Volts): The INA219 operates between 3 to 5.5 volts, increasing its compatibility with various systems running at either 3.3V or 5V logic level. This feature enhances the module’s flexibility in diverse circuit designs.
  • Bus Voltage Range (0 – 26 Volts): The INA219 can monitor power supplies within 0 to 26 volts range. This broad range makes the module applicable to low-voltage logic circuits and higher-voltage power supplies.
  • Current Sensing Range (±3.2A with ±0.8mA resolution): The INA219 can monitor a current range of ±3.2A with a precise resolution of ±0.8mA. This capacity makes it suitable for various applications including power management, battery chargers, and DC motor control, enabling accurate tracking and control of power consumption.
  • 0.1 ohm 1% 2W Current Sense Resistor: The module uses a 0.1-ohm shunt resistor with a 1% tolerance and 2W power rating for current sensing. The low resistance value minimizes power loss, while the 1% tolerance ensures measurement accuracy. The 2W power rating indicates its robustness, supporting current measurements up to ±3.2A.

I2C

I2C Address

The INA219 uses the I2C protocol to communicate with microcontrollers, and each device on the I2C bus must have a unique address. The default I2C address for the INA219 is 0x40 (or 1000000 in binary).

The address can be changed if you want to use multiple INA219 sensors on the same I2C bus. The INA219 allows up to 16 different I2C addresses, ranging from 0x40 to 0x4F. This is achieved by configuring the states of the two address pins A0 and A1. On the INA219 module, these two pins, A0 and A1, are often found with solder pads or jumpers. By default, they are connected to the Ground (GND) which corresponds to the default address 0x40.

A1 A0 Slave Address (Hex)
GND GND 0x40
GND 0x41
GND SDA 0x42
GND SCL 0x43
GND 0x44
0x45
SDA 0x46
SCL 0x47
SDA GND 0x48
SDA 0x49
SDA SDA 0x4A
SDA SCL 0x4B
SCL GND 0x4C
SCL 0x4D
SCL SDA 0x4E
SCL SCL 0x4F

You can change the I2C address by changing the connections of these pins to either GND, SDA, SCL, or leaving them floating (not connected). For instance, if you connect the A0 pin to SDA and A1 to GND, the address will be 0x48.

So, if you want to have multiple INA219 modules in the same system, you just need to set a unique address for each one by configuring the A0 and A1 pins accordingly. Remember, any time you change the I2C address, you must update the address in your microcontroller’s software so it knows where to find each INA219 on the I2C bus.

WIRING

PINOUT

  • VCC this pin is used to supply the operating voltage to the INA219 module. It can handle an input voltage of 3.3V to 5.5V.
  • GND this is the Ground pin.
  • SCL this pin is used for the clock line of the I2C interface.
  • SDA this pin is used for the data line of the I2C interface.
  • Vin- this pin connects to the negative terminal of the voltage supply that you want to measure. This pin is also where the shunt resistor is placed and is used for current sensing.
  • Vin+ this pin connects to the positive terminal of the voltage supply that you want to measure.

Librairie(s)

DATASHEET

ARDUINO CODE

 
documentation/microcontroleurs/arduino/modules/ina219_va_meter/index.1746100595.txt.gz · Dernière modification : de f1sls