S12 · Lesson 43 · Sensorless control
Finding a rotor's position from the motor's own voltages and currents
Field-oriented control (lessons 41 and 42) needs the rotor's angle, and lesson 32's brushless motors need it to know when to switch phases. An encoder or Hall sensors provide it, but they cost money, add wires, and fail in hot or dirty places: drones, compressors, washing machines and fans mostly run sensorless, reading the rotor's position from the electrical behavior of the motor itself. Two signals carry it: the back-EMF, whose phase follows the rotor and whose size is proportional to speed, and the magnetic saliency of some rotors, which can be probed with a small injected signal even at standstill. Each has a speed range where it works and a reason it fails outside it.
- The relative error in a back-EMF speed estimate caused by a 10% error in the assumed winding resistance, against speed, for a motor with = 0.5 Ω carrying 10 A and a flux linkage of 0.05 V·s.
- The resistance error makes a fixed voltage error, ; the back-EMF grows with speed, so the relative error falls as . Below a few percent of rated speed, the estimate is useless.
Predict
A brushless motor with 4 pole pairs spins at 3000 rpm in six-step commutation. How often must the controller commutate?
The electrical frequency is = 200 Hz, a 5 ms electrical period, and six-step drive switches every 60 electrical degrees: ms = 833 µs. A sensorless controller detects each floating phase's back-EMF zero crossing and commutates 30° later, 417 µs after it.
Name it
Back-EMF methods
A spinning permanent-magnet rotor induces a back-EMF (electrical speed ω, flux linkage ) whose phase marks the rotor's position.
- Six-step BLDC: one phase floats in each 60° step; its terminal voltage crosses the midpoint (the back-EMF's zero) halfway through, 30° before the next commutation. Detect the crossing, wait 30°, commutate.
- Observers for FOC: estimate the back-EMF vector from the model, , and take its angle; or run a flux observer, . A phase-locked loop on the estimate gives a smooth angle and speed.
All back-EMF methods fail at low speed: the EMF shrinks to zero, while errors in , voltage measurement and inverter dead time stay fixed. A motor starts open-loop, ramping a rotating field until the speed is high enough for the estimator.
Saliency methods
An interior-PM or reluctance rotor has different inductances along its d and q axes (, typically). Injecting a high-frequency voltage at gives currents of size that depend on the rotor's angle through the varying inductance. Demodulating them reveals the position even at standstill, at the cost of audible noise, extra loss and a sign ambiguity (north and south look alike) that a magnetic-polarity test resolves.
Speed and position
Electrical frequency for rpm and pole pairs; mechanical angle is electrical angle divided by .
Worked example
A drone motor with 7 pole pairs runs at 12 000 rpm. Find the electrical frequency, the time between six-step commutations, and the delay from a zero crossing to the next commutation.
Show the solution
- Electrical frequency. a period of 714 µs.
- Time between commutations. Commutations come every 60°: 119 µs.
- Zero crossing to commutation. That's 30°: 59.5 µs.
- Timing resolution. At those intervals the controller's comparator and timer resolution matter: a 10 µs error is 5° of commutation timing.
Answer the electrical frequency is 1400 Hz, commutations come every 119 µs, and the next commutation follows a zero crossing by 59.5 µs.
Worked example
A PMSM has = 0.05 V·s and = 0.5 Ω. The controller's resistance estimate is 10% off while 10 A flows. What speed error results at 100 rad/s and at 10 rad/s (electrical)?
Show the solution
- Voltage error. A 10% error in 0.5 Ω, with 10 A flowing, gives
- At 100 rad/s. The EMF is = 5 V, so the error is 10%.
- At 10 rad/s. The EMF is 0.5 V, equal to the error: 100%, and the estimate is meaningless.
- What drives do about it. Hence the open-loop start, and why resistance is often estimated online as the motor warms.
Answer a 10% speed error at 100 rad/s, and 100% at 10 rad/s.
Worked example
An interior-PM motor has = 2 mH and = 5 mH. A 10 V, 1 kHz injection: what current amplitudes result along each axis?
Show the solution
- Current along d. With ,
- Current along q. The same with 5 mH gives 0.32 A.
- Reading the position. As the rotor turns, the current response swings between these, at twice the electrical angle; the controller demodulates that variation into a position estimate.
- Surface-mount motors. With (a surface-mount PM motor) there's no variation, and the method doesn't work.
Answer 0.80 A along d and 0.32 A along q.
Check
A 2-pole-pair motor spins at 3000 rpm. What is its electrical frequency?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
In six-step drive, how often does a 2-pole-pair motor at 3000 rpm commutate?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
A PMSM's flux linkage is 0.05 V·s. Its resistance estimate (0.5 Ω) is 5% off with 20 A flowing. What percentage speed error results at 10 rad/s electrical?
Check
An IPM motor ( = 2 mH, = 3 mH) receives a 10 V high-frequency injection at 2 kHz.
(a)
What current flows along the d axis?
Write units the way you normally would: 1.5 A, 1500 mA and 0.0015 kA are the same answer.
(b)
What is the ratio of the d-axis current to the q-axis current?
Check
A back-EMF estimator is usable once the resistive voltage 0.3 Ω × 15 A is at most 10% of the EMF. Above what electrical speed is that, for a flux linkage of 0.02 V·s?
Write units the way you normally would: 1.5 rad/s and 1500 mrad/s are the same answer.
Check
Why can't a surface-mount permanent-magnet motor be tracked at standstill by high-frequency injection?
Check
Detect zero crossings. A floating phase's back-EMF is with = 1 V, from rpm = 600 and p = 2 pole pairs, sampled at 100 kHz for one second, plus Gaussian noise of RMS noise = 0.1 V (numpy.random.default_rng(1)). Detect rising zero crossings with hysteresis: a crossing occurs when the signal rises above +0.5 V after having been below −0.5 V. Set fe_est, the electrical frequency from the mean interval between detected crossings, and n_cross, the number detected.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
A sensorless ceiling-fan controller sometimes fails to start under load, spinning backward briefly or stalling, though it runs perfectly once moving. Explain why, and how the starting sequence handles it.
Back-EMF sensorless control needs the rotor to be turning: at standstill there's no EMF to detect, and at very low speed it's buried under resistive drops, noise and inverter dead-time errors. The controller therefore starts open-loop: it aligns the rotor by energizing one phase, then ramps a rotating field at increasing frequency, hoping the rotor follows, and switches to closed-loop sensorless control once the EMF is large enough. Under load, or with the wrong alignment, the rotor may lag too far behind the ramp and slip, stall or jerk backward, and the switchover happens with a wrong position estimate. Fixes include a longer alignment, a slower ramp with more current, detecting the initial position by inductance probing (if there's any saliency), or adding a cheap Hall sensor for starting only.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.