Hall Effect Current Sensor: 4 Smart Designs With Isolation

Share:
Electronic Sensors
Hall Effect Current Sensor: 4 Smart Designs With Isolation

Measure tens of amperes on a mains conductor while your microcontroller stays safely isolated, all through a magnetic field.

Galvanic Isolation Open Loop Closed Loop ACS712

Current flowing in a conductor creates a magnetic field, and a Hall element converts that field into a voltage. This lets electronics measure AC and DC current without any electrical connection to the circuit.

Hello everyone, today we are going to learn how a Hall effect current sensor works, compare open loop and closed loop designs, and convert the output of an ACS712 module into amperes.
Hall effect current sensor

What Is a Hall Effect Current Sensor?

A Hall effect current sensor is a device that measures the magnetic field produced by a current carrying conductor with a Hall element and converts it into a proportional voltage or current output. It measures both AC and DC while keeping the measurement electronics galvanically isolated from the conductor.

The underlying physics is covered in how a Hall effect sensor works. Moving charges in a thin semiconductor are pushed sideways by the magnetic field, creating the Hall voltage.

Hall_effect_current_sensing_open-loop_closed-loop_8
Image credit: All About Circuits

All About Circuits notes that Hall sensing gives isolation without the power loss of a shunt resistor. That makes it attractive for high current and high voltage circuits.

Unlike a current transformer, it measures DC as well as AC. That is essential for batteries, solar and DC motor drives.

Hall Voltage Formula

V Hall = (I × B) ÷ (n × q × t)
Measured current = (V out minus V offset) ÷ Sensitivity

n = carrier density, q = electron charge, t = element thickness

ACS712 20 A example at 5 V supply:
Zero current output = 2.5 V
Sensitivity = 100 mV per A
V out = 3.1 V
Current = (3.1 minus 2.5) ÷ 0.1 = 6.0 A

The Allegro datasheet lists 100 mV per A sensitivity for the 20 A version and at least 2.4 kV RMS isolation. The 5 A and 30 A versions use 185 mV per A and 66 mV per A.

Negative current drives the output below 2.5 V, so AC appears as a swing around the midpoint. Firmware subtracts the offset before scaling.

4 Smart Sensor Designs

Open Loop

Core concentrates flux onto a Hall element, output amplified directly.

Best for: low cost AC and DC monitoring
Simple
Closed Loop

Secondary coil cancels the core flux, coil current is the output.

Best for: drives and precision measurement
Accurate
Integrated IC

Conductor runs through the IC package, like ACS712.

Best for: board level currents up to about 30 A
Compact
Coreless Differential

Two Hall plates reject stray fields.

Best for: high current busbars and EV systems
Robust

All About Circuits explains that closed loop designs use negative feedback, so drift in Hall sensitivity has little effect. They also respond faster and are more linear.

A smaller core air gap gives more magnetic gain but saturates earlier, lowering the maximum measurable current. Designers trade range against resolution.

Open Loop vs Closed Loop

FeatureOpen LoopClosed Loop
AccuracyAbout 1 to 2 percentBetter than 0.5 percent
Temperature driftHigherLow
BandwidthTens of kHzUp to hundreds of kHz
Power useLowHigher, drives the coil
Cost and sizeLowerHigher

Choose using the priorities in sensor selection criteria. Motor drives often use closed loop units in each phase.

Hall offset drifts with temperature, so auto zeroing at a known zero current improves accuracy in open loop systems.

Reading the Output With a Microcontroller

Sensor OutputVoltage centred at half supply
ADC SampleMicrocontroller converts to counts
Remove OffsetSubtract zero current value
ScaleDivide by sensitivity
FilterAverage or compute RMS for AC

A 10 bit ADC on a 5 V reference gives 4.88 mV per count, which is about 49 mA per count with a 100 mV per A sensor. Use oversampling or a better ADC for finer resolution.

For AC loads, sample fast over whole cycles and compute RMS rather than a simple average. Twisting sensor wires, keeping them away from motor cables and adding a small RC filter all reduce noise.

Where Hall Sensing Is Used

Motor Drives
Phase current for control and protection.
Battery Systems
Charge and discharge monitoring.
Solar Inverters
DC string and AC output current.
UPS Units
Load and battery current.
EV Chargers
Fault and power measurement.
Smart Panels
Energy monitoring on feeders.

In brushless DC motors, Hall current sensing works alongside Hall position sensors. Both rely on the same effect, although one senses current and the other senses rotor magnet position.

Output to Current Calculator

Hall Sensor Scaling
Result
Current 6.00 A, resolution 49 mA per count

Measure the real offset at zero current rather than assuming exactly half supply. Supply variation shifts both offset and sensitivity on ratiometric sensors.

Advantages
  • Measures AC and DC.
  • Galvanic isolation.
  • Very low insertion loss.
  • Compact module options.
Limitations
  • Offset drift with temperature.
  • Sensitive to stray magnetic fields.
  • Limited bandwidth in open loop units.
  • Core saturation at overload.

Allegro ACS712 Datasheet PDF

DATASHEET
ACS712 Hall Effect Based Linear Current Sensor IC
Allegro MicroSystems datasheet with sensitivity, isolation and noise data

ACS712 Module Video

Hall Effect Current Sensor FAQ

What does a Hall effect current sensor measure?
AC and DC current through the magnetic field of the conductor.
Is it isolated?
Yes, the conductor has no electrical connection to the output.
What is the ACS712 zero current output?
Half the supply, 2.5 V at 5 V.
What sensitivity does the 20 A ACS712 have?
100 mV per A.
Open loop or closed loop?
Closed loop is more accurate, open loop is cheaper.
Why does the reading drift?
Hall offset changes with temperature.
Can it measure AC RMS?
Yes, sample fast and compute RMS in firmware.

Related Articles

External References

What We Learn Today

  • Hall elements turn a conductor magnetic field into an isolated signal.
  • Closed loop designs beat open loop on accuracy and drift.
  • Subtract offset and divide by sensitivity to read current.
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!

Leave a Reply

Your email address will not be published. Required fields are marked *