Professional Documents
Culture Documents
01299a PDF
01299a PDF
01299a PDF
Authors: Daniel Torres and Jorge Zambada These applications are a perfect target for using
Microchip Technology Inc. sensorless techniques in which the motor position can
be estimated using the information provided by the
INTRODUCTION currents flowing through the motor coils. There are two
popular approaches to this sensing technique: the
A large number of motor control applications are dual-shunt resistor and the single-shunt resistor.
consistently and continuously looking for methods to The dual-shunt resistor technique utilizes the
improve efficiency while reducing system cost. These information contained in the current flowing through
are the two main factors that are driving the efforts to two motor coils in order to estimate the motor position.
improve existing motor control techniques, such as The single-shunt resistor technique utilizes only the
trapezoidal control, scalar control and Field-Oriented information contained in the current flowing through the
Control (FOC). DC bus to reconstruct the three-phase currents, and
FOC has become more popular in recent years due to then estimate motor position.
the fact that the cost required to implement this In this application note, the single-shunt approach is
technique is no longer a constraint. The available discussed. For information on the dual-shunt resistor
technology and manufacturing process now make it approach, please refer to the application note, AN1078
possible to implement this control technique in a 16-bit “Sensorless Field Oriented Control of PMSM Motors”.
fixed-point machine such as the dsPIC® Digital Signal
Controller (DSC).
CURRENT MEASUREMENT
Efficiency is another reason that has allowed FOC to
gain ground over scalar and trapezoidal control The information contained in the current flowing
techniques on low-cost and mid-cost applications. It is through the motor coils allows a motor control algorithm
also well suited in applications in which hard to operate the motor in a region where the motor
requirements are low noise, low torque ripple and good produces the maximum torque, or to operate the motor
torque control over a vast speed range. at certain performance, or even to be able to
approximate or estimate internal motor variables such
Field-oriented control can be implemented using
as position.
position sensors such as encoders, resolvers or Hall
sensors. However, not all motor control applications Three-phase AC Induction Motors (ACIMs),
require such granularity given by a resolver or encoder; Permanent Magnet Synchronous Motors (PMSMs) and
and, in many cases, they do not require control at zero Brushless Direct Current (BLDC) motors in particular
speed. use a three-phase inverter as the topology of
preference. This topology, which is shown in Figure 1,
allows individual control of the energy applied to each
coil, which enables the motor to be efficiently operated.
Three-Phase AC 3-Phase
Motor
3~
VBUS
3~
VBUS
IC
IB IBUS
IA
I A + I B + IC = 0
100%
PWM1
50%
PWM2
PWM3
0%
SVM II I III IV V VI
Sector
+VBUS
0V VA - VB
VB - VC
VC - VA
-VBUS
SVM II I III IV V VI
Sector
100%
PWM1
50% PWM2
PWM3
0%
PWM1H
PWM1L
PWM2H
PWM2L
PWM3H
PWM3L
PWM
1 2 3 4 5 6 7 8
CYCLE
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T2 T1 T0
EQUATION 2: IC CALCULATION
IBUS = -IB
IC = -IB - IA
During T2, PWM2L and PWM3L are active, and
PWM1H is active. This combination gives us current IA
flowing through the single-shunt as shown in Figure 12. A truth table (Table 1) was created to help illustrate
what the measured current represents for all possible
combinations of the electronic switches. First, let us
name each electronic switch as shown in Figure 14.
PWM1L
PWM2L
PWM3L
T0 T1 T3 T1 T0
T2 = 0
PWM1
50% PWM2
PWM3
0%
PWM1H
PWM1L
PWM2H
PWM2L
PWM3H
PWM3L
PWM 1 2 3 4 5 6 7 8
CYCLE
FIGURE 17: SAMPLING TIME WINDOW FOR SIMILAR DUTY CYCLES DURING LOW-
MODULATION INDEX
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T2 T1 T0
PWM1H
PWM1L
PWM2H
PWM2L
PWM3H
PWM3L
T0 T1 T2 T3 T2 T1 T0
Dead time also affects the time window where single- FIGURE 19: HARDWARE UTILIZED FOR
shunt current measurements are done. The minimum MEASURING CURRENT
time window to measure current through single-shunt USING A SINGLE-SHUNT
depends on the following parameters: RESISTOR
• PWM Frequency:
This is because the higher the PWM frequency is, AVDD
the smaller all of these time window values are.
IBUS
• Dead Time Required by the System: - Sense
As shown in the previous figure, dead time directly
IBUS
T3
AVDD
T2
T0
T1
AVDD/2
AVSS
Zooming in to the transient response of the amplifier FIGURE 22: CRITICAL SVM VECTOR
(shown in Figure 21), the green box shows where it is AREAS TO RECONSTRUCT
okay to sample at T1. However, since T2 is not wide THREE-PHASE CURRENTS
enough, current cannot be sampled during T2. The USING A SINGLE-SHUNT
transient response in gray represents the time to
RESISTOR
sample T2 if it would have been wide enough.
V1
FIGURE 21: MAGNIFICATION OF THE
HARDWARE EFFECTS ON
THE SAMPLING TIME I VI V6
V2
WINDOW
II V
T2
V3 III IV V5
T1
V4
Phase Currents
0.3
0.2
0.1
Y Axis
0.0
-0.1
-0.2
-0.3
-0.4
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
X Axis
Legend: Ia
Ib
Ic
Phase Voltages
1900
1800
1700
1600
1500
1400
1300
Y Axis
1200
1100
1000
900
800
700
600
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
X Axis
Legend: Va
Vb
Vc
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T2 T1 T0
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T2 T1 T0
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T1 T0
T2
PWM1L
PWM2L
PWM3L
T0 T1 T2 T3 T1 T0
PWM Up/Down
Counter
PWM1L
PWM2L
PWM3L
C D
A B
PWM Up/Down
Counter
PWM1L
PWM2L
PWM3L
IBUS
TCRIT
PWM3H
PWM3L
PWM2H
PWM2L
PWM1H
PWM1L
T1 Dead Time T2 = TCRIT Dead Time
PRACTICAL RESULTS
After implementing three-phase reconstruction using a
single-shunt resistor, the resulting current is shown in
Figure 32.
If we zoom in and add the IBUS signal in orange, we get
the results shown in Figure 33.
0.4
0.3
0.2
0.1
Y Axis
0.0
-0.1
-0.2
-0.3
-0.4
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
X Axis
Legend: Ia
Ib
Ic
10000
5000
Y Axis
-5000
-10000
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
X Axis
Legend: Ia
Ib
Ic
Ibus
2200
2000
1800
1000
Y Axis
1400
1200
1000
800
600
6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96
X Axis
Legend: Va
Vb
Vc
IBUS Sense
PWM3H
PWM3L
PWM2H
PWM2L
PWM1H
PWM1L
FIGURE 36: SAMPLING POINTS SHOW THE ACTUAL PWM AND IBUS WAVEFORMS
IBUS Sense
ADC ISR
ADC ISR pin toggle
pin toggle
PWM3H
PWM3L
PWM2H
PWM2L
PWM1H
PWM1L
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
03/26/09