Reading an ACS758 Current Sensor: Zero Offset, ADC Range and Calibration
A Hall-effect current sensor does not normally produce zero volts at zero current. On a bidirectional device, the output sits around a reference level and moves above or below it as current changes direction. Treating that output as a simple voltage-to-current scale without subtracting the offset is a common source of incorrect readings.
The current sensor breakout collection includes devices with different ranges and interfaces. This guide uses the ACS758 family to explain the measurement process, with initial experiments confined to a suitably protected, low-voltage bench circuit.
Identify the exact sensor variant
The compact ACS758 ±100 A sensor board is listed as a bidirectional current module with an analogue output. Check the fitted chip suffix and board connection labels before applying a conversion formula. Range, sensitivity and zero-current output differ across current-sensor variants.
The Allegro ACS758 datasheet specifies a typical sensitivity of 20 mV/A for the 100 A bidirectional version at a 5 V sensor supply. Its ideal zero-current output is half the supply. These are device-specific reference values, not a substitute for measuring the assembled board's offset.
Keep the measured-current path distinct from the low-current supply and signal connections. Do not infer terminal order from another module's photograph, and do not connect the measured load through an ordinary solderless breadboard.
Check the ADC voltage range first
Work out the sensor's possible output span before connecting it to a microcontroller. A 5 V-powered sensor can produce an output unsuitable for a 3.3 V-only analogue input. A shared ground does not solve an overvoltage problem.
Use an appropriately designed divider, buffer or ADC interface when required, considering input limits, source impedance, bandwidth and fault conditions. Include its scale factor in the conversion. Do not rely on a microcontroller's protection diodes as a normal voltage-conversion method.
Also distinguish the module's external supply input from the sensor chip's regulated supply. The board listing describes multiple supply arrangements, but the exact terminals and regulation path must be confirmed before use. Applying a higher module-input voltage to a chip supply or signal terminal can destroy the circuit.
Measure zero before measuring load
Power the sensor according to its documentation with no current flowing through the primary path. Allow the system to settle, then collect a series of output readings. Record their average and spread rather than storing one instantaneously sampled value as the permanent zero.
For a bidirectional measurement, use the relationship current = (output voltage − zero-current voltage) / sensitivity, adjusted for any signal-conditioning gain or divider. Use consistent units: 20 mV/A is 0.020 V/A.
As an illustrative calculation, suppose the measured zero is 2.48 V and a later output is 2.68 V. With an applicable sensitivity of 0.020 V/A, the indicated current is 10 A. Using an assumed 2.50 V zero instead would give 9 A. This example shows why offset matters; it is not a calibration result for a particular board.
Estimate whether the range suits the measurement
A high-range sensor is convenient for large currents, but may be a poor choice for small changes. Consider the complete conversion chain before expecting fine resolution.
For example, an ideal 10-bit ADC spanning 5 V has a step of approximately 4.88 mV. At 20 mV/A, that corresponds to about 0.244 A per count before noise, offset and other errors. Averaging may improve the stability of a displayed value, but it does not automatically create accurate measurements of much smaller currents.
If your main interest is a few milliamps, compare a lower-range sensor or a suitable shunt-based measurement system. Choose the range around normal operation and credible peaks, while retaining the required electrical and thermal margins.
Calibrate with a suitable reference
Use a known, stable low-voltage load within the safe capability of the wiring, supply, sensor board and reference instrument. Record the reference current and sensor output at several points rather than adjusting the scale to agree at one convenient value.
Check both current directions if the application needs bidirectional readings and the test arrangement safely supports reversal. Inspect whether errors look like a constant offset, a scale error or a nonlinear change. Keep raw readings so that later software adjustments can be evaluated against the original evidence.
Temperature and magnetic history can affect the zero point. Allegro's discussion of magnetic hysteresis in current sensors explains one reason the offset may change after a current excursion. Do not automatically re-zero while an unknown current may be flowing.
Separate DC average from AC RMS
For a steady DC load, averaging offset-corrected samples can produce a useful estimate of current. For an alternating waveform, the average may be close to zero even while substantial current flows.
RMS calculation requires subtracting the zero offset from each sample, squaring the resulting current values, averaging those squares over a suitable interval and taking the square root. Sampling rate, analogue bandwidth, filtering and window length must suit the waveform. A formula alone does not prevent aliasing or clipping.
Do not convert a measured peak to RMS using a sine-wave relationship unless the waveform is actually sinusoidal. PWM-driven loads and rectifier circuits can have quite different waveforms. Retain the intended meaning in the display label: average, instantaneous and RMS current are different quantities.
Do not confuse measurement range with installation rating
A sensor chip's isolation test voltage is not a declaration that the complete breakout is suitable for an arbitrary mains installation. PCB spacing, terminals, mounting, enclosure and the whole system's insulation requirements matter. This bench guide does not establish those conditions.
Likewise, a ±100 A measurement range does not guarantee that every board, connector and wire can carry 100 A continuously. Allegro's current-capability guidance discusses thermal and conductor behaviour. Use appropriate overcurrent protection and rate the complete current path; the sensor is not a replacement for a fuse.
A useful finished measurement includes its range, calibration conditions and known limitations. Once the offset, scale and ADC interface are understood, the displayed current becomes a quantity you can assess rather than merely a number that moves with the load.