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

FOC Motor Control - Current Sensing

Sailike R&DFOC technical notes 中文原文

In permanent magnet synchronous motor vector control systems, the accuracy and real-time performance of current sensing directly affect control performance. Common current sensing schemes include two- and three-shunt sensing (23 Shunt) and single-shunt sensing (1 Shunt). This chapter describes the principles of the two schemes, the setting of the sampling point and the window constraints, and focuses on the phase-shift strategy of single-shunt sensing at low modulation index, the selection of the sampling point, and the sampling window optimization and maximum output duty cycle calculation based on switching between 5-segment and 7-segment SVPWM.

a. Principles of two- and three-shunt sensing

In two- and three-shunt sensing, shunt resistors are connected in series between the low-side arms of the inverter and the negative terminal of the DC bus, and the phase current is obtained by sensing the current while the low-side arm conducts. When the low-side arm of a phase is on, the current flows through the shunt of that phase, so the phase current can be measured.

Setting of the sampling point : The ideal sampling point is usually placed at the underflow center of the PWM period (that is, the instant when the counter value is 0). At this instant the three phase currents are steady and, as a rule, all three low-side arms are conducting (when the duty cycle is below 100%), so the three phase currents can be sampled at the same time. With two-shunt sensing only two phase currents need to be sampled; the third is calculated from ic=−ia–ib .

The sampling instant must satisfy the following timing constraints:

  • After the PWM signal is updated, the dead time tdead must elapse to ensure that the power devices turn off reliably and that the high- and low-side arms do not shoot through.
  • After the dead time, an additional settling time tsettle is required for the current sensing signal to settle, avoiding switching transient noise.

The effective sampling window is therefore:

tsample=tdead+tsettle

This window must fall inside the interval during which the low-side arm stays on within the PWM period. As the modulation index approaches 1, the low-side conduction time becomes shorter and may no longer meet the sampling window requirement; other sampling strategies or a limit on the maximum modulation index are then required.

b. Single-shunt sensing principle and phase-shift strategy

Single-shunt sensing connects one shunt resistor in the DC bus loop, samples the bus current in different switching states and reconstructs the three phase currents from the switching states. Because the inverter passes through several different switching states within each PWM period, the bus current corresponds to a different phase current in each state. For example:

  • In state 100 (U-phase high-side arm on), the DC bus current is =iu
  • In state 110 (U- and V-phase high-side arms on), the DC bus current is =−iw
  • In state 010 (V-phase high-side arm on), the DC bus current is =iv

The key constraint of single-shunt sensing is that, within each PWM period, the two non-zero active voltage vectors must act for long enough that the sampling window can be placed inside the vector application interval.

Phase-shift strategy at low modulation index (when the voltage is 0) : When the motor is at zero speed or very low speed, the amplitude of the target voltage vector is close to zero and the corresponding active vector application time T1,T2 is extremely short, possibly too short to meet the minimum sampling window requirement. If standard 7-segment SVPWM is still used, no valid current sensing value can then be obtained. To solve this problem, a phase-shift (pulse-offset) strategy is adopted:

  • With the total period kept unchanged, one active vector is shifted forward (turned on earlier) and the other is shifted backward (turned off later), deliberately spreading the application times of the two active vectors apart on the time axis.
  • The zero vector that was originally concentrated together is split, forming an observable sampling window between the two active vectors.
  • This operation introduces some offset and distortion in the current waveform, but it is enough to obtain sufficient current information during start-up and low speed to complete the initial start and low-speed operation of the motor.

Selection of the sampling point : In single-shunt sensing the sampling point is usually placed at the center of the active vector. This is because at the midpoint of the vector application time the current ripple caused by PWM switching is at its average position, so the sampled current is closest to the average phase current during that vector. Taking the 𝐕1 vector as an example, if its application time is T1 , then sampling the DC bus current at T1/2 gives the average phase current corresponding to that vector, and the reconstructed three phase currents have the highest accuracy.

c. Switching between 5-segment and 7-segment SVPWM

The SVPWM modulation scheme directly affects the feasibility of single-shunt sensing and the current harmonic characteristics.

7-segment SVPWM : Within one PWM period the vectors are distributed as 𝐕0→𝐕1→𝐕2→𝐕7→𝐕2→𝐕1→𝐕0 . This scheme has more switching events, good harmonic characteristics and small current ripple, but within each PWM period the active vector is split into two segments, so the single-shunt sampling window width depends on the minimum application time of each segment. At low modulation index (low speed) the active vector application time is long and the sampling window is sufficient; at high modulation index (high speed) the active vector application time shortens and the sampling window may become insufficient.

