Direct calculation: from the voltage equation of the permanent magnet synchronous motor (PMSM), , in which (or ), the rotor position can be obtained directly from the back-EMF by an arctangent operation. The equation contains the differential operator , however, and differentiation strongly amplifies high-frequency noise, so the computed angle is easily disturbed. In addition, an error in any parameter of the equation, such as resistance, inductance or flux linkage, shifts the estimated angle.
Open-loop observer: a model with the same input, structure and parameters as the real system is built from the mathematical model of the motor. Provided the model parameters are exact, the model output agrees with that of the real system, and signals that are not measured directly in the real system can be obtained. The structure remains open-loop in nature, however, so any parameter inaccuracy makes the estimate drift gradually away from the true value; the method lacks robustness, meaning that it is not sturdy and reliable.
Closed-loop Luenberger observer: a closed-loop correction mechanism is added to the open-loop observer. One or more observer outputs are compared with the corresponding outputs of the real system, and the difference is fed back to the observer input through a feedback matrix, which forces the observer outputs to track those of the real system. When the observer outputs agree with the outputs of the real system, the internal state of the observer can be regarded as equal to the state of the real system, and the observer state then provides the signals that are difficult to measure directly. Because the closed-loop correction is present, the observer is strongly robust against parameter variation and disturbance.
In the stationary frame the state equation of the permanent magnet synchronous motor is:
Here is the stator current, the stator voltage, the back-EMF, the stator resistance, the inductance and the electrical angular speed.
Based on this system equation the Luenberger observer is constructed as follows:
With a suitable choice of the feedback gain the observer state converges quickly to the true state, which yields the back-EMF estimate .
With the back-EMF produced by the observer, the rotor angle follows directly from an arctangent operation:
The rotor speed is computed from . The observed back-EMF, however, usually contains high-frequency noise and distortion, and a direct arctangent and division easily causes angle jumps that affect the stability of the system.
The back-EMF is therefore fed to a quadrature phase-locked loop (QPLL). The loop adjusts its output phase in closed loop so that it tracks the input phase, and the output speed is integrated to give the rotor angle. This structure suppresses high-frequency glitches in the angle estimate effectively and improves the smoothness and continuity of the angle and speed signals. The structure of the quadrature phase-locked loop is shown in the figure.
The state equations of the Luenberger observer show that the axes are cross-coupled through the speed , so the choice of the feedback gain must serve the dynamics of both axes and an optimal match is difficult to achieve. The sliding-mode observer adopts a variable-structure control strategy: a sliding surface is defined and a high-frequency switching control forces the system state to move along that surface, which gives high robustness against parameter variation and external disturbance. The behaviour resembles a driver correcting the steering wheel at a very high rate on a narrow bridge: as soon as the vehicle drifts left the wheel is turned fully right, and as soon as it drifts right the wheel is turned fully left, so that the vehicle keeps to the intended path provided the correction is fast enough. The principle of sliding-mode variable-structure control is shown in the figure.
The sliding-mode observer is constructed as follows:
Here is the sliding-mode control function, usually taken as:
Here is the switching gain and the sign function. The discontinuous switching of the sign function introduces high-frequency chattering into the back-EMF estimate. To eliminate the chattering, the sliding-mode output is usually low-pass filtered:
Here is the cut-off frequency of the low-pass filter. Low-pass filtering introduces a phase delay; with , that is, with the cut-off frequency equal to the rotor frequency, the phase delay is about . To obtain an accurate rotor position, the filtered back-EMF can be resolved by a phase-locked loop and a fixed phase lag compensated in the output angle, which gives a high-precision rotor position estimate.