Measuring current and voltage is essential for power monitoring, battery management and system diagnostics. Modern sensor modules make this task much easier by providing accurate digital measurements via I2C.
This article explains how current and voltage sensors work and compares popular devices such as INA219, INA226 and INA3221.
Why Measure Current and Voltage?
- Monitor power consumption
- Detect overload or faults
- Measure battery usage and efficiency
- Optimize energy usage in embedded systems
These measurements are especially important in battery-powered and power-sensitive designs.
How Current Measurement Works
Most current sensors use a shunt resistor:
- A small resistor is placed in series with the load
- The voltage drop across the resistor is measured
- Current is calculated using Ohm’s law
This method is simple, accurate and widely used in modern sensor ICs.
High-Side vs Low-Side Measurement
| Type | Position | Advantages | Notes |
|---|---|---|---|
| High-side | Between supply and load | No ground disturbance | Preferred in most designs |
| Low-side | Between load and ground | Simpler | Can affect ground reference |
Most modern sensor modules support high-side measurement.
INA219: The Entry-Level Standard
- Interface: I2C
- Measures: voltage, current, power
- Resolution: 12-bit
The INA219 is one of the most popular current sensors for Arduino projects.
Advantages:
- Low cost
- Easy to use
- Wide library support
Limitations:
- Lower accuracy compared to newer devices
- Limited resolution
INA226: Higher Precision
- Interface: I2C
- Measures: voltage, current, power
- Resolution: 16-bit
The INA226 offers improved accuracy and resolution compared to INA219.
Advantages:
- Better precision
- More configurable
- Suitable for more demanding applications
INA3221: Multi-Channel Monitoring
- Interface: I2C
- Channels: 3 independent measurements
- Measures: voltage and current per channel
The INA3221 allows monitoring multiple power rails at the same time.
Typical use cases:
- Monitoring multiple sensors or subsystems
- Power distribution analysis
- Embedded systems with multiple voltage rails
Comparison Overview
| Sensor | Resolution | Channels | Accuracy | Recommendation |
|---|---|---|---|---|
| INA219 | 12-bit | 1 | Good | Basic projects |
| INA226 | 16-bit | 1 | High | Precision measurements |
| INA3221 | 13-bit (per channel) | 3 | Good | Multi-rail monitoring |
Shunt Resistor Selection
The measurement range depends on the shunt resistor:
- Lower resistance = higher current range, lower resolution
- Higher resistance = better resolution, lower current range
Choosing the right shunt value is critical for accurate measurements.
Power and Integration
- Most modules operate at 3.3V or 5V
- I2C requires pull-up resistors
- Ensure proper wiring of high-side measurement
Common Mistakes
- Using the wrong shunt resistor value
- Incorrect wiring (reversing supply/load)
- Ignoring calibration settings in software
Practical Recommendations
- Use INA219 for simple monitoring
- Use INA226 for higher accuracy
- Use INA3221 when multiple channels are needed
Conclusion
Modern current and voltage sensors make power monitoring straightforward and accurate. The INA219 remains a great entry-level option, while INA226 and INA3221 provide enhanced precision and flexibility for more advanced applications.
Understanding measurement principles and proper configuration ensures reliable and meaningful results.