5-segment SVPWM : Within one PWM period the vectors are distributed as 𝐕0→𝐕1→𝐕2→𝐕2→𝐕1→𝐕0 or a similar form, that is, the zero vectors are placed completely together at the two ends of the period, with a continuous active vector application interval in between. This scheme has fewer switching events and a longer continuous active vector application time, providing a wider sampling window for single-shunt sensing and being particularly suitable for high modulation index operation. Its current harmonics are, however, larger, especially at low speed and light load.

Dynamic 5-7 segment switching strategy : To reconcile the harmonic performance at low speed with the sampling window requirement at high speed, engineering practice commonly adopts a dynamic switching strategy:

  • Low-speed region (for example modulation index m<0.8 ): 7-segment SVPWM is used, exploiting its low harmonics to guarantee the quality of the current waveform.
  • High-speed region (for example modulation index m>0.85 ): the scheme switches to 5-segment SVPWM, extending the active vector application time and ensuring a sufficient single-shunt sampling window.
  • Transition region : Hysteresis is provided to avoid noise introduced by frequent switching.

While increasing the voltage utilization of the duty cycle, this strategy guarantees the feasibility of current sensing over the whole speed range.

d. Calculation of the maximum output duty cycle

Limited by the sampling window constraint, the maximum output duty cycle of the PWM cannot reach 100%. The maximum duty cycle depends on the minimum time window required for sampling, and the constraints differ between modulation schemes.

Constraint under 7-segment SVPWM : In 7-segment SVPWM the active vector is split into two segments, and the minimum application time of each segment must meet the sampling window requirement. Let the sampling window width be Tsample=tdead+tsettle ; then the single-segment application time of each active vector must be greater than or equal to Tsample . As the modulation index approaches 1, the total application time T1+T2 of the active vectors approaches Ts , but the single-segment application time after splitting of each vector is about (T1+T2)/2 . The maximum modulation index is therefore limited by:

T1+T22≥Tsample

Since T1+T2=mTs , substitution gives:

mmax,7=1–2TsampleTs

Constraint under 5-segment SVPWM : In 5-segment SVPWM the zero vectors are concentrated completely at the two ends of the period and the active vectors act continuously, so their total application time T1+T2 is the duration of a single segment. The sampling window requires:

T1+T2≥Tsample

Substituting T1+T2=mTs gives:

mmax,5=1–TsampleTs

It can be seen that the maximum modulation index of 5-segment SVPWM is twice as permissive as that of 7-segment SVPWM, which is the main reason for switching to 5-segment operation in the high-speed region.

Design of the actual maximum duty cycle : Let the PWM frequency be fPWM and the period Ts=1/fPWM . The dead time tdead is determined by the characteristics of the power devices (typically 1 to 3 μs) and the settling time tsettle by the current sensing circuit and the ADC settling time (typically 1 to 2 μs). The minimum sampling window is then Tsample=tdead+tsettle .

For example, with fPWM=10kHz , Ts=100μs and Tsample=4μs :

  • 7-segment: mmax,7=1–0.08=0.92
  • 5-segment: mmax,5=1–0.04=0.96

In practice, because the 5-segment scheme can concentrate the zero vectors completely and thus maximize the sampling window, the maximum duty cycle of the system design can be planned according to the limit of the 5-segment scheme, so as to make full use of the DC bus voltage. The additional margin of the current reconstruction algorithm must still be considered, and the maximum modulation index is usually limited to below 0.95.

e. Key points of engineering implementation

  • Sampling window margin : In actual programming at least 1 to 2 μs of margin should be reserved to cope with temperature variation, device spread and similar factors.
  • ADC trigger instant : Trigger the ADC by a timer compare match or a period overflow, so that the sampling instant falls exactly at the center of the vector.
  • Phase-shift compensation at low modulation index : When the voltage is close to zero, the current offset introduced by the phase-shift strategy can be corrected by software compensation or in combination with the observer.
  • Smooth mode transition : When switching between 5 and 7 segments, the PWM duty cycles must change continuously to avoid a current step.

Conclusion

Current sensing is a fundamental part of sensorless control. Two- and three-shunt sensing has a simple structure and an ample sampling window and suits low- and medium-power applications; single-shunt sensing is low in cost and small in size, but places high demands on the sampling window and on the SVPWM modulation strategy. Solving the sampling difficulty at low modulation index with the phase-shift strategy, placing the sampling point at the center of the vector to obtain the average current, and combining these with dynamic 5-7 segment SVPWM switching yields good harmonic performance in the low-speed region and guarantees the sampling window width in the high-speed region, effectively increasing voltage utilization. The calculation of the maximum output duty cycle must consider the different constraints of the 7-segment and 5-segment schemes together, and system design should follow the limit of the 5-segment scheme, so as to achieve efficient and reliable operation over the whole speed range.

This article was compiled by AI and proofread manually.