Skip to main content

Hall sensors: commutation and speed measurement

Updated 2026-10-09IntermediateControl methods

Key takeaways

  • A switch-type Hall sensor senses magnetic field polarity; three Hall sensors produce six states corresponding to six-step commutation
  • Adjacent Hall sensors are spaced either 60° or 120° apart (electrical angle), and the two types cannot be mixed
  • Resolution is only on the order of 60° electrical: suited to commutation and speed measurement, not precision positioning
  • Outputs are usually open-drain and need pull-ups; wrong supply, phase order, or phase type causes juddering, reversal, or failure to run

A brushless motor has no brushes, so the drive must know "where the rotor is now" before energizing the windings in sequence. Hall sensors are the most common answer: three Hall devices mounted on the stator side flip their output level as the rotor poles sweep past, and the six states correspond to six-step commutation. They are low-cost and simple to wire, making them the default solution in fans, power tools, and light electric vehicle controllers.

Why it matters

A brushless motor's commutation instants depend entirely on rotor position information: one step wrong, and at best efficiency drops and torque ripples, at worst the motor judders on startup or even runs backwards. Hall sensors provide "good enough" position information at the lowest cost — one of the reasons the brushless DC motor (BLDC) could spread on a large scale. Understanding their capability boundary (what they can and cannot do) is the key to selection and troubleshooting.

Core concepts and formulas

The Hall effect and switch output. When a current-carrying semiconductor sheet is placed in a magnetic field, the charge carriers are deflected by the Lorentz force and a potential difference appears across the sheet — this is the Hall effect. Motors use the switch-type [Hall sensor](/glossary/hall/): when the magnetic field polarity flips, the output switches between high and low levels, commonly as an open-drain output that needs a pull-up resistor on the drive side. The drive controller reads the three signals as digital inputs and determines the rotor sector in real time.

Six states for six-step commutation. The three Hall devices are spaced around the circumference at electrical-angle intervals; as the rotor moves through one sector, the combination of the three outputs changes once:

StateMeaningDrive action
States 1–6The six valid combinations of the three levelsSwitch the conducting phases in sequence to complete six-step commutation
All 0 / all 1Invalid combination (fault or unpowered)No commutation; wait or raise an error

The commutation sequence is determined jointly by the motor winding and the Hall arrangement; follow the matching table for the specific motor and drive. 60° and 120° arrangements refer to the two common types of phase difference (electrical angle) between adjacent Hall outputs: their commutation tables differ, so they must be checked when replacing a drive; wrong connections show up as startup judder, reversal, or a sharp drop in efficiency.

Speed measurement and the capability boundary. For each rotor revolution, the number of Hall output edges is proportional to the pole-pair count, so the edge frequency or period can be used to estimate speed — low-cost brushless fans commonly close the loop this way. But Hall resolution is only on the order of 60° electrical: good for commutation and speed measurement, not for precision positioning. When higher accuracy is needed, switch to an encoder; in high-performance sinusoidal control (FOC field-oriented control) you can also start with Hall sensors and move up to an encoder.

Common misconceptions

  1. Using Hall sensors as an encoder: resolution differs by more than two orders of magnitude, so precision positioning requires an encoder; Hall sensors plus an observer can provide a low-cost closed loop, but accuracy is limited.
  2. Assuming every brushless motor has three Hall sensors: single-Hall, Hall-plus-encoder, and sensorless solutions all exist, each with different commutation logic; work from the drawing and the manual.
  3. Hot-plugging the Hall harness to troubleshoot: this may damage the drive input or the Hall elements, so the power must be removed first.
  4. Replacing the Hall sensors as soon as the signals look wrong: check the supply, pull-up resistors, air gap, and harness interference first — a failed Hall element is only one of several possible causes.

Engineering guidance

  1. Troubleshoot in three steps: confirm the supply and pull-ups are normal → slowly turn the rotor and use an oscilloscope to check that all three square waves have high and low transitions → check the phase order and Hall phase type against the commutation table.
  2. Check the tables before replacing a drive: record the original motor's Hall phase type (60°/120°) and phase-order definition and check them item by item against the drive requirements; when unsure, confirm with the manufacturer rather than trying connections at random.
  3. Interference-resistant wiring: shield the Hall harness and keep it away from power lines; PWM noise coupling causes erroneous commutation — for modulation and wiring points, see PWM control: principles and motor speed regulation.
  4. Selection for high-temperature locations: Hall sensors are semiconductor devices and will drift and fail under sustained high temperature; for high-temperature motors, choose temperature-rated types or substitute a magnetic encoder.
  5. For type-level trade-offs, use the motor selection guide; when a high-precision closed loop is needed, evaluate the cost of an encoder solution.

Replacing a light-vehicle controller? The tricycle motor and controller matching guide turns feedback and connector checks into an ordering checklist. Compare the exact model in the motor and controller catalog; this Hall-sensor explanation does not supply its pinout.

FAQ

Can a Hall sensor serve as an encoder for servo feedback?

No. Hall resolution is only on the order of 60° electrical, suitable for commutation and speed measurement; precision positioning and smooth low-speed control need an encoder. Some drives implement low-cost closed-loop control with Hall sensors plus an observer, but accuracy remains below that of an encoder solution.

Can Hall wires be plugged and unplugged while powered, for troubleshooting?

No. Hot-plugging the Hall harness may damage the drive input circuit or the Hall elements, so the power must be removed first. When troubleshooting, confirm the supply and pull-ups first, then look at the signals.

After fitting a new drive, why does the motor judder or run backwards?

It is usually a mismatch between the Hall phase type (60°/120°) and the phase-order definition. Different drives use different commutation tables and phase-order definitions, so check each item against the matching table for the motor and drive; do not rely on random trial connections.

Do brushless motors always have 3 Hall sensors?

Not always. Three Hall sensors are the common arrangement, but single-Hall, Hall-plus-encoder, and sensorless solutions (back-EMF zero-crossing detection or observers) also exist, with different wiring and commutation logic; follow the specific motor drawing.

Related tools

Related articles

Sources

  • Electric Machinery (Tang Yunlin et al., China Machine Press) — brushless and special machines chapters (China Machine Press)
  • Modern Motor Control Technology (Wang Chengyuan et al., China Machine Press) (China Machine Press)
WhatsApp(opens in a new tab)