TExcelTAD
Home › Power Electronics & Motor Drives › DC Motor Drives and BLDC Six-Step Commutation

DC Motor Drives and BLDC Six-Step Commutation

A motor on its own is only half a drive. Connect a DC motor straight to a battery and it runs at whatever speed its load allows, draws its stall current at start-up and cannot brake or reverse. A drive puts a converter between the source and the motor: a chopper or H-bridge sets the armature voltage, a current loop protects the motor and power stage, and a speed loop holds the speed against the load. The brushless DC motor (BLDC) goes one step further. Its commutator is replaced by the inverter itself, switched by rotor-position sensors in a fixed six-step pattern. This lesson builds both drives on the converters of the previous sections and on the motor models of DC Motors and BLDC and PMSM motors.

DC drives and the four quadrants

The torque of a DC motor follows its current, T=kiaT = k i_a, and its speed follows the voltage, ω≈(V−iaRa)/k\omega \approx (V - i_a R_a)/k. So a drive controls the motor through voltage and current:

Converter Voltage Current Quadrants Typical use
buck chopper (one switch, freewheel diode) 0…Vdc0 \dots V_{dc} ≥0\ge 0 1: forward motoring fans, pumps, toys
two-switch half bridge 0…Vdc0 \dots V_{dc} both signs 1 and 2: motoring and regenerative braking traction with one direction
H-bridge (The H-Bridge Inverter) −Vdc…Vdc-V_{dc} \dots V_{dc} both signs all four robots, servo axes, e-bikes
thyristor converter from the mains (Phase-Controlled Rectifiers) ±\pm (with two bridges) ≥0\ge 0 per bridge 1 and 4, or all four with two bridges legacy large DC drives, calculation only

Braking returns energy. When the speed command falls, the drive lowers the voltage below the back-EMF and the current reverses. The motor becomes a generator and pushes its kinetic energy into the DC bus. A battery can take it; a diode-fed bus cannot, and its capacitor voltage rises until a braking chopper dumps the energy into a resistor. Every drive needs an answer to "where does the braking energy go?".

Cascaded control. The standard structure has an inner current loop (bandwidth near a tenth of the switching frequency, so the motor never sees more than its rated current), an outer speed loop (ten times slower) whose output is the current reference, limited to the allowed current, and sometimes a position loop outside that. This is the cascade of Cascade, Feedforward and Ratio Control. Limiting the current reference makes start-up a constant-torque ramp, and the speed integrator must not wind up while the limit is active (Anti-Windup).

BLDC six-step commutation

eA, iAeB, iBeC, iC A+B-A+C-B+C- B+A-C+A-C+B- 101100110 010011001 Hall ABC 30150270 electrical angle (deg); solid: back-EMF, dashed: phase current

A BLDC motor has a permanent-magnet rotor and a three-phase stator wound so that each phase's back-EMF is trapezoidal, flat for 120∘120^\circ of each half-cycle. At any instant the drive switches on two phases, the one at its positive flat top (high switch) and the one at its negative flat top (low switch), and leaves the third floating. In those intervals both back-EMFs are flat, so a constant DC current gives a constant torque:

T=eAiA+eBiB+eCiCωm=2E Iωm=k I,k=2Eωm (line-to-line constant)T = \frac{e_A i_A + e_B i_B + e_C i_C}{\omega_m} = \frac{2E\,I}{\omega_m} = k\,I, \qquad k = \frac{2E}{\omega_m}\ \text{(line-to-line constant)}

Three Hall sensors 120∘120^\circ apart (electrical) give a 3-bit code that changes every 60∘60^\circ, and a lookup table turns the code into the switch pattern. Seen from the DC bus, the motor is a DC motor with the line-to-line resistance 2Rph2R_{ph}, inductance 2Lph2L_{ph} and constant kk, and PWM on the high switches sets its voltage exactly as in a chopper.

