National High-Tech Enterprise IEC 61000 EMC · IEC 60730 Class B · RoHS ISO 9001 certified Jinhua, Zhejiang · around 200 staff · 25 in R&D
TECHNICAL NOTE 12 / 22

FOC Motor Control: Phase Voltage Sensing

Sailike R&DFOC technical notes 中文原文

In position-sensorless control of the permanent magnet synchronous motor the back-EMF can only be obtained from the stator voltage. The conventional method multiplies the PWM duty cycle command issued by the controller with the DC bus voltage to obtain the reference voltage, but the actual inverter output is subject to dead-time effect, device voltage drop, switching delay and other nonlinearities, so the actual voltage deviates from the reference voltage. At low speed and very low speed the back-EMF amplitude is small and the signal-to-noise ratio is low, so this deviation degrades the position estimate noticeably. Sensing the phase voltages to obtain the actual voltage feedback is therefore of great importance for low-speed performance. At medium and high speed the back-EMF dominates and the commanded voltage already meets the accuracy required by the observer, so phase voltage sensing can be disabled to simplify the system.

a. Necessity of phase voltage sensing

The ideal phase voltage at the output of a voltage-source inverter is computed from ux=dx·Udc , where dx is the duty cycle command. The actual voltage is affected by the following factors:

  • voltage loss caused by the dead time tdead ;
  • conduction voltage drop of the IGBTs and of the freewheeling diodes;
  • line resistance and parasitic inductance;
  • voltage spikes during switching transients.

These nonlinear factors create an error between the actual voltage and the commanded voltage. At low speed and light load in particular the back-EMF signal-to-noise ratio falls and the voltage error maps directly into an angle estimation error. Direct phase voltage sensing provides the true voltage feedback, removes the model error and improves the low-speed performance and the load capability of sensorless control. When the motor reaches the medium and high speed range the back-EMF amplitude is large enough for the error of the commanded voltage to be negligible relative to it, and the system can switch back to the commanded voltage to avoid additional hardware cost.

b. Option 1: Low-pass filtering

The low-pass filtering method uses a low-pass filter formed by an RC network or an op-amp to remove the high-frequency PWM components and obtain an average voltage proportional to the PWM duty cycle. The filtered signal can be fed directly to the ADC for sampling.

Principle: the phase voltage at the inverter output is a PWM waveform whose average value equals the mean voltage of that phase over one switching period. The cut-off frequency of the low-pass filter must be far below the PWM frequency, typically fc=12πRC≪fPWM , so that the output is the DC component.

Placement of the sensing instant: to make the sensed voltage reflect the average value of the PWM waveform, the sensing instant must be placed in a stable region of the waveform. With triangular carrier modulation the usual choice is the counter overflow or underflow instant, that is, the peak or the trough of the triangular carrier. At that instant all three PWM signals are at the centre of the period, the voltage ripple is smallest and the sensed value is closest to the average voltage of the period. A sensing instant away from the centre may fall on the high level or the low level of the PWM waveform and bias the sensed value from the average.

Insufficient dynamic response: the time constant τ=RC of the low-pass filter determines the speed of the dynamic response. Effective suppression of the PWM ripple usually requires τ≥5Ts , which makes the filter lag noticeably behind a change of the voltage command. Under dynamic conditions such as acceleration, deceleration or a load step the sensed voltage lags the actual voltage, so the observer input voltage is distorted and the dynamic accuracy of the position estimate suffers. At low speed the dynamic requirement is relatively modest and the problem is tolerable; for dynamic applications, lead compensation or a switch to the pulse-width capture method can be considered.

Resolution: the sensing circuit must cover the full voltage range, which makes the resolution poor at low voltage. Voltage sensing is relied upon only at low speed, however, so multi-range voltage division with dynamic resolution can be considered, taking care that a high common-mode voltage limits the usable range.

c. Option 2: Pulse-width capture

The pulse-width capture method does not rely on analog filtering. It detects the rising and falling edges of the phase voltage, measures the high-level time of the PWM waveform precisely and computes the actual average voltage together with the DC bus voltage.

