ماژول اندازه گیری ولتاژ جریان INA219 DC با خروجی I2C

۷۷,۰۰۰ تومان

موجود در انبار

26 نفر در حال مشاهده این محصول هستند!
توضیحات

CJMCU-219 INA219 I2C Bi-directional Current Power Monitor Sensor Module
CJMCU-219 is a module with the I2C interface of zero drift and bi-directional current/power monitoring and control integrated circuit (IC).
INA219 has the industry’s highest precision and the small size, not only can monitor the pressure drop on the shunt resistor, sensing shunt power supply voltage, at the same time also can calculate the power.
This breakout board will solve all your power-monitoring problems.
Instead of struggling with two multimeters, you can just use the handy INA219B chip on this breakout to measure both the high side voltage and DC current draw over I2C with 1% precision.
The device adopts the SOT23 packaging, but for the server, notebook computer, power supply, battery management, and digital electric vehicle and telecommunication equipment measuring flu provide a small low-cost solution.
A precision amplifier measures the voltage across the 0.1, 1% sense resistor.
Since the amplifier’s 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 to 32 Amps with a resolution of 8mA)
INA219-40 c to + 85 c temperature range and can realize the maximum error of 1% accuracy, a maximum offset of 100 μV.
The advantage of the high precision of the product in combination with 12 resolution, can help clients as much as possible, reduce the pressure drop on the shunt resistor, which can minimize the power loss and power consumption, and saving board space.
The device epic of 26 bus voltage range of 0 V to + V.
Features/Specs
• Calibration programmable registers can directly read its unit of measure is the ampere current, and power in watts per reading.
• For as many as 128 samplings averaging, in order to realize filter in the noise environment.
• The I2C interface has a timeout, not only can avoid the bus lock, but also can provide high-speed mode, meet the communication requirements of up to 3.4 MHz.
• All features are supported software programmable INA219.
• Using a single power supply, the working voltage between + 3.0 to + 5.5 V.
• 0.1 ohm 1% 2W current sense resistor
• Up to +26V target voltage
• Up to ±3.2A current measurement, with ±0.8mA resolution
• 0.9″ x 0.8″ PCB
• PCB (no header or terminal block): 1.9g
• Senses Bus Voltages from 0 to 26 V
• 2C- or SMBus-compatible interface. The
• Reports Current, Voltage, and Power
• 16 Programmable Addresses
• Filtering Options
• Calibration Registers
• Length:-26 mm
• Width:- 22mm
• Height:-6mm
• Weight:- 3gm
• SOT23-8 and SOIC-8 Packages

Example
To read the INA219 we will use the library developed by Adafruit available at following
https://github.com/adafruit/Adafruit_INA219.
The library provides code examples, which it is advisable to review.
The following examples, for example, are modifications based on those available in the library.

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

Adafruit_INA219 ina219;

void setup(void) 
{
  Serial.begin(115200);
  uint32_t currentFrequency;
  
  // Iniciar el INA219
  ina219.begin();  //por defecto, inicia a 32V y 2A

  // Opcionalmente, cambiar la sensibilidad del sensor
  //ina219.setCalibration_32V_1A();
  //ina219.setCalibration_16V_400mA();

  Serial.println("INA219 iniciado...");
}

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

  // Obtener mediciones
  shuntvoltage = ina219.getShuntVoltage_mV();
  busvoltage = ina219.getBusVoltage_V();
  current_mA = ina219.getCurrent_mA();
  power_mW = ina219.getPower_mW();
  loadvoltage = busvoltage + (shuntvoltage / 1000);
  
  // Mostrar mediciones
  Serial.print("Bus Voltaje:   "); Serial.print(busvoltage); Serial.println(" V");
  Serial.print("Shunt Voltaje: "); Serial.print(shuntvoltage); Serial.println(" mV");
  Serial.print("Load Voltaje:  "); Serial.print(loadvoltage); Serial.println(" V");
  Serial.print("Corriente:       "); Serial.print(current_mA); Serial.println(" mA");
  Serial.print("Potencia:         "); Serial.print(power_mW); Serial.println(" mW");
  Serial.println("");

  delay(2000);
}

Step 1: Make the following connections
We recommend you solder the terminal block and the headers to make it easier to make the following connections.

Step 2: Upload the code
The following sample code obtains the sensor data through the I2C protocol using the “Adafruit INA219” library and sends the measurements obtained through the serial port.
a) Install the “Adafruit INA219” library by clicking on the Tools tab, select Manage Libraries and access the Library Manager, where you can search for the library by name, if it is not installed the option to install will appear on the right side.