RL-HSB-001 · Sensors · Hall Sensor Breakout
Calibration
A practical two-point calibration flow for offset, scale, warm-up drift, and runtime conversion.
Published May 4, 2026Updated May 8, 2026Reading time ~12 min
01Two-point calibration#
Two-point calibration takes about 30 seconds and removes both part-to-part offset and any small ratiometric error from your supply.
02Procedure#
- Zero point: with the board powered and no magnet within 30 cm, sample 256 ADC readings and average them. Store this as
v_zero. - Reference point: place a known magnet at a known distance, or use a calibrated coil at a known field
B_ref. Sample again and store this asv_ref. - Compute scale: calculate
scale = B_ref / (v_ref - v_zero). Save bothv_zeroandscaleto non-volatile storage. - At runtime, calculate
field_mT = (v - v_zero) x scale.
03Warm-up behavior#
Re-zero on warm-up
The DRV5055A2 has a small thermal drift in its midpoint. For sub-millitesla precision, re-sample v_zero after the system has been running for at least 60 seconds.