Principle: the phase voltage waveform is a PWM waveform of amplitude Udc and duty cycle dreal=thighTs , and its actual average voltage is uavg=drealUdc . Capturing the high-level duration thigh gives the true duty cycle.

Hardware implementation: the input capture unit of the microcontroller is used. The phase voltage is divided down and shaped into a square wave by a comparator, the instants of the rising and falling edges are captured and the high-level time is computed. This method requires a capture channel for each phase, or multiplexing of the channels.

Zero-current clamping problem: the pulse-width capture method has an inherent defect near current zero crossings. When the phase current approaches zero the inverter output voltage is determined by the freewheeling diode and the high level of the PWM waveform may not form correctly. The effects are:

  • at a current zero crossing the direction of the load current reverses and the conduction state of the freewheeling diode during the dead time changes, so the actual output voltage waveform deviates from the ideal PWM waveform.
  • the square wave signal detected by the comparator may lose pulses or show extra pulses, the captured high-level time is distorted and the computed average voltage is therefore wrong.
  • the problem is especially severe at low speed and light load and directly affects the accuracy of phase voltage sensing.

Engineering countermeasures: the following methods mitigate the zero-current clamping effect:

  • near a current zero crossing, replace the pulse-width capture result by the value computed from the commanded duty cycle and let the commanded voltage carry the transition.
  • inject a small-amplitude high-frequency signal so that the current zero crossing is passed quickly and the current does not remain in the zero-current region for long.
  • use a hysteresis comparator with a suitable detection threshold to avoid frequent triggering near the zero crossing.

d. Comparison and applicability of the two options

Characteristic| Low-pass filtering| Pulse-width capture ---|---|--- Hardware complexity| Low (RC filter and ADC)| Medium (comparator and capture unit) Dynamic response| Limited by the filter time constant, insufficient dynamics| No additional delay, fast response Steady-state accuracy| Affected by resistor and capacitor accuracy and by the sensing instant| Affected by the capture clock accuracy Low-speed performance| Affected by the filter delay, but free of the zero-current problem| Severely affected by zero-current clamping Noise immunity| Relatively strong (analog filtering)| Relatively weak, susceptible to switching noise Applicable scope| Low-speed steady state where dynamic response is not critical| Low and medium speed dynamics, with the zero-current problem handled

e. Key points of the engineering implementation

  • Sensing instant of the low-pass filter: the ADC trigger must be configured at the overflow or underflow instant of the PWM counter, which ensures that the sensed value corresponds to the average value of the PWM period. The filter parameters must balance ripple suppression against dynamic response, and a compensation algorithm can correct the delay where necessary.
  • Calibration of the pulse-width capture: the comparator threshold and the divider resistors must be calibrated to compensate the temperature drift of the devices. For the zero-current clamping problem a current threshold can be set in software, and the commanded voltage or an interpolation is used when |i|<Ith .
  • Synchronous sensing of the DC bus voltage: both options require the DC bus voltage Udc to be sensed in real time in order to compute the actual voltage. DC bus voltage sensing must be synchronous with phase voltage sensing to avoid errors introduced by the time difference.
  • Speed range management: a speed threshold ωth is set, for example 5% to 10% of rated speed; phase voltage sensing is enabled at low speed and the commanded voltage is restored at medium and high speed, which gives a smooth transition.

f. Conclusion

Phase voltage sensing is a key technique for improving the low-speed performance of position-sensorless control, and its core value is to compensate the voltage error caused by inverter nonlinearity and thereby improve the low-speed back-EMF observation accuracy. Low-pass filtering is simple to implement and strong against interference, but the sensing instant must be placed at the PWM centre point and the insufficient dynamic response limits its use in fast-changing operating conditions. Pulse-width capture responds quickly but suffers from zero-current clamping at the current zero crossing. In engineering practice the two options should be selected or combined according to the speed range: phase voltage sensing at low speed, commanded voltage at medium and high speed, so that control accuracy and system complexity are both accommodated.

This article was compiled with AI and proofread manually.