The commutation is not perfect. At each step the current in the outgoing phase must decay through a diode while the incoming phase's current rises. The rates differ, so the torque dips (or bumps) six times per electrical revolution: commutation torque ripple, typically 10 to 20 %. Sinusoidal PMSM drives with field-oriented control avoid it (Clarke and Park Transforms). Sensorless six-step drives (fans, drones) replace the Halls by detecting the zero crossing of the floating phase's back-EMF and commutating 30∘30^\circ later, which needs some speed before the EMF is measurable, so they start open loop.

Worked example

Given: a 24 V24\ \text{V} BLDC with line-to-line k=0.05 V s/radk = 0.05\ \text{V s/rad} (equal to its torque constant in N m/A), R=0.4 ΩR = 0.4\ \Omega line-to-line, load torque 0.2 N m0.2\ \text{N m}, PWM duty cycle D=0.8D = 0.8.

Find: current, speed and output power; the no-load speed at 24 V24\ \text{V}.

Solve:

I=Tk=0.2 N m0.05 N m/A=4 Aω=DV−IRk=19.2 V−1.6 V0.05 V s/rad=352 rad/s=3361 rpmP=Tω=0.2⋅352=70.4 W,ω0=24 V0.05=480 rad/s=4584 rpm\begin{aligned} I &= \frac{T}{k} = \frac{0.2\ \text{N m}}{0.05\ \text{N m/A}} = 4\ \text{A} \\ \omega &= \frac{D V - I R}{k} = \frac{19.2\ \text{V} - 1.6\ \text{V}}{0.05\ \text{V s/rad}} = 352\ \text{rad/s} = 3361\ \text{rpm} \\ P &= T\omega = 0.2 \cdot 352 = 70.4\ \text{W}, \qquad \omega_0 = \frac{24\ \text{V}}{0.05} = 480\ \text{rad/s} = 4584\ \text{rpm} \end{aligned}

Check: the stall current would be 24/0.4=60 A24/0.4 = 60\ \text{A}, which is why the drive needs current limiting. The code adds a small friction term (B=10−5 N m s/radB = 10^{-5}\ \text{N m s/rad}), so its current is 4.07 A4.07\ \text{A} and its speed 351.4 rad/s351.4\ \text{rad/s}.

python · try it yourself
import numpy as np

# Six-step commutation table: Hall code -> phase driven high (+), low (-) or floating (0)
for sector in range(6):                               # 60-degree sectors from 30 deg electrical
    th = 60 + 60 * sector                             # sector centre
    hall = "".join(str(int(np.sin(np.radians(th - 30 - 120 * k)) > 0)) for k in range(3))
    emf = [np.sin(np.radians(th - 120 * k)) for k in range(3)]
    drive = ["0"] * 3
    drive[int(np.argmax(emf))], drive[int(np.argmin(emf))] = "+", "-"
    print(f"{th-30:3d}-{th+30:3d} deg: Hall ABC = {hall}, drive A B C = {' '.join(drive)}")

# BLDC seen from the bus: line-line constant k, resistance R, inductance L, inertia J, friction B
V, k, R, L, J, B = 24.0, 0.05, 0.4, 0.4e-3, 5e-5, 1e-5
print(f"\nno-load speed at 24 V: {V/k:.0f} rad/s = {V/k*60/(2*np.pi):.0f} rpm, stall current {V/R:.0f} A")
for D, TL in ((0.8, 0.2), (0.5, 0.2), (0.8, 0.0)):
    w = (D * V - TL / k * R) / k
    for _ in range(5):                                # include the friction torque B*w
        I = (TL + B * w) / k
        w = (D * V - I * R) / k
    print(f"D = {D}, load {TL} N m: I = {I:.3f} A, speed = {w:.1f} rad/s ({w*60/(2*np.pi):.0f} rpm), "
          f"Pout = {TL*w:.1f} W")

