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 14 / 22

FOC Motor Control - Dead-Time Compensation

Sailike R&DFOC technical notes 中文原文

In a voltage-source inverter, a dead time must be inserted at each switching transition to prevent shoot-through of the upper and lower power devices of the same bridge leg. The dead time distorts the output voltage and introduces low-order harmonics, which at low speed and light load can distort the current waveform, increase torque ripple and even affect the stability of sensorless control. This chapter describes the mechanism of the dead-time effect, the principle of compensation and the implementation methods, and focuses on a dead-time compensation scheme based on dq -axis current filtering and linear compensation.

a. Overview of the dead-time effect

Ideally, the upper and lower power devices of a bridge leg conduct complementarily and the output voltage varies linearly with the PWM duty cycle. In practice, however, power devices are not ideal switches and have turn-on and turn-off delays. To prevent shoot-through, a dead time tdead is inserted during which both devices are off and the current freewheels through the antiparallel diodes.

The dead time makes the actual output voltage deviate from the ideal value, and the direction of the deviation depends on the polarity of the load current:

  • When the current flows out of the bridge leg, in the positive direction, it freewheels through the lower diode during the dead time, so the output terminal is pulled down to the negative bus and the actual voltage is lower than the ideal value.
  • When the current flows into the bridge leg, in the negative direction, it freewheels through the upper diode during the dead time, so the output terminal is pulled up to the positive bus and the actual voltage is higher than the ideal value.

In addition, the conduction voltage drops of the power devices and diodes, the line resistance and other factors further affect the accuracy of the output voltage.

b. Compensation principle

Dead-time compensation essentially corrects the PWM duty cycle to cancel the voltage deviation caused by the dead time and the device voltage drops. The goal is to make the actual voltage at the inverter output match the ideal PWM command voltage.

Let d* be the ideal duty cycle, tdead the dead time and Ts the switching period. The voltage deviation caused by the dead time can then be represented as an error voltage Δu that depends on the current polarity. The compensated duty cycle dcomp should satisfy:

dcomp=d*+Δd

where Δd=ΔuUdc , and Udc is the DC bus voltage. The magnitude of Δu is determined by the dead time, the device voltage drops and the current direction.

c. Classification of compensation methods

According to the way the compensation signal is obtained, dead-time compensation falls into the following two categories:

Method| Principle| Advantages| Disadvantages ---|---|---|--- Hardware compensation| Detects the current polarity with a hardware circuit and adjusts the PWM directly| Good real-time performance| Complex circuit and high cost Software feedforward compensation| Computes the compensation from the current polarity, dead time and device parameters and adds it to the PWM duty cycle| Low cost and easy to implement| Depends on the accuracy of current polarity detection

Software feedforward compensation is widely used in engineering practice, and its core is accurate acquisition of the current polarity and precise calculation of the compensation voltage.

d. Compensation voltage calculation

The compensation voltage consists of three parts: the voltage loss caused by the dead time, the conduction voltage drop of the power devices, and the conduction voltage drop of the body diodes together with the line resistance drop.

Voltage loss caused by the dead time: During the dead time the current flows through a freewheeling diode, and the deviation of the output voltage from the ideal value is:

Δudead=tdeadTsUdc·sign(i)

where sign(i) is the current direction, taking +1 for the positive direction and −1 for the negative direction.

Line resistance drop: The current flowing through the power devices, shunt resistors and other paths produces a resistive drop proportional to the current:

ΔuR=R·i

where R is the combined equivalent resistance, including the on-resistance of the power devices, the shunt resistance and the wiring resistance.

Conduction drops of the IGBT and body diode: When a power device conducts, its conduction voltage drop is:

uIGBT=UIGBT0+RIGBT·i

When the current freewheels through a diode, during the dead time or while the power device is off, the diode voltage drop is:

udiode=Udiode0+Rdiode·i

where UIGBT0,Udiode0 is the threshold voltage drop and RIGBT,Rdiode is the on-resistance.

Combining these parts, the total compensation voltage of one bridge leg is:

Δu=tdeadTsUdc·sign(i)+R·i+VIGBT

where VIGBT represents the combined effect of the IGBT and diode threshold voltage drops. In practice, to simplify the calculation, the difference between the threshold drops is merged into a constant ΔU0 and the resistance difference into ΔR , giving the simplified engineering formula:

Δu≈ΔU0·sign(i)+ΔR·i

where ΔU0=tdeadTsUdc+UIGBT0–Udiode0 and ΔR=RIGBT–Rdiode+R . The formula reduces the dead time, the device voltage drops and the line resistance to a constant term that depends on the current polarity and a linear term proportional to the current.

e. An improved dq -axis filtering compensation scheme

Conventional dead-time compensation determines the polarity directly from the sampled three-phase currents. Because the current samples contain high-frequency noise and PWM ripple, the polarity decision is easily mistaken, especially near the current zero crossing, where frequent polarity changes make the compensation jump and introduce additional harmonics.

A compensation scheme based on low-pass filtering of the dq -axis current is therefore proposed, with the following steps:

1\. Three-phase current sampling: Sample ia,ib,ic .

**2\. Coordinate transformation to the dq axis**: The three-phase currents are transformed to the synchronous rotating frame using the current estimated angle θ^ :

[idiq]=23[cosθ^cos(θ^–2π3)cos(θ^+2π3)−sinθ^−sin(θ^–2π3)−sin(θ^+2π3)][iaibic]

3\. Low-pass filtering: id,iq is low-pass filtered to remove the high-frequency components and the PWM ripple, giving the fundamental component id,LPF,iq,LPF . The cutoff frequency is usually set to 2~5 times the fundamental frequency, balancing response speed against filtering. A first-order low-pass filter can be used:

id,LPF(k)=αid(k)+(1–α)id,LPF(k−1)

where α is the filter coefficient.

**4\. Inverse transformation to the ABC axis**: The filtered id,LPF,iq,LPF is transformed by the inverse Park transform to obtain the ABC -axis component ia,base,ib,base,ic,base of the fundamental current:

[ia,baseib,baseic,base]=[cosθ^−sinθ^cos(θ^–2π3)−sin(θ^–2π3)cos(θ^+2π3)−sin(θ^+2π3)][id,LPFiq,LPF]

5\. Polarity determination and compensation calculation: The polarity is determined from the filtered fundamental current ia,base,ib,base,ic,base and the compensation voltage of each phase is computed:

Δux=tdeadTsUdc·sign(ix,base)+R·ix,base+VIGBT,x=a,b,c

6\. Linearization (limit function): To prevent the compensation from jumping as the polarity changes frequently near the current zero crossing, a linear transition region is introduced. A threshold Ithreshold is defined, and when |ix,base|<Ithreshold the compensation decreases linearly to zero:

Δux=(tdeadTsUdc·ix,baseIthreshold)+R·ix,base+VIGBT

This makes the compensation vary smoothly with the current, avoids steps near the zero crossing and markedly improves the current waveform quality at low speed.

7\. Duty cycle correction: The compensation voltage is converted into a duty cycle correction and added to the original PWM duty command:

dcomp,x=dx*+ΔuxUdc

f. Implementation considerations

  • Filter design: The cutoff frequency of the low-pass filter should be adjusted dynamically with the motor fundamental frequency, or a fixed cutoff frequency such as 100~200 Hz may be used, balancing filtering against dynamic response.
  • Threshold selection: Ithreshold is usually set to 3%~10% of the rated current; a value that is too small cannot suppress zero-crossing jitter, and one that is too large weakens the compensation.
  • Dead time measurement: The dead time tdead must be measured on the actual hardware, including the combined effect of the gate drive delay and the turn-off delay of the power devices.
  • Device parameter calibration: UIGBT0,Udiode0,RIGBT,Rdiode can be obtained from the device datasheet or by offline calibration.
  • DC bus voltage compensation: When the bus voltage Udc fluctuates, it must be sampled in real time and the compensation adjusted.

g. Conclusion

Dead-time compensation is a key technique for improving the output accuracy of the inverter and the current waveform quality at low speed. The compensation scheme based on filtering the dq -axis current determines the polarity from the extracted fundamental current and uses a linear transition region to smooth the result, which effectively solves the polarity misjudgement and the compensation jumps near the zero crossing that occur in conventional schemes. The method is simple to implement and insensitive to sampling noise, and it is of good practical value in low-speed sensorless control of permanent magnet synchronous motors.

This article was compiled by AI and proofread manually.