Motor Control Design Guide: Brushed, BLDC, Stepper, Servo, H-Bridge & PID Control

Motor Control Design Guide

Brushed, BLDC, Stepper, Servo, H-Bridge & PID Control

Motor Control

Motor Control Design Guide

The complete engineering reference for Brushed DC, BLDC, Stepper, and Servo motor control. Covers H-Bridge topologies, PWM strategies, PID tuning, BEMF sensing, and torque-speed analysis — with worked examples you can apply immediately.

Category: Motor Control13 min readUpdated July 2026
Motor Control Calculator Suite — Coming Soon
Interactive motor control calculators are in development: PWM duty-to-voltage, PID tuner, torque estimator, BLDC commutation timer. They will live at /calculators/. Bookmark this page.

Explore Calculators

Quick Answer: How Does Motor Control Work?

Motor control regulates speed, torque, position, and direction by manipulating voltage, current, and commutation timing:

  • Brushed DC — simplest. DC voltage; speed ≈ proportional to voltage. PWM for variable speed. Used in power tools, toys, automotive.
  • BLDC — electronic commutation via 6-step or FOC. Needs rotor feedback (Hall or sensorless BEMF). Used in drones, e-bikes, HVAC.
  • Stepper — discrete angular steps, open-loop positioning. Used in 3D printers, CNC, medical pumps.
  • Servo — closed-loop with encoder + PID. Used in robotics, industrial automation.

Universal building blocks: power stage (H-Bridge or 3-phase inverter), modulation (PWM, SVPWM), feedback (current sense, encoder, BEMF), control loop (PID or cascaded PI).

Core Formulas, Worked Example & Parameter Table

Fundamental Motor Equations

T = Kt × I … (1) Torque [N·m]
E = Ke × ω … (2) Back-EMF [V]
V = I × R + E … (3) Terminal voltage
ω = (V − I × R) / Ke … (4) Speed under load; no-load: ω₀ ≈ V / Ke
Pmech = T × ω … (5) Mechanical power [W]
η = Pmech / (V × I) … (6) Efficiency
Note: In SI, Kt ≈ Ke when Ke in V·s/rad.

PWM Speed Control (Brushed DC)

Vavg = D × Vbus … (7) Avg voltage
ω ≈ (D × Vbus − I × R) / Ke … (8) Speed under load
Pdiss = I² × Rds(on) × 2 … (9) H-Bridge conduction loss

BLDC Commutation Timing (6-Step)

felec = (p/2) × (RPM/60) … (10) Electrical freq, p = poles
Tcomm = 60 / (RPM × 6) … (11) Time between commutations [s]

Stepper Step Angle

θstep = 360° / (Nr × Nph) … (12) Nr = rotor teeth
RPM = (θstep × fpulse × 60) / 360 … (13) Speed from pulse rate
Common: 1.8° (200 steps/rev).

PID Control Law (Discrete)

u[k] = Kp·e[k] + Ki·Ts·Σe[i] + (Kd/Ts)·(e[k]−e[k−1]) … (14)

Worked Example: 24V BLDC Ceiling Fan

Specs: Ke=0.012 V/rpm, Rphase=0.8 Ω, 8 poles, target 1200 RPM, load 0.15 N·m.

Step 1 — Required current:

Ke in SI: 0.012 × 60/(2π) = 0.1146 V·s/rad → Kt ≈ 0.1146 N·m/A
I = T / Kt = 0.15 / 0.1146 ≈ 1.31 A

Step 2 — Bus voltage (trapezoidal):

ω = 1200 × 2π/60 = 125.66 rad/s
E = Ke × ω = 0.1146 × 125.66 ≈ 14.4 V (L-N BEMF peak)
Vbus ≥ 2×(E + I×R) = 2×(14.4 + 1.31×0.8) = 30.9 V → 36 V bus recommended
For 24 V bus, use FOC+SVPWM (~1.15× margin).

Step 3 — PWM frequency:

felec = (8/2)×(1200/60) = 80 Hz
Rule: fPWM ≥ 20×felec → ≥ 1600 Hz → choose 20 kHz (above audible).

Step 4 — Loss (Rds(on)=15 mΩ @ 100°C):

Pcond = 1.31²×0.015×2 ≈ 0.051 W
Psw ≈ 0.5×36×1.31×50e-9×20000 ≈ 0.024 W/FET → negligible

Key Parameter Reference

Parameter Symbol Typical Range Motor Type Notes
Torque constant Kt 0.01–2 N·m/A All Larger for high-torque low-speed
Voltage constant Ke 0.001–0.2 V/rpm BLDC/Brushed Ke≈Kt in SI
Phase resistance R 0.1–50 Ω All Low R = efficient but high stall current
PWM frequency fPWM 8–50 kHz Brushed/BLDC >16 kHz avoids audible whine
Step angle θstep 0.9°–7.5° Stepper 1.8° (200 steps/rev) most common
PID Kp 0.01–10 Servo/BLDC Start low, increase till oscillation, halve
PID Ki 0.1–100 s⁻¹ Servo/BLDC Eliminates steady-state error
PID Kd 0.0001–0.1 s Servo/BLDC Damps overshoot; use LPF
Current loop BW 500–5000 Hz BLDC(FOC) ~10× slower than PWM
Speed loop BW 50–500 Hz BLDC(FOC) 5–10× slower than current loop

Common Mistakes in Motor Control Design

1. Forgetting Flyback / Recirculation Diodes