# cascaded drive: PI speed loop -> current limit -> PI current loop -> duty (averaged one-quadrant chopper)
dt, wref, Imax, TL = 5e-6, 300.0, 6.0, 0.2
Kps, Kis, Kpc, Kic = 0.2, 4.0, 2.0, 4000.0
i = w = isum = csum = 0.0
peak_i, t_reach = 0.0, None
for n in range(int(0.3 / dt)):
    e = wref - w
    iref = Kps * e + isum
    if abs(iref) < Imax:                              # anti-windup: integrate only when not limited
        isum += Kis * e * dt
    iref = float(np.clip(iref, -Imax, Imax))
    ec = iref - i
    v = Kpc * ec + csum
    if 0.0 < v < V:
        csum += Kic * ec * dt
    v = float(np.clip(v, 0.0, V))                     # bridge voltage 0..V
    i += (v - R * i - k * w) / L * dt
    w += (k * i - B * w - TL) / J * dt
    peak_i = max(peak_i, i)
    if t_reach is None and w >= 0.98 * wref:
        t_reach = n * dt
print(f"\nstart-up to {wref:.0f} rad/s, {Imax:.0f} A limit, {TL} N m load: peak current {peak_i:.2f} A, "
      f"98 % speed after {t_reach*1e3:.1f} ms, final {w:.1f} rad/s at {i:.3f} A, duty {v/V:.3f}")
 30- 90 deg: Hall ABC = 101, drive A B C = + - 0
 90-150 deg: Hall ABC = 100, drive A B C = + 0 -
150-210 deg: Hall ABC = 110, drive A B C = 0 + -
210-270 deg: Hall ABC = 010, drive A B C = - + 0
270-330 deg: Hall ABC = 011, drive A B C = - 0 +
330-390 deg: Hall ABC = 001, drive A B C = 0 - +

no-load speed at 24 V: 480 rad/s = 4584 rpm, stall current 60 A
D = 0.8, load 0.2 N m: I = 4.070 A, speed = 351.4 rad/s (3356 rpm), Pout = 70.3 W
D = 0.5, load 0.2 N m: I = 4.042 A, speed = 207.7 rad/s (1983 rpm), Pout = 41.5 W
D = 0.8, load 0.0 N m: I = 0.077 A, speed = 383.4 rad/s (3661 rpm), Pout = 0.0 W

start-up to 300 rad/s, 6 A limit, 0.2 N m load: peak current 6.40 A, 98 % speed after 196.2 ms, final 299.4 rad/s at 4.073 A, duty 0.692

