Measure voltage, current and power with the INA219 sensor

  • The INA219 sensor allows you to measure voltage, current and power with high precision.
  • It has an I2C interface and supports voltages up to 26V and currents ±3.2A.
  • Includes a shunt resistor and a 12-bit ADC for reliable results.
  • It is easy to integrate into Arduino and other microcontroller projects.

ina219

If you are looking for an accurate and efficient solution to measure tension, corrients y electric power In your electronic projects, the INA219 sensor is an ideal option that you should consider. This small module, manufactured by Texas Instruments, has become an essential tool for electronics and programming lovers, especially when developing projects with Arduino.

Today we are going to explore in depth how the INA219 sensor works, what its main features are and how you can integrate it into your projects to obtain reliable and detailed data about the energy of your devices. Get ready to discover everything you need to know about this fantastic module!

What is the INA219 sensor?

[amazon box=”B07D7VQ8JM” image_size=”large” description_items=”0″ template=”widget”]

The INA219 sensor is a module designed to simultaneously measure the tension, corrients y electric power in electronic circuits. This device stands out for its high precision and for using a communication protocol I2C, which facilitates its integration with microcontrollers such as Arduino, ESP32 or Raspberry Pi.

Some of its main capabilities include measuring voltages up to 26V and currents up to 3,2A, with an accuracy of up to 0,5%. It also incorporates a shunt resistor of 0,1 ohms, which is key to making these measurements. Thanks to its variable gain amplifier and a 12-bit ADC converter, it offers reliable and detailed results even in demanding contexts.

Technical characteristics of the INA219

The INA219 has specifications that make it stand out from other sensors in its category. Some of the most important ones are:

  • Measuring range: It allows measuring voltages up to 26V and currents in a range of ±3.2A, with adjustments for more precise current scales.
  • Resolution: It offers an accuracy of ±0.8mA for higher currents and ±0.1mA when used at lower ranges, depending on the PGA configuration.
  • I2C interface: Provides simple and fast communication with the microcontroller, supporting various configurable addresses.
  • Low energy consumption: It hardly consumes 1mA in active state and 0.1 at rest, making it efficient for long-running projects.

Connection and configuration

One of the advantages of the INA219 is its simple installation. To connect it, simply power the module with 3.3V o 5V from your microcontroller, connecting it to the pins GND, SDA y SCL from the Arduino or equivalent device. The screw terminal on the module makes it easy to connect the load to be measured, but it is important to respect the indicated polarity.

Through the bookstore Adafruit_INA219, available on GitHub, you can configure the sensor to start reading data in just a few minutes. This library includes code examples that are very useful for both beginners and advanced users.

How the INA219 sensor works

The INA219 combines a 12-bit analog-to-digital converter (ADC) with a precision amplifier and a shunt resistor. This design allows both the voltage drop across the resistor and the load supply voltage to be measured. With this data, the sensor can accurately calculate the power consumed using the basic formula for electrical power: P = V x I.

The key to its accuracy lies in its ability to adjust the measurement range, which is done by setting the amplifier gain between 1 and 8. This allows it to adapt to different scenarios, from measuring low currents in small devices to higher currents in industrial applications.

Applications and uses of INA219

The INA219 sensor is extremely versatile and has applications in a wide range of projects and industries. Some of the most common uses include:

  • Battery monitoring: Its ability to measure both positive and negative currents makes it ideal for charging and discharging systems.
  • Motor control systems: Provides accurate information about the energy consumption in direct current motors.
  • Renewable energy projects: It is useful for measuring the performance of solar panels and other energy generating systems.
  • Fault Detectors: Allows you to identify unusual current peaks in electronic circuits.

Furthermore, due to its compact design and ability to operate in a wide temperature range (from -40°C to +85°C), the INA219 is also suitable for integration into industrial environments or outdoor projects.

The INA219 sensor combines precision, versatility and ease of use, making it a perfect tool for any project that requires reliable measurements voltage, current and power. Whether you are a beginner in electronics or a professional developing advanced systems, this module can be the ally you need to take your projects to the next level.