BLDC Commutation Timing Calculator
Work out the timing of a six-step (trapezoidal) BLDC drive at a given speed: electrical frequency, how long each commutation step lasts, how many PWM periods fit in one, how far a fixed sensing latency shifts the commutation, and how much bus voltage the back-EMF leaves.
Motor
Operating point
Controller
Pole pairs = magnet poles on the rotor / 2. Kv is taken as rpm per volt of line-line peak back-EMF; datasheets vary on that, so treat back-EMF figures as ±15%. Latency covers hall filtering, the interrupt and the time until the new PWM pattern loads.
| Quantity / check | Value | Note |
|---|
Commutation table
Hall state → driven phases, forward rotationHall codes depend on how the sensors are mounted and named; this table uses halls placed at the commutation points, 30° after each back-EMF zero crossing. The open phase is the one whose back-EMF is crossing zero, which is also where sensorless six-step reads it.
Where the numbers bite
PWM periods per step. Within a commutation step the current is regulated by PWM. With fewer than about ten PWM periods per step, the current ripple and the phase of the PWM against the commutation instant start to matter, and at two or three the step is effectively unregulated. High-pole-count motors at speed hit this first.
Latency becomes an angle. A fixed delay between a hall edge and the new switching pattern costs 360°·fe·t electrical degrees. Commutating late lets the outgoing phase's back-EMF fall and adds torque ripple. Drives running fast often add a speed-proportional advance to cancel it.
Back-EMF headroom sets top speed. The bridge can only push current while the bus exceeds the line-line back-EMF plus the I·R drop. As E approaches Vbus, current and torque fall. The no-load speed is roughly Kv·Vbus, and the usable speed under load is lower.
References
- Microchip AN885 — Brushless DC (BLDC) Motor Fundamentals
- Microchip AN857 — Brushless DC Motor Control Made Easy
- J. R. Hendershot, T. J. E. Miller — Design of Brushless Permanent-Magnet Machines, ch. 3 (square-wave drive)