The table reproduces the figure: each phase conducts for 120∘120^\circ, and the Hall code changes at every 60∘60^\circ boundary. In the start-up the current loop holds the current near the 6 A6\ \text{A} limit while the motor accelerates (the peak of 6.40 A6.40\ \text{A} is the current loop's own overshoot). The motor reaches 98 % of 300 rad/s300\ \text{rad/s} after 196 ms196\ \text{ms}, then the speed loop takes over and settles at the load current of about 4.07 A4.07\ \text{A} with a duty cycle of 0.692.

Interactive: tuning the speed loop

With a fast inner current loop, the speed loop sees a plant close to a first-order mechanical lag. Add a speed-measurement filter and you get two poles. The lab takes a larger drive with a mechanical time constant of 0.5 s0.5\ \text{s} and a 50 ms50\ \text{ms} filter (gain normalised to 1) and a PI speed controller.

r = 1+C(s): Kp 5, Ki 10, Kd 0P(s) = 1/((0.5s+1)(0.05s+1))y-T(s) = (5.000 s + 10.000) / (0.025 s^3 + 0.550 s^2 + 6.000 s + 10.000)closed-loop poles: -2.00, -10.00+j10.00, -10.00-j10.000.00.51.00200 ms400 ms600 msty(t)t_s 422 ms+4.3 %y(t)setpoint10-90 % rise

With Kp=5K_p = 5 and Ki=10 s−1K_i = 10\ \text{s}^{-1} the lab shows 4.32 % overshoot, a 151.9 ms151.9\ \text{ms} rise time and 421.6 ms421.6\ \text{ms} settling. Lower KpK_p to 2: the overshoot jumps to 18.87 %. Proportional gain adds damping in a speed loop, while integral gain removes the steady-state error at the cost of damping.

Guided lab: a small BLDC on an evaluation board

Hand calculation. Measure the line-to-line resistance with a low-current ohmmeter. Spin the motor by hand (or with a drill at a known speed) and scope a line-to-line voltage to get kk from the flat-top EMF and the electrical frequency (divide by the pole pairs). Predict the no-load speed and the current at a known load.

Simulation. Enter your kk, RR, JJ in the Python cell, set the current limit to your board's, and check the start-up time.

What you would measure. A BLDC evaluation board at 24 V or less (from a current-limited supply, limit at the board's rating) with its Hall-sensor six-step firmware and a small motor clamped to the bench. Scope the three Hall signals and one phase voltage: each Hall edge should line up with a commutation point, 30∘30^\circ electrical after a back-EMF zero crossing (as in the figure), and the phase current (current probe) should look like the dashed blocks of the figure, with dips at each commutation. Speed against duty cycle should be close to a straight line through ω0D\omega_0 D minus the IR/kIR/k droop, within 5 %.

Hazards and safe setup. At most 24 V24\ \text{V}, current-limited. Clamp the motor and guard the shaft; nothing loose on it. A motor spun by hand or by its load generates voltage at the board terminals, and braking it pushes energy into the supply: use a supply that can sink current, or a bus capacitor with a voltage clamp. Motor drives on the mains (industrial DC drives, VFD-fed motors) are calculation and simulation only.

Pitfalls

  • Starting without a current limit. The stall current of even a small motor is tens of amperes.
  • Wrong Hall-to-phase mapping. The motor vibrates, runs rough or backwards, and draws high current; check the table at low current first.
  • Ignoring regeneration. A decelerating drive can push a diode-fed bus over its capacitor rating.
  • Expecting smooth torque from six-step. Use sinusoidal FOC for servo-grade smoothness.

Practice

  1. A BLDC has k=0.08 V s/radk = 0.08\ \text{V s/rad} and runs at 3000 rpm3000\ \text{rpm}. What flat-top line-to-line back-EMF does it produce?
  2. The worked-example motor holds 0.1 N m0.1\ \text{N m} at D=0.6D = 0.6. Find its speed (ignore friction).
  3. In which quadrant is a drive whose motor turns forward while its current is negative?
Answer
  1. ω=314.2 rad/s\omega = 314.2\ \text{rad/s}, ELL=0.08⋅314.2=25.1 VE_{LL} = 0.08 \cdot 314.2 = 25.1\ \text{V}.
  2. I=2 AI = 2\ \text{A}, ω=(14.4−0.8)/0.05=272 rad/s\omega = (14.4 - 0.8)/0.05 = 272\ \text{rad/s} (2597 rpm2597\ \text{rpm}).
  3. Quadrant 2: forward regenerative braking; energy flows from the motor to the bus.

Test yourself

In six-step BLDC commutation, how many phases conduct at a time?

  1. one
  2. two: one from the high side and one to the low side, the third floating
  3. all three
  4. it depends on the duty cycle

Why is the speed loop of a drive wrapped around a current loop?

  1. To save a sensor
  2. The current loop limits the current (and so the torque) and makes the speed loop's plant simpler and faster to tune
  3. To reduce the switching frequency
  4. Because speed cannot be measured

A motor driven by a diode-rectifier-fed DC bus is decelerated quickly. What happens to the bus voltage without a braking chopper?

  1. it falls
  2. it rises, because the motor's kinetic energy flows back into the bus capacitor
  3. it stays constant
  4. it reverses

A sensorless six-step drive detects…

  1. the motor temperature
  2. the zero crossing of the floating phase's back-EMF, then commutates 30 electrical degrees later
  3. the DC bus current only
  4. the PWM frequency