1. Introduction
The TENSTAR INA231 Module is a versatile current shunt and power monitor featuring a 1.8V I2C-compatible interface with 16 programmable addresses. This device is designed to accurately monitor shunt voltage drop and bus supply voltage, offering enhanced protection by asserting an ALERT pin when measured values exceed user-defined limits.
With programmable calibration values, conversion times, and averaging options, along with an internal multiplier, the INA231 provides direct readings of current in Amperes and power in Watts, thereby reducing the processing load on the host microcontroller. It measures current on a bus voltage ranging from 0V to 28V and operates from a single supply voltage between 2.7V and 5.5V, consuming a typical supply current of 330μA. The INA231 chip is rated for an operating temperature range of -40°C to +125°C. This module utilizes the INA231A version, which starts up performing continuous conversions of shunt and bus voltage.
Figure 1: TENSTAR INA231 Module with included pin headers
2. Features
- Bus Voltage Sensing Range: 0V to 28V
- Sensing Capability: High-side or low-side current sensing
- Measurement Outputs: Current, voltage, and power reporting
- High Accuracy:
- 0.5% gain error (maximum)
- 50μV offset (maximum)
- Configurable Options: Averaging options, programmable alert thresholds
- Interface: 1.8V I2C compatible
- Operating Voltage Range: 2.7V to 5.5V
- Startup Mode: INA231A (Active conversion)
- Module Dimensions: 18mm x 19.4mm
3. Specifications
| Parameter | Value |
|---|---|
| Quantity | 2 modules per package |
| Package Type | SMD (Surface Mount Device) |
| Dissipation Power | 1W |
| Supply Voltage (VDD) | 2.7V - 5.5V |
| Bus Voltage Sensing Range | 0V - 28V |
| Typical Supply Current | 330μA |
| Operating Temperature (Chip) | -40°C to +125°C |
| Interface | I2C (1.8V compatible) |
| Module Dimensions | 18mm x 19.4mm |
4. Setup and Connections
The INA231 module requires careful wiring to ensure proper operation and accurate measurements. Refer to the pinout diagram and descriptions below for guidance.
4.1 Pinout Diagram
Figure 2: INA231 Module detailed pinout and dimensions
4.2 Pin Descriptions
| Pin Name | Description |
|---|---|
| VDD | Module Power Supply (2.7V to 5.5V) |
| GND | Ground Connection |
| SCL | I2C Serial Clock Line |
| SDA | I2C Serial Data Line |
| A0, A1 | I2C Address Select Pins (pull high/low to set address) |
| ALE (ALERT) | Alert Output Pin (active low, indicates threshold violation) |
| Bus | Bus Voltage Input (for voltage measurement) |
| IN+ | Positive input for shunt resistor connection |
| IN- | Negative input for shunt resistor connection |
4.3 Connection Steps
- Power Supply: Connect the VDD pin to your microcontroller's 2.7V-5.5V power supply and GND to the common ground.
- I2C Communication: Connect the SCL pin to your microcontroller's I2C clock line and the SDA pin to your microcontroller's I2C data line.
- I2C Address Selection: Set the I2C address by pulling the A0 and A1 pins high (to VDD) or low (to GND). This allows for up to 16 unique addresses, enabling multiple INA231 modules on the same I2C bus.
- Current Sensing: Connect a shunt resistor in series with the load you wish to monitor. Connect the IN+ pin to the side of the shunt resistor closer to the power source and the IN- pin to the side closer to the load.
- Bus Voltage Measurement: Connect the 'Bus' pin to the voltage rail you want to measure. This is typically the same voltage as the IN+ pin.
- Alert Output (Optional): If you plan to use the alert functionality, connect the ALE pin to an interrupt-capable pin on your microcontroller.
Figure 3: Top view of INA231 module
Figure 4: Bottom view of INA231 module with IN+ and IN- pins
5. Operation
Once connected, the INA231 module communicates via the I2C protocol. You will need to use an I2C library compatible with your chosen microcontroller (e.g., Wire library for Arduino, or specific I2C drivers for ESP32).
- Initialization: Initialize the I2C communication on your microcontroller.
- Device Address: Use the correct I2C address for the INA231 module, which is determined by the A0 and A1 pin configurations. The base address is 0x40, and it can be shifted based on A0/A1 states.
- Configuration: Configure the INA231's internal registers for desired settings such as conversion times, averaging, and alert thresholds. This involves writing specific values to the configuration register.
- Calibration: Calibrate the module by writing a calibration value to the appropriate register. This value depends on the shunt resistor used and the desired current range.
- Reading Data: Read the shunt voltage, bus voltage, current, and power registers via I2C. The module will provide raw digital values that need to be converted to physical units (Amperes, Volts, Watts) using the calibration and scaling factors.
- Alert Monitoring (Optional): Monitor the ALE pin or read the alert flag in the status register to detect overcurrent, undervoltage, or other programmed alert conditions.
6. User Tips
- ESP32 Compatibility: This module is ideal for projects utilizing ESP32 microcontrollers and has been reported to work great with them.
- I2C Address: Remember to correctly set the I2C address using the A0 and A1 pins if you are using multiple INA231 modules or other I2C devices on the same bus.
- Shunt Resistor: The accuracy of current measurement heavily relies on the precision and value of the external shunt resistor. Choose a shunt resistor appropriate for your expected current range.
7. Maintenance
The INA231 module is a robust electronic component, but proper handling and care will ensure its longevity:
- Storage: Store the module in a dry, anti-static environment when not in use.
- Handling: Avoid touching the pins or components directly to prevent electrostatic discharge (ESD) damage.
- Cleaning: If necessary, gently clean the module with a soft, dry brush or compressed air. Do not use liquids or solvents.
- Environmental Conditions: Operate the module within its specified temperature and humidity ranges.
8. Troubleshooting
- No I2C Communication:
- Verify VDD and GND connections are correct and within the 2.7V-5.5V range.
- Check SCL and SDA wiring to your microcontroller. Ensure pull-up resistors are present on the I2C lines (often built into microcontroller boards or can be added externally).
- Confirm the I2C address used in your code matches the physical A0/A1 pin configuration on the module.
- Incorrect Readings:
- Ensure the shunt resistor value used in your calculations matches the physical resistor connected.
- Verify the calibration value programmed into the INA231's registers is correct for your shunt resistor and desired current range.
- Check the connections to IN+ and IN- for proper polarity and secure contact.
- Ensure the 'Bus' pin is connected to the correct voltage rail for bus voltage measurement.
- Module Not Powering On:
- Double-check power supply connections (VDD and GND).
- Measure the voltage at the VDD pin to confirm it's receiving power.
9. Compliance and Safety
⚠ WARNING: This product can expose you to chemicals including lead, which is known to the State of California to cause cancer and birth defects or other reproductive harm. For more information go to www.P65Warnings.ca.gov.
10. Warranty and Support
For warranty information, technical support, or further assistance, please contact the seller or manufacturer directly. Keep your purchase records for any warranty claims.