Comparison · Intermediate · 3 min read
ACS712 vs INA219 Current Sensors
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The ACS712 is a Hall-effect current sensor that outputs an analog voltage centred at 2.5 V, rising or falling 185, 100 or 66 mV per amp for its 5, 20 and 30 A versions. It is isolated and reads AC or DC. The INA219 measures current through a small shunt resistor plus bus voltage and power, and reports them digitally over I2C. Use the INA219 for small DC currents and battery monitoring.
Key specs at a glance
- ACS712 ranges
- ±5 A (185 mV/A), ±20 A (100 mV/A), ±30 A (66 mV/A)
- ACS712 supply / output
- 5 V; output centred at 2.5 V (VCC/2)
- ACS712 isolation
- Galvanically isolated Hall sensor; reads AC and DC
- INA219 range
- ±3.2 A with the usual 0.1 Ω shunt; bus up to 26 V
- INA219 interface
- I2C, 0x40 to 0x4F; reports current, voltage and power
- INA226
- Up to 36 V bus, higher resolution
Hall effect or shunt?
| ACS712 | INA219 | |
|---|---|---|
| Method | Hall effect, isolated | Shunt resistor, high-side, not isolated |
| Output | Analog voltage | Digital I2C |
| AC current | Yes (sample and compute RMS) | No, DC only |
| Resolution on Uno | About 26 mA per step (5 A version) | About 0.8 mA |
| Also measures | Current only | Bus voltage and power |
| Best for | Mains-isolated loads, motors, higher currents | Batteries, solar, low-current DC |
- Method
- ACS712:
- Hall effect, isolated
- INA219:
- Shunt resistor, high-side, not isolated
- Output
- ACS712:
- Analog voltage
- INA219:
- Digital I2C
- AC current
- ACS712:
- Yes (sample and compute RMS)
- INA219:
- No, DC only
- Resolution on Uno
- ACS712:
- About 26 mA per step (5 A version)
- INA219:
- About 0.8 mA
- Also measures
- ACS712:
- Current only
- INA219:
- Bus voltage and power
- Best for
- ACS712:
- Mains-isolated loads, motors, higher currents
- INA219:
- Batteries, solar, low-current DC
Reading an ACS712
Connect VCC to 5 V, GND to GND, OUT to an analog pin, and put the module's screw terminals in series with the load. Current (A) = (Vout − 2.5 V) ÷ sensitivity. Measure the zero-current voltage on startup rather than assuming exactly 2.5 V, and average many samples because the output is noisy. On a 3.3 V board such as an ESP32, add a voltage divider so the output never exceeds 3.3 V. For AC, sample quickly over a few mains cycles and compute RMS.
Allegro now recommends newer parts such as the ACS723 for new designs, but ACS712 modules remain common and work well for learning.
Reading an INA219
Wire VCC to 3.3 V or 5 V, SDA and SCL to the I2C pins, and connect VIN+ to the supply and VIN− to the load so current flows through the shunt. Grounds must be common. With the Adafruit INA219 library, getCurrent_mA(), getBusVoltage_V() and getPower_mW() give readings directly. Up to 16 can share a bus by setting A0 and A1. Use it to measure the true current of a battery project and estimate run time with the battery life calculator.
Try it: Voltage divider calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Feeding a 5 V ACS712 output straight into a 3.3 V ADC.
- Assuming the zero point is exactly 2.5 V.
- Using a 30 A ACS712 to measure a few hundred mA.
- Putting an INA219 on the low side, which gives wrong bus voltage.
- Working on mains current without proper insulation and enclosure.
Frequently asked questions
Can the ACS712 measure AC current?
Yes. Sample the output quickly and calculate the RMS value over whole mains cycles.
Which current sensor is best for battery monitoring?
The INA219 or INA226, because they measure small DC currents accurately and also report voltage and power.
Does the ACS712 work with ESP32?
It needs 5 V power, and its output must be divided down to below 3.3 V before the ESP32 ADC.
Why is my ACS712 reading noisy?
The analog output carries noise. Average many samples, add a small capacitor on the filter pin, and keep motor wiring away.
Can the INA219 measure more than 3.2 A?
Yes, by replacing the shunt with a lower value and recalibrating, but check the shunt's power rating.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 33 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


