Current sensing is the process of converting electrical current flowing through a conductor into a measurable, proportional voltage signal for monitoring or control. In the realm of embedded electronics and power systems, answering the most common electrical engineering questions and answers about current measurement always boils down to choosing between two dominant technologies: the shunt resistor (Ohmic) and the Hall effect sensor (magnetic).
Your choice of sensor fundamentally changes your circuit's isolation boundary, power dissipation, and bandwidth. A shunt inserts a known resistance directly in the current path, generating heat and tying your measurement ground to the load ground, while a Hall sensor measures the magnetic field around the conductor, providing galvanic isolation but introducing offset drift. Beginners commonly confuse Hall effect sensors (which measure DC and AC via magnetic fields) with Current Transformers (CTs), which only work for AC and rely on electromagnetic induction.
The Shunt Resistor: Precision at the Cost of Heat
A shunt resistor operates on Ohm’s law ($V = I \times R$). By placing a precise, low-value resistor in series with your load, you measure the voltage drop across it to calculate the current.
Worked Numeric Example: Sizing a Shunt for a 20A DC Motor
Suppose you need to measure the continuous draw of a 20A DC motor. You want to keep the burden voltage low to avoid starving the motor controller, so you target a maximum voltage drop ($V_{sense}$) of 75mV at peak current.
- Resistance needed: $R = V / I = 0.075V / 20A = 3.75m\Omega$.
- Power dissipated: $P = I^2 \times R = 400 \times 0.00375 = 1.5W$.
Even though the steady-state dissipation is 1.5W, motor startup spikes can double the current momentarily. You must select a shunt rated for at least 3W to 5W (such as the Bourns CSS 3W series) to prevent thermal drift, which alters the resistance value and ruins your measurement accuracy. Furthermore, if you feed this 75mV signal directly into an ESP32’s 12-bit ADC (0-3.3V range), you are only using ~2% of the ADC’s resolution. This is why engineers pair raw shunts with dedicated I2C digital shunt monitors like the Texas Instruments INA226, which features an internal 16-bit ADC and a programmable gain amplifier specifically optimized for microvolt-level shunt readings.
Hall Effect Sensors: Isolation and Bandwidth Trade-offs
Hall effect sensors rely on the Lorentz force law. Current flowing through a conductor generates a proportional magnetic field. The sensor contains a semiconductor element that outputs a transverse voltage when exposed to this magnetic field. Because the sensor does not make electrical contact with the current-carrying conductor, it provides galvanic isolation.
This isolation is what makes Hall sensors indispensable for high-voltage or high-side measurements. You can safely measure a 240V AC mains line or a 48V battery pack’s high-side positive terminal without risking a short circuit that would instantly destroy your 3.3V microcontroller. The modern standard for PCB-mounted Hall sensing is the Allegro ACS724 series. Unlike the older ACS712, which was ratiometric (meaning its output drifted if the 5V supply rail had noise), the ACS724 offers fixed sensitivity, making it vastly superior for noise-heavy environments.
However, Hall sensors introduce two distinct penalties:
- Offset Drift: The zero-current output voltage shifts with temperature changes, requiring software calibration or hardware offset-nulling.
- Stray Magnetic Susceptibility: If you mount a Hall sensor too close to a power transformer, a relay coil, or even a high-current PCB trace, the external magnetic field will induce false current readings.
Where You Meet This in Practice
Shunts are mandatory here. Systems that rely on Coulomb counting to calculate battery State of Charge (SoC) require absolute precision over long periods. A Hall sensor’s microvolt-level offset drift, integrated over 24 hours, will result in massive phantom capacity errors, causing your battery management system (BMS) to miscalculate remaining runtime.
AC Mains Power Meters:
Hall sensors (or split-core Current Transformers) are the standard. Inserting a shunt directly into a 120V/240V AC line requires expensive, complex isolation amplifiers to safely step down the common-mode voltage for a microcontroller. A Hall sensor or CT inherently solves the isolation problem.
Electronic Speed Controllers (ESCs) for Drones:
Shunts are used for fast overcurrent protection. When a drone motor stalls, current spikes to destructive levels in microseconds. Shunts respond instantaneously. Hall sensors have a propagation delay (typically 1-3 $\mu s$ for the ACS724, and up to 10 $\mu s$ for older parts), which is often too slow to trigger a MOSFET shutdown before the silicon melts.
Decision Tree: Selecting Your Current Sensor
Use this decision path to terminate your design phase with a concrete component selection.
| Application Scenario | Critical Requirement | Technology Choice | Concrete Part Recommendation |
|---|---|---|---|
| Battery SoC / Coulomb Counting (DC) | Zero long-term drift, high precision | Shunt + I2C Monitor | Texas Instruments INA226 |
| High-Side DC Load Monitoring (>12V) | Common-mode voltage rejection | High-Side Shunt Monitor | Analog Devices LT6106 |
| AC Mains Power Measurement (120/240V) | Galvanic isolation, safety | Hall Effect or CT | Allegro ACS724 (PCB) or YHDC SCT-013 (Split-core) |
| High-Current DC (>60A continuous) | Minimizing heat dissipation (I²R) | Hall Effect | Allegro ACS772 (up to 200A) |
| Fast Overcurrent Fault Protection | Sub-microsecond response time | Shunt + Comparator | Bourns CSS Shunt + LM393 Comparator |
The Default Verdict: If you are building a general-purpose DC monitoring system (under 50V and under 30A) and lack a specific, overriding reason to need galvanic isolation, buy the INA226 on a breakout board. It eliminates the analog noise headaches of raw shunts, handles the math internally, and communicates cleanly over I2C.
Frequently Asked Questions
Q: Can I just use my digital multimeter’s internal shunt for continuous circuit monitoring?
A: No. Multimeters are designed for temporary diagnostic probing, not continuous inline operation. The internal shunt will introduce a massive burden voltage (often dropping 1V to 2V at high currents), which will cause your load to brown out. Furthermore, the internal fuse is not rated for continuous high-current thermal cycling and will eventually blow or degrade.
Q: Why does my ACS712 Hall sensor read 1.5A when the load is completely disconnected?
A: The ACS712 is ratiometric, meaning its zero-current offset (Vref) is tied directly to its VCC pin. If your 5V Arduino supply rail has 50mV of ripple, that ripple is amplified and appears as false current. Additionally, the ACS712 is highly susceptible to stray magnetic fields; if it is mounted near a switching power supply inductor, the magnetic flux will bias the Hall element. Upgrade to the ACS724 for fixed-sensitivity operation.
Q: What is the difference between a Hall sensor and a fluxgate current sensor?
A: Both measure magnetic fields, but fluxgate sensors (like the TI DRV425) use a magnetically saturable core and an active feedback loop to null the magnetic field, offering vastly superior accuracy and lower drift than standard Hall elements. They are used in laboratory-grade equipment and high-end solar inverters, but cost significantly more and require complex external drive circuitry.






