Get started

What is in the box, which pin is which, and how to wire and place the sensor.

R Hall A2 is a three-pin breakout for the DRV5055A2, a linear, ratiometric Hall-effect sensor. It gives your microcontroller a continuous magnetic-field reading through an ADC, not a digital switch state. It suits UAV firmware, robotics, test engineering, and anyone learning analog sensor interfacing.

Before you power it

Check the pin order against the silkscreen. The output is analog, not a logic level, so read it with an ADC rather than a GPIO.

In the box#

  • 1x R Hall A2 breakout board, 14.5 x 11.5 mm
  • 1x 3-pin 2.54 mm straight header, unsoldered
  • Quick-start card with pinout reference

Pinout#

With the IC facing you and the silkscreen the right way up, the pins run from top to bottom: VCC, OUT, GND.

R Hall A2 seen from above, with VCC, OUT and GND from top to bottom on the left edge
VCC
3.3 V or 5 V nominal supply. Tie this to the same rail used as the ADC reference for ratiometric tracking.
OUT
Center pin. Ratiometric analog output for an ADC. Sits at VCC / 2 at zero magnetic field.
GND
Ground reference, shared with the controller's analog ground.

Wiring#

  1. Connect VCC to a stable 3.3 V or 5 V rail.
  2. Connect GND to the controller's analog ground.
  3. Connect OUT to a 12-bit or better ADC input on your microcontroller.
  4. Power on. The red LED should light. If it does not, check polarity.

Magnet placement#

Place the magnet so its field passes perpendicular to the top face of the Hall sensor. The magnetic axis of detection is normal to the IC package, so fields parallel to the PCB are rejected. A distance of 5 mm or less typically yields the cleanest signal for small neodymium magnets such as N35 to N52, 5 x 5 x 3 mm.

Measure from the sensing IC, not the connector edge, when placing magnets or moving linkages. This keeps calibration repeatable when board orientation changes between prototypes.

If the reading moves the wrong way

There are two equally valid fixes:

  • Invert the magnet so the opposite pole faces the IC.
  • Negate the field in software: field_mT = -(vout - vcc/2) / sensitivity.

Cable length#

Up to about 30 cm of unshielded wire is fine on a low-noise rail. Beyond that, or near switching power supplies, use a shielded cable with the shield bonded to GND at the controller end only, and add a 100 nF ceramic capacitor from VCC to GND at the breakout end.