The Adafruit INA228 is a high-precision, low-drift current sensor capable of measuring current, voltage, and power. It is designed for applications requiring accurate power monitoring and energy metering. This versatile sensor is ideal for use in battery-operated devices, power management systems, and energy monitoring applications.
Parameter | Value |
---|---|
Supply Voltage | 2.7V to 5.5V |
Current Range | ±10A |
Voltage Range | 0V to 36V |
Power Consumption | 1.1mA (typical) |
Communication | I2C |
Resolution | 20-bit |
Operating Temperature | -40°C to +125°C |
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply (2.7V to 5.5V) |
2 | GND | Ground |
3 | SCL | I2C clock line |
4 | SDA | I2C data line |
5 | ALERT | Alert output (open-drain) |
6 | ADDR | I2C address selection |
7 | IN+ | Positive input for current measurement |
8 | IN- | Negative input for current measurement |
Below is an example code to interface the Adafruit INA228 with an Arduino UNO using the I2C protocol.
#include <Wire.h>
#include <Adafruit_INA228.h>
// Create an instance of the INA228 class
Adafruit_INA228 ina228;
void setup() {
Serial.begin(9600);
// Initialize I2C communication
Wire.begin();
// Initialize the INA228 sensor
if (!ina228.begin()) {
Serial.println("Failed to find INA228 chip");
while (1) { delay(10); }
}
Serial.println("INA228 Found!");
}
void loop() {
// Read current, voltage, and power
float current = ina228.readCurrent();
float voltage = ina228.readBusVoltage();
float power = ina228.readPower();
// Print the values to the Serial Monitor
Serial.print("Current: "); Serial.print(current); Serial.println(" A");
Serial.print("Voltage: "); Serial.print(voltage); Serial.println(" V");
Serial.print("Power: "); Serial.print(power); Serial.println(" W");
delay(1000); // Wait for 1 second before the next reading
}
No Communication with the Sensor:
Incorrect Readings:
Overheating:
By following this documentation, users can effectively integrate the Adafruit INA228 into their projects, ensuring accurate and reliable current, voltage, and power measurements.