Motors are inductive. Turning off a MOSFET without a recirculation path causes V = L×dI/dt spikes that destroy switches instantly. Verify body diodes or external Schottkys are in place. In H-Bridge ICs this is usually built-in — but always check the datasheet.

2. PWM Frequency Too Low

Many beginners use 500 Hz “because the example code did.” At audio frequencies, windings act as loudspeakers — irritating whine. Always use fPWM ≥ 16 kHz (brushed) / ≥ 20 kHz (BLDC). Bonus: higher PWM reduces current and torque ripple.

3. Ignoring Dead Time in Half-Bridges

In any half-bridge (two FETs between Vbus and GND), both FETs must never conduct simultaneously — this is shoot-through, a dead short that destroys the FETs. Insert 100–500 ns dead time. Most modern gate drivers (TI DRV, Infineon EiceDRIVER) provide programmable dead time.

4. Sensorless BLDC Startup Without Alignment

BEMF sensing only works when the rotor is spinning. At standstill there is zero BEMF — applying commutation blindly causes vibration or reverse rotation. Fix: alignment stage — energize two phases with limited current to lock rotor, then ramp open-loop before switching to closed-loop.

5. Integral Windup Without Anti-Windup

When the motor saturates (hits current/speed limit), the integrator keeps accumulating error while output is clamped. When the setpoint becomes reachable, the wound-up integrator causes massive overshoot. Always implement clamping anti-windup: freeze or back-calculate the integrator during saturation.

6. Overlooking Fast Over-Current Protection

Stall current = V/R can be 5–20× rated current. Without cycle-by-cycle protection, the power stage fails in microseconds. Use low-side shunt + op-amp + comparator, or dedicated current-sense amps (INA, ACS). Set hardware trip at 1.5–2× rated peak current.

7. Bad DC Bus Capacitor Placement

The DC bus capacitor supplies high-frequency current pulses that wiring cannot deliver. Place a low-ESR electrolytic (100–1000 µF) + ceramic (0.1–1 µF) as close as possible to MOSFET drains. Minimize the Vbus→HS FET→LS FET→GND loop area to cut parasitic inductance and EMI.

Frequently Asked Questions

Q1: Trapezoidal (6-step) vs. sinusoidal (FOC) BLDC — which to use?
Trapezoidal energizes two phases at a time in six steps — simple but ~13% torque ripple per commutation. FOC drives all three phases with sinusoidal currents synced to rotor angle — smooth torque. Use trapezoidal for fans/pumps; FOC for servo drives and e-bikes. FOC needs Cortex-M4 or better.
Q2: Brushed DC vs. BLDC — how do I choose?
Brushed DC wins on simplicity and upfront cost (two wires, no MCU for basic control). BLDC wins on efficiency (+5–15%), lifetime (no brush wear), EMI (no arcing), and power density. Rule: if runtime >2000 h or efficiency >85% needed, go BLDC. Under 50 W hobby projects: brushed is fine. Battery portables almost always justify BLDC.
Q3: What causes stepper motors to lose steps?
Load torque exceeds pull-out torque at current speed. Causes: accelerating too fast, insufficient current, mid-range resonance, or mechanical binding. Fixes: acceleration ramping, increase current, add microstepping (reduces resonance), or switch to closed-loop stepper. If all else fails, oversize by 30–50%.
Q4: How does BEMF sensing work — and when doesn’t it?
BEMF is voltage induced in stator windings by rotor magnets — proportional to speed. In 6-step BLDC, the floating phase’s BEMF zero-crossing reveals rotor position. BEMF sensing fails at standstill (zero speed = zero BEMF), so sensorless drives need open-loop startup. Reliable above ~5–10% rated speed.
Q5: How do I tune PID for a motor speed loop?
Zero all gains. Increase Kp until constant-amplitude oscillation (ultimate gain Ku), measure period Tu. Ziegler-Nichols: Kp=0.6Ku, Ki=2Kp/Tu, Kd=KpTu/8. In practice: Ki=Kpi with τi=10–50 ms; omit Kd or keep very small due to encoder noise. Tune inner current loop first, then outer speed loop.
Q6: Why does my H-Bridge get hot at moderate current?
Three culprits: (1) Conduction loss — I²R; check Rds(on) at your actual VGS (it rises sharply below 10 V). (2) Switching loss — weak gate drive causes slow transitions; use a gate driver with 1–2 A peak drive. (3) Shoot-through from insufficient dead time — verify with a DC bus current probe.
Q7: What is the torque-speed relationship for a DC motor?
Linear for PMDC motors. Stall torque: Tstall=V×Kt/R (max). As speed rises, BEMF subtracts from terminal voltage, reducing current and torque. No-load speed ω₀=V/Ke — torque ≈ zero. Max mechanical power at half stall torque and half no-load speed. Operate in the lower 30–50% of curve for continuous duty.
Q8: How do I select a gate driver for my MOSFET bridge?
Key specs: peak drive current (2–4 A for >100 W), high-side method (bootstrap up to ~100 V, isolated beyond), programmable dead time matching your FETs’ td(off), UVLO, desat detection for IGBT/SiC. Popular: TI DRV8300/DRV8323, Infineon 2EDL/6EDL.
Motor ControlThis article belongs to the Motor Control pillar series (Category ID: 11). Explore the full series for deep dives on Brushed DC, BLDC, Stepper, and Servo drive design.

© 2026 InnovChip · tools.innovchip.net · Motor Control Design Guide

发表评论