หากต้องการใบเสนอราคา / ใบแจ้งหนี้ ติดต่อได้ทาง LINE Official: @mikroelec |
![]() |
รหัสสินค้า | SKU-01704 |
หมวดหมู่ | โมดูลวัดแรงดันและกระแสไฟฟ้า |
ราคา | 85.00 บาท |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 7 ก.ย. 2564 |
อัพเดทล่าสุด | 27 ธ.ค. 2567 |
จำนวน | ชิ้น |
Documentation |
Datasheet | INA219.pdf |
Application Note | - |
CJMCU-219 is a module with I2C interface ZERO Drift and Bi-Directional current/power monitoring and control circuit (IC), further expand TI energy-saving electronic products, INA219 has the industry's highest precision and small size, not only monitor the pressure drop on the shunt Resistor, sensing shunt power supply voltage, at the same time can calculate the power. The device uses SOT23 packaging, but for server, notebook computers, power supply, battery management and digital electrical and telecommunications equipment to measure flu provide a small, low cost solution. .
INA219-40 C to + 85 C temperature range and realize the maximum error of 1% accuracy, the maximum Offset 100 uVThe advantages of high-precision product mix12 resolution help customers as much as possible to reduce the pressure on the shunt Resistor, which Can reduce Power and Power consumption and save energy board space EPIC equipment 26 bus voltage 0 V to + 26 V
INA219 other key features include:
Direct Registers Program CalibrationRead ITS, the unit of measure is AMPERE. current, and in watts per reading. for many 128 Sampling average in order to realize filter noise environment. The I2C interface has timeout, not only avoid bus lock, but also high-speed mode to meet the communication needs of up to 3.4 MHz. All software features support program. INA219. Use a single power supply, voltage between + 3.0 to + 5.5 V.
Code
To display the INA219 measurements, we will use the Adafruit library Adafruit_INA219.h
#include <Wire.h>
#include <Adafruit_INA219.h>
Adafruit_INA219 ina219;
float voltage_V = 0,shuntVoltage_mV,busVoltage_V;
float current_mA = 0;
float power_mW = 0;
float energy_Wh=0;
long time_s=0;
void setup(void)
{
Serial.begin(9600);
uint32_t currentFrequency;
ina219.begin();
Serial.println("Measuring voltage and current with INA219");
}
void loop(void)
{
getData();
delay(2000);
}
void getData(){
time_s=millis()/(1000); // convert time to sec
busVoltage_V = ina219.getBusVoltage_V();
shuntVoltage_mV = ina219.getShuntVoltage_mV();
voltage_V = busVoltage_V + (shuntVoltage_mV / 1000);
current_mA = ina219.getCurrent_mA();
//power_mW = ina219.getPower_mW();
power_mW=current_mA*voltage_V;
energy_Wh=(power_mW*time_s)/3600; //energy in watt hour
Serial.print("Bus Voltage: "); Serial.print(busVoltage_V); Serial.println(" V");
Serial.print("Shunt Voltage: "); Serial.print(shuntVoltage_mV); Serial.println(" mV");
Serial.print("Load Voltage: "); Serial.print(voltage_V); Serial.println(" V");
Serial.print("Current: "); Serial.print(current_mA); Serial.println(" mA");
Serial.print("Power: "); Serial.print(power_mW); Serial.println(" mW");
Serial.print("Energy: "); Serial.print(energy_Wh); Serial.println(" mWh");
Serial.println("----------------------------------");
}
หน้าที่เข้าชม | 554,665 ครั้ง |
ผู้ชมทั้งหมด | 312,308 ครั้ง |
ร้านค้าอัพเดท | 7 ก.ย. 2568 |