How it works

Why the output is ratiometric, how sensitivity changes with supply, and how to calibrate.

Ratiometric output#

The Texas Instruments DRV5055A2 is a linear analog Hall-effect sensor. Its output is ratiometric, meaning the no-field midpoint voltage and the sensitivity both scale with the supply rail. At zero field, the output sits at VCC / 2. Magnetic flux density passing perpendicular to the top face of the IC moves the output linearly above or below that midpoint.

Why ratiometric matters#

If you power the breakout from the same rail the ADC uses as its reference, the conversion is independent of small supply variations. A 50 mV rail dip becomes a 25 mV midpoint dip, but the ratio between VOUT and VREF is unchanged, so the digital ADC code is unchanged. This is the cleanest way to use the part.

Sensitivity and supply#

Supply railSensitivity (typical)Linear range (typical)
5.0 V50 mV/mT±42 mT
3.3 V30 mV/mT±44 mT

The A2 variant trades raw resolution for wider linear range, which is useful for tracking rotors or gimbal magnets where field strength varies through several tens of millitesla.

Calibration#

Two-point calibration takes about 30 seconds and removes both part-to-part offset and any small ratiometric error from your supply.

  1. Zero point: with the board powered and no magnet within 30 cm, sample 256 ADC readings and average them. Store this as v_zero.
  2. 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 as v_ref.
  3. Compute scale: calculate scale = B_ref / (v_ref - v_zero). Save both v_zero and scale to non-volatile storage.
  4. At runtime, calculate field_mT = (v - v_zero) x scale.
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.