ClassA Motor

What is a Hall sensor in a BLDC motor, and how do I wire it? Pinout, states and checks

A Hall sensor tells the controller where the rotor is so it knows when to switch phases. Learn the usual pinout, the six-state sequence, wiring rules and a simple test.

Updated 2026-11-28

The short answer

A Hall sensor is a semiconductor sensor whose output switches when a magnetic field passes it. In a brushless DC motor, three Hall sensors sit around the stator and read the poles of the rotor magnet. The controller reads their combination, which gives six valid states per electrical cycle, and energises the matching pair of phases. This lets the motor start under load from standstill. A typical connection has a power pin (often 5 V, but check the datasheet), a ground pin, and three signal outputs, usually labelled H1, H2 and H3.

How the signals relate to the motor

  • Electrical cycle: a motor with p pole pairs completes one electrical cycle per 1/p of a mechanical revolution. A motor with 4 pole pairs (8 poles) has 4 electrical cycles per turn.
  • Spacing: the usual layout places the three sensors 120 electrical degrees apart, giving six unique codes per electrical cycle. Some motors use 60-degree spacing, so check the datasheet.
  • Commutation: the controller maps each Hall code to a phase pair. One common sequence is 101, 100, 110, 010, 011, 001, but your motor may differ.

Wiring steps

  • Check the sensor supply voltage. Many are 4.5 to 5.5 V, but some accept 3.3 V or up to 24 V. Do not exceed the rating.
  • Connect +5 V and GND from the controller to the sensor power pins.
  • Connect H1, H2 and H3 to the controller's Hall inputs, keeping the labels consistent with the motor's phase order.
  • Check the output type. Open-collector outputs need pull-up resistors, typically 4.7 to 10 kΩ to the supply. Push-pull outputs connect directly.
  • Route the Hall cable apart from the motor phase cables, use twisted pairs, and shield it if it is long.

Worked example: electrical frequency

The electrical frequency is f_e = p × n / 60. For the 8-pole motor above (p = 4) at 600 rpm, f_e = 4 × 600 / 60 = 40 Hz. The Hall outputs change state six times per electrical cycle, so the controller sees 240 transitions per second. At 3000 rpm the rate is 200 Hz and 1200 transitions per second. The controller must read these edges fast enough at full speed.

Simple checks

  • Power on, then turn the rotor slowly by hand. Each Hall output should toggle, and the three together should step through six different combinations per electrical cycle.
  • If you see only two or four states, a sensor is open, misaligned or has the wrong supply.
  • If the motor runs rough, hot or in the wrong direction, the Hall order may not match the phase wiring. Swap two phase wires, or use the controller's auto-detect routine.

Common mistakes

  • Connecting a 5 V sensor to 12 V, which destroys it.
  • Leaving out pull-ups on open-collector outputs, so the signal never goes high.
  • Treating a Hall sensor as an encoder. It gives six steps per electrical cycle, not precise position.
  • Mounting the sensor plate at the wrong angle, which shifts the commutation and reduces torque.

When you need Hall sensors

Sensorless BLDC drives estimate position from back-EMF, which is enough for fans, pumps and most drones. Choose Hall sensors when the motor must start under heavy load from zero speed, hold torque at very low speed, or move a load that may stall at start-up.

Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →