BRUSHLESS DC (BLDC )MOTOR HALL EFFECT OUTPUTS

Photo of author

By Jackson Taylor

Home » Hardware » BRUSHLESS DC (BLDC )MOTOR HALL EFFECT OUTPUTS

As an Amazon Associate we earn from qualifying purchases.

A brushless DC (BLDC) motor has no brushes to switch current between its windings, so an electronic controller has to do that job. To switch at the right moment, the controller must know where the rotor is. Most BLDC motors solve this with Hall effect sensors, which give a simple digital signal that tracks rotor position. This article explains what those outputs look like, how to read them, and how they are used to drive the motor.

The video below shows the Hall effect outputs of a BLDC motor.

What a Hall effect sensor does in a BLDC motor

A Hall effect sensor changes its output when it senses a magnetic field. In a BLDC motor, the rotor carries permanent magnets. As the rotor turns, north and south poles pass the sensors, and each sensor switches its output between high and low.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

For a simple look at how one switch-type sensor behaves on its own, see the page on the Hall effect sensor A3144. The sensors inside a motor work on the same principle, but they are placed carefully around the stator so that their signals line up with the motor windings.

Three sensors, three outputs

Most three-phase BLDC motors use three Hall sensors, usually called Hall A, Hall B and Hall C (sometimes U, V and W or H1, H2 and H3). They are spaced so that their outputs are shifted from one another by a fixed electrical angle, commonly 120 degrees, although some motors use a 60-degree arrangement.

With the standard 120-degree layout, each sensor output is a square wave. The three waves are offset from each other, so together they produce six different combinations of high and low per electrical cycle.

The six valid Hall states

Read as a three-bit number (A, B, C), the outputs step through six valid states as the rotor turns. In one direction the sequence is typically:

  1. 001
  2. 011
  3. 010
  4. 110
  5. 100
  6. 101
See also
ULTRA SONIC SENSOR ARM

Turning the rotor the other way runs the same sequence in reverse. The states 000 and 111 should never appear in a working motor. If you see them, check for a wiring fault, a missing supply voltage or a damaged sensor.

The exact labels and order depend on how the sensors are mounted and how the wires are named, so treat this sequence as an example rather than a rule for every motor.

How the outputs drive six-step commutation

Each of the six Hall states tells the controller which two of the three motor phases to energize. One phase is connected to the positive supply, one to the negative side, and the third is left floating. When the rotor moves into the next position, the Hall state changes and the controller moves to the next phase pair. This is known as six-step, or trapezoidal, commutation.

The mapping between Hall state and phase pair is not the same for every motor. A wrong mapping can make the motor run roughly, draw high current or not start at all. Many controllers include a lookup table that you adjust, or a setup mode that finds the right order for you.

Typical wiring and signal levels

A BLDC motor with Hall sensors usually has eight wires: three thicker wires for the motor phases and five thinner wires for the sensors. The five sensor wires are:

  • Sensor supply (often 5 V, but check the motor or sensor datasheet)
  • Ground
  • Hall A output
  • Hall B output
  • Hall C output

Many Hall sensors have open-collector outputs. These can only pull the line low, so they need a pull-up resistor to the logic supply to produce a clean high level. Some motors already include pull-ups, and some controllers add them on the board. If your signals look stuck low or noisy, a missing pull-up is a common reason.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Keep the sensor signal level in mind when connecting to a microcontroller. If the sensors run at 5 V and your board uses 3.3 V logic, use a level shifter or a suitable pull-up to 3.3 V, as long as the sensor datasheet allows it.

See also
ULTRASONIC SENSOR & Mounting Bracket

How to check the Hall outputs yourself

You can test the sensors without running the motor under power. Only the sensor supply is needed.

  1. Identify the five sensor wires and connect the sensor supply and ground.
  2. Connect a multimeter, logic analyzer, oscilloscope or microcontroller input to one Hall output at a time.
  3. Turn the shaft slowly by hand and watch the output switch between high and low.
  4. Repeat for the other two sensors and compare the timing.

With a logic analyzer or oscilloscope on all three outputs, you should see three square waves that are evenly offset. With an Arduino, you can read the three pins and print the three-bit state each time it changes. Turning the shaft one way and then the other should give the sequence forward and then backward.

Because a motor has several magnet pole pairs, one mechanical turn gives several electrical cycles. So you will see the sequence repeat more than once per full turn of the shaft.

Using the Hall signals for speed and direction

The Hall outputs are useful for more than commutation. The time between state changes tells you the rotor speed, and the order of the states tells you the direction. Many simple speed controllers and e-bike controllers use this information for speed feedback. If you want to see how the motor is built, take a look at this inside view of an e-bike BLDC motor.

Hall sensors or sensorless control?

Hall sensors give reliable position information even at very low speed and at standstill, which makes starting under load easier. The drawbacks are extra wires, extra parts that can fail and a bit more cost and size.

Sensorless designs remove the sensors and estimate rotor position from the back-EMF on the motor phases. That works well at speed but is harder at start-up and very low speed. If you want to compare the two methods, read about sensorless control using Arduino.

See also
BROKEN WIRE DETECTION SIMULATION IN PROTEUS

Where to go next

Once you can read the three Hall signals correctly, the next step is to use them to switch a three-phase bridge. A practical example is driving a BLDC hub motor with a microcontroller. After that, you can look at features such as regenerative braking of a BLDC motor, which also depends on knowing the rotor position and direction.

Frequently asked questions

Why do BLDC motors use three Hall sensors?

Three sensors, spaced apart, give six distinct states per electrical cycle. That is enough for the controller to pick the correct pair of windings for each rotor position and to detect direction.

What happens if the Hall wires are connected in the wrong order?

The controller will energize the wrong phases at the wrong time. The motor may vibrate, run noisily, draw excessive current or refuse to spin. Check the wiring against the controller’s expected order before applying full power, and keep the first tests at low voltage and current.

Can a BLDC motor run without Hall sensors?

Yes. Sensorless controllers estimate position from back-EMF instead. They work well once the motor is turning, but start-up and low-speed operation are usually less smooth than with Hall sensors.

Do Hall outputs need pull-up resistors?

Often they do, because many Hall sensors have open-collector outputs. Check whether your motor or controller already includes pull-ups before adding your own.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works