Hall/current-sensor scaling calculator

Enter the sensitivity and zero-current output from the sensor's datasheet. Changing the current unit reinterprets the number.

Enter the sensitivity and output voltage to see the current.

No valid result to draw.

Show the steps

Interactive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.

Convert a Hall-effect current sensor's output voltage to current, or current to output voltage, from its sensitivity in mV/A and zero-current output, with ratiometric supply scaling.

How to use

Choose Output voltage to current or Current to output voltage.

Choose Fixed for sensors whose zero output is set by a reference pin, or Ratiometric for sensors whose output scales with the supply.

Enter the supply voltage and the datasheet sensitivity and zero-current output (for ratiometric sensors, the datasheet supply and the zero output as a percentage of supply).

Enter the measured output voltage, or the current and its unit.

Read the current or output voltage, the values used and the ideal range. Copy result copies labeled values; Reset restores the starting fields.

Science

A Hall-effect current sensor turns the magnetic field around its internal conductor into a voltage. Over its rated range the output is the zero-current output plus the sensitivity times the current, so one subtraction and one division give the current.

Bidirectional sensors sit at half the supply at 0 A so current in either direction can be measured. Unidirectional versions start near 10 % of the supply to give one direction more of the output range.

In a ratiometric sensor such as the ACS712 or ACS724, both the zero output and the sensitivity scale with the supply voltage. If the ADC uses the same supply as its reference, the supply change cancels. If the ADC has a fixed reference, the actual supply must be used, or a 4.8 V supply read with 5 V values gives a large error. Fixed-sensitivity sensors such as the TMCS1100 set the zero output with a reference pin instead.

Limitations: the tool uses the ideal linear transfer function and ideal ratiometry. It ignores offset and sensitivity errors and their temperature drift, nonlinearity (1.5 % typical for the ACS712), noise, bandwidth and real ratiometry coefficients (1.3 typical for ACS724 sensitivity). Outputs saturate before the supply rails, and accuracy is specified only over the rated current range. Converting the output to ADC counts is not included.

Formulas

Output: Vout = V0 + S × I. S in V/A (mV/A ÷ 1000), I in A, V0 and Vout in V.

Current: I = (Vout - V0) / S.

Ratiometric scaling: S = S_nom × VCC / V_nom; V0 = k × VCC, with k = 0.5 (bidirectional) or 0.1 (unidirectional).

Fraction of supply: Vout / VCC = k + (S_nom / V_nom) × I.

Ideal range: I(0 V) = -V0 / S; I(VCC) = (VCC - V0) / S.

Examples

ACS712-05B at 5 V: 185 mV/A, zero output 2.5 V, output 2.87 V: 2 A. (2.87 - 2.5) / 0.185.

Same sensor, current -3 A: 1.945 V. 2.5 + 0.185 × (-3): current in the other direction lowers the output.

Ratiometric 185 mV/A at 5 V, 50 %, supply 4.8 V, output 2.75 V: 1.97072 A (with 5 V values: 1.35135 A). Common mistake: at 4.8 V the zero output is 2.4 V and the sensitivity 177.6 mV/A.

ACS724-10AU unidirectional: 400 mV/A, 10 % of 5 V, output 2.5 V: 5 A. (2.5 - 0.5) / 0.4.

TMCS1100A2 fixed: 100 mV/A, reference 2.5 V, output 1.9 V: -6 A. (1.9 - 2.5) / 0.1; the sign shows the direction.

ACS712-05B at 5 V: ideal range: -13.5135 A to 13.5135 A. Boundary: the rails, not the rated ±5 A, set this range; accuracy is specified only to ±5 A.

References

Allegro ACS712 datasheet

Allegro ACS724 datasheet

Allegro AN296181: error specifications for linear Hall-effect current sensors

TI TMCS1100 datasheet