Académique Documents
Professionnel Documents
Culture Documents
Course Outline
1 Foundations
Introduction to motor control
The basics
DC motors & their control
Rotating magnetic fields
2 Motor Types Covered in the Workshop
BLDC
PMSM
Induction
3 Control of 3 Phase Motors
BLDC
Induction
PMSM
4 Motor Drive Implementation
3-phase inverters
Modulation techniques
C2000 Family of MCUs
Architecture
Dedicated motor control peripherals
Hardware/software and dev tools
5 Lab Exercises
2
1. Foundations
We will start with an easy to understand explanation
of the foundations needed to grasp motor control
concepts
Introduction to motor control
The basics
DC motors & their control
Rotating magnetic fields
3
Introduction: Ideal Motor Control
Decoupled control of torque and speed
Large starting torque
Max torque at all speeds including zero speed
Fast response
High speed
Low maintenance
No sparks
Cheap
DC motor
AC motor
4
Introduction: Ideal Motor Control
DC motor is the gold standard
DC motor inherently has the best performance
It is very easy to control
but it has commutators
AC motors are more robust and can be cheaper
but they are not easy to control and have a nonlinear torque
speed relationship (we will talk about this in detail after we
have explained some basic mechanical concepts)
If we could force the AC motor to behave like the DC motor we could
have the best of both worlds this is our main objective and the reason
why we need field orientation algorithms and big processing power
5
Foundations
Foundation Mechanics
Force/ Work
Torque/Power
Foundation Electromagnetics
As an embedded systems engineer aiming to design a motor
controller, understanding some fundamentals is very useful.
However there is no need to delve in to much detail. The
following topics will be covered briefly with the audience in mind:
6
Foundation Mechanics (for SW Engineers)
Force
Force is the ability to cause an object to accelerate (i.e. Newtons second law) and is measured
in Newtons. In mechanical terms, force is the ability to give an object a push or a pull.
Force is a vector and hence the direction of the push or pull must be taken into consideration
Work
When a force that is applied to an object causes the object to move work has been done. Work
is equal to force x distance moved and is measured in Newton-meters or Joules
20 N
10 N
10 N
7
Foundation Mechanics
Torque is analogous to rotational force
and is measured in Newton-meters. It is
the measure of a force's tendency to
produce rotation about an axis (e.g. as in
a motor).
Assuming that the force is being applied
at 90 to the pivot, torque can be
calculated by multiplying the amount of
force at 90by the distance to the pivot.
If the force is being applied at an angle
other than 90, then in order to calculate
the torque correctly we must resolve
along the correct axis. Therefore:
The above equation has some important
implications for us. We will explain these
in the next slide
T = Force x distance x sin u
Torque
T = 5 Nm
Applied force =10 N
u = 90
Radius = 0.5 meter
8
Foundation Mechanics
The presence of the sin term in the torque equation above
has some very important implications for us and explains why
the behaviour of DC motors differ from AC motors:
The sin term implies that as long as we apply our constant force
at a constant 90 to the pivot, we will have maximum torque
This is the case of a DC motor and it is the reason why this type of
machine behaves so well
If we apply our force at any other constant angle we will not get
maximum torque out of our motor, but will still have constant
torque
If we apply our force at a varying angle then we will get fluctuating
torque
T = Force x distance x sin u
9
Foundation Mechanics
Power
Power is the rate of doing work. Given that work was defined as (force x distance moved), it
follows that power is:
The unit of power can be Newton-Meters per Second or Joules per second or Watts
Force x Distance
Time
Note that Distance divided by time is the same as velocity!
Most importantly for us in the case of rotational forces i.e. motors :
Power = Torque x Angular Velocity i.e. P = T x e
velocity Force
time
Distance
Force =
|
.
|
\
|
10
Foundation Electromagnetics (for SW Engineers)
We measure the amount of magnetic oomph that we have in Webers
and call this Magnetic Flux | (or just flux)
Magnetic flux is not the best way of measuring how much work we can do
with our magnet as it does not take in to account the area over which the
magnetic field lines are acting
We need to define another quantity that takes into account the area, we call
this Flux Density B measured in Teslas
Flux density is the amount of flux (magnetic oomph!) acting per unit area:
A magnet of fixed flux f
acting on a small area
The same magnet acting on a large area
A B or
A
B = = |
|
11
Foundation Electromagnetics
A current carrying conductor also possesses a magnetic
field just like a permanent magnet:
The direction of the magnetic field lines is given by the
right hand curl rule:
Current
Magnetic
Field
lines
Right Hand Curl Rule
Thumb direction of current
Other fingers Field Direction
12
Foundation Electromagnetics
When we place a current carrying conductor (which has a
magnetic field) in a magnetic field, the two magnetic fields will
interact with one another and a force is exerted on the
conductor:
Assuming that the conductor is at 90 to the magnetic field;
the magnitude of the force is given by:
We can use Flemings Left-hand Rule to quickly work out the
direction of the force on the current carrying conductor
F
l I B F =
13
Foundation Electromagnetics
Flemings Left Hand Rule:
Motoring
Field
Current
Motion
Flemings Right Hand Rule:
Generating
Field
Current
Motion
Motoring Rule (Left Hand):
First finger Field,
SeCond Finger Current,
ThuMb Direction of Motion
Generating Rule (Right Hand):
First finger Field,
ThuMb Motion
SeCond Finger Direction of Current,
In mathematicians language: Flemings left hand rule
finds the Vector Cross Product of the magnetic field
vector and the current vector
14
Foundation Electromagnetics
( ) Newtons N l I B Force =
S
N
F
F
u
d/2
From the previous discussions we can
now get a good understanding of how
all motors operate
We know that if we apply a magnetic
field to N turns of a current carrying
conductor we will produce a force:
From the previous slides and the
above diagram:
u u sin sin I N A B N d l I B Torque = =
T = Force x distance x sin u
substitute
l x d = Area
15
DC Motor Operation
Motor torque equation:
In case of a DC motor u is always 90
This means that we will always have maximum torque
This is due to the action of the commutators we will explain this shortly
Finally note that BA = total flux | &
total flux times the number of turns = flux linkage .
u sin I N A B Torque =
Nm I Torque
motor dc a for BAN and motor dc the of case the In
a f
u
=
= = : 90
<<
= =
= = =
+ =
|
e
e e
e |
Constant V/f Control
f
V
B
Important: This implies that if we change either f or V
on their own the magnetic field will change thus
changing the torque. If we keep this ratio constant then
we will keep the magnetic field and hence the torque
constant.
51
Speed of rotation
Rated torque in Nm
Rated base speed for the
AC motor fixed @ say 50 or 60 Hz
L
o
a
d
t
o
r
q
u
e
t
h
a
t
c
a
n
b
e
p
l
a
c
e
d
o
n
t
h
e
m
o
t
o
r
i
n
N
m
50Hz 40Hz
5Hz
30Hz 20Hz 60Hz
70 Hz
Induction Motor Torque Characteristics Under V/f Control
Field weakening or
Constant power region
52
V/f Control Block Diagram
PWM
3-phase
Inverter
DC link
PI
V/f
Velocity feedback
e
r
e
r
*
Implemented in software with
dedicated libraries
Note: velocity feedback is not essential for V/f control
ADC
Dedicated peripherals
on the MCU
53
V/f Control of Induction Machines
www.ti.com/controlSUITE choose High Voltage Kit
10 KHz PWM
54
Summary of Constant V/f Control
Torque is proportional to the flux density B
B V/f from previous slide
Increasing f on its own reduces B
Increasing V on its own increases B
Must keep V/f constant to keep T constant
Advantages:
- Cheap, simple, low development time, low processing power
- No need for position information
Disadvantages:
- Poor performance especially at low speeds
- Sluggish response
55
Induction Motor Applications (direct online or scalar control)
Fans
Pumps
Industrial Drives
White goods (with belt drives/gearbox)
High speed applications
Compressors
Air conditioning units
56
Vector Control of Induction Motors
The theory of operation:
In essence the stator is a rotating magnet. The rotor is also a rotating magnet. If
we could align these two magnets such that the stator magnetic field is always at
90 to the rotor magnetic field, we should get performance like a DC motor
Problems:
We need to somehow identify the position of rotor flux
We have no access to the rotor currents and must estimate them
Therefore we must have a mathematical model of the motor, i.e. need
equivalent circuit
The rotors currents are induced as a result of the moving stator flux
Therefore, if we would like to manipulate the rotor currents, we have to
manipulate the stator currents in such a way that the net effect would
result in our desired state of the rotor current
The angle of the stator flux does not remain constant
The stator and rotor are turning at different speeds i.e. slip
57
Vector Control Simplified
In essence the vector controller runs a mathematical model of the 3 phase
induction motor
Using this model it estimates the position of rotor magnet and then calculates
where to position the stators rotating magnet so that its magnetic bearing is at
90to the rotor magnet
The problem is that the mathematical model of a 3 phase motor is very
complex
We could physically build a 2 phase motor using 2 stator coils at 90 to one
another and energize them by a sine and a cosine wave which would give us
exactly the same performance as the 3 phase motor
This would greatly simplify the mathematics
For simplicity in the next slide we have used a 2 phase induction motor
Later on we show how to convert a 3 phase motor into a 2 phase motor
mathematically (Clarke Transform)
58
Vector Control Simplified
i
1
Rotor
Stator
i
1
i
2
i
3
i
1
i
2
i
3
i
1
i
2
i
3
u
r
i
1
i
2
i
3
Armature
i
3
i
1
i
2
Stator
i
1
i
2
i
3
u
r
DC motor
with compensating winding
2 phase induction motor
2 phase induction motor 2 phase induction motor
59
Starting from equivalent circuit:
Task 1: Transform the three-phase quantities (120 apart) to
into two-phase quantities (90) such that the resultant
vector is the same
Task 2: Identify the value of u
r
which would result in the
correct orientation of the relevant vectors
Task 3: Rotate the relevant vectors with u
r
Vector Control Operations
Note: in the following slides we will describe the operation of vector control as applied to induction
machines. The procedure in synchronous machines is almost identical; the only difference being that
the identification of the position of rotor flux in a synchronous machine is much simpler.
60
Induction Motor Equivalent Circuit
R
s
jX
ls
s jX
lr
R
r
V
s
E
1
s E
2
jX
m
R
c
R
s
= stator resistance
X
ls
= stator leakage reactance
R
c
= core losses (ignore)
X
m
= mutual reactance
X
lr
= rotor leakage inductance
R
r
= rotor resistance
V
s
= stator input voltage
I
r
E
1
= back emf at stator
E
2
= per phase voltage induced
in rotor at standstill
sE
2
= per phase voltage induced in rotor as it
rotates
I
r
= rotor current
I
s
= stator current
I
s
Note: as rotor starts to rotate less conductors will be cut by
the stators rotating magnetic field. Therefore, the magnitude
of the induced emf will reduce s E
2
61
Induction Motor Equivalent Circuit
From the previous slide:
( ) 2
2
2
2
2
2
lr
r
r
lr r
r
X
s
R
E
I
X s R
E s
I
+
=
+
=
R
s
jX
ls
jX
lr
R
r
/s
V
s
E
1
s E
2
jX
m
R
c
Finally we can refer all values to the stator side:
R
s
jX
ls
k.jX
lr
(k.R
r
)/s
V
s
jX
m
Note: R
c
has
been ignored
62
Deriving the Voltage Equations:
u
r
= e
r
t
IMPORTANT: the rotor circuit is
rotating at an angular velocity of
e
r
the relative position of the
rotor is changing with respect to
the stator. Hence the mutual
inductance between stator and
rotor is a function of u
r
e.g. L
m
cos u
Per phase stator circuit
(say for phase A)
e.g. Phase A stator voltage V
as
= the sum of:
Resistive voltage drop due to stator resistance R
s
and phase a current i
as
Bemf due to i
as
and phase A self inductance L
s
Bemf due to i
bs
and the mutual inductance between stator phase A & B L
ms
Bemf due to i
cs
and the mutual inductance between stator phase A & C L
ms
Bemf due to i
ar
and the mutual inductance between stator and rotor
Bemf due to i
br
and the mutual inductance between stator and rotor
Bemf due to i
cr
and the mutual inductance between stator and rotor
R
s
V
as
L
ls
L
m
i
as
dt
di
L
dt
di
L
dt
di
L
dt
di
L
dt
di
L
dt
di
L R i V
cr
ms
br
ms
ar
ms
cs
ms
bs
ms
as
s s as as
|
.
|
\
|
+
|
.
|
\
|
+ + + + + + =
3
2
cos
3
2
cos cos
t
u
t
u u
63
Deriving the Voltage Equations:
dt
di
L
dt
di
L
dt
di
L
dt
di
L
dt
di
L
dt
di
L R i V
cr
ms
br
ms
ar
ms
cs
ms
bs
ms
as
s s as as
|
.
|
\
|
+
|
.
|
\
|
+ + + + + + =
3
2
cos
3
2
cos cos
t
u
t
u u
- -
|
|
|
.
|
\
|
|
|
|
|
|
|
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+
|
.
|
\
|
+
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+
+
|
|
|
.
|
\
|
|
|
|
.
|
\
|
+
|
|
|
.
|
\
|
=
|
|
|
.
|
\
|
cr
br
ar
m m m
m m m
m m m
cs
bs
as
s ms ms
ms s ms
ms ms s
s
cs
bs
as
cs
bs
as
i
i
i
L L L
L L L
L L L
i
i
i
L L L
L L L
L L L
R
i
i
i
v
v
v
u
t
u
t
u
t
u u
t
u
t
u
t
u u
cos
3
2
cos
3
2
cos
3
2
cos cos
3
2
cos
3
2
cos
3
2
cos cos
- -
|
|
|
.
|
\
|
|
|
|
|
|
|
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+
|
.
|
\
|
+
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+
+
|
|
|
.
|
\
|
|
|
|
.
|
\
|
+
|
|
|
.
|
\
|
=
|
|
|
.
|
\
|
cs
bs
as
m m m
m m m
m m m
cr
br
ar
r mr mr
mr r mr
mr mr r
r
cr
br
ar
i
i
i
L L L
L L L
L L L
i
i
i
L L L
L L L
L L L
R
i
i
i
u
t
u
t
u
t
u u
t
u
t
u
t
u u
cos
3
2
cos
3
2
cos
3
2
cos cos
3
2
cos
3
2
cos
3
2
cos cos
0
0
0
Complete stator voltage equations:
Complete rotor voltage equations:
64
Converting Our 3 Phase to an equivalent 2 phase motor
Imagine three sinusoidal currents (i
as
, i
bs
& i
cs
) in a balanced 3-phase
system
The interaction of these three currents will result in one resultant
current vector shown in red:
However, exactly the same resultant vector (shown in red) can be
generated using only 2 currents
i
as
i
cs
i
bs
i
ds
s
i
qs
s
We will call these new currents and i
qs
s
i
ds
s
These new currents are acting along two new axes at 90 which we
will call the direct d (field) and quadrature q (armature) axis.
The process above is called the Clarke Transform. We will talk about
this in the next slide
65
Stationary Three-Phase to Stationary Two-Phase Transform (Clarke Transform)
This transforms our balanced three-phase quantities to two-phase stationary quantities.
After the transformation we will be in the Stationary Reference Frame this is denoted
by a superscript s:
as axis
cs axis
i
s
i
as
bs axis
i
cs
i
bs
Three-phase system
d
s
axis
q
s
axis
i
s
i
ds
s
i
qs
s
Two-phase system
Clarke
Note: the resultant current vector is the same
Important: i
qs
and i
ds
axes are sometimes named | and o axes
66
as axis
dsaxis
qs axis
bs axis
cs axis
u
s
qs
f
f f
as qs
s
=
f f f
bs qs
s
ds
s
=
1
2
3
2
f f f
cs qs
s
ds
s
= +
1
2
3
2
Clarke Transform
f
as
, f
bs
, f
cs
= Three phase stator quantities.
f
s
ds
, f
s
ds
= Stator d
s
-q
s
quantities.
u
= An arbitrary angle.
f K f f f K f
qs
s
as bs cs as
=
|
\
|
.
|
= . .
1
2
1
2
3
2
f K f f
ds
s
bs cs
= +
|
\
|
.
| .
3
2
3
2
Aligning the qs axis with the as axis so that u = 0 and
and resolving we will have:
Where:
Clarke Transform:
Inverse Clarke Transform:
s
ds
f
f
as
f
bs
f
cs
K
= 2/3
d axis
stator
Stationary ref frame
67
Clarke Transform Made Easy
TI provides this transform (and its inverse in the SVGEN macro) in an
easy to use format within the controlSUITE DMCLib
(TI uses I
o
and I
|
)
s
qs
i
Three phase stationary domain
AC quantities 120apart
Two phase stationary domain
AC quantities 90apart
If we now apply the Clarke transform to our 3 phase mathematical
model, the entire machine model can be reduced to 4 simple
differential equations please see next slide
s
ds
i
Only two
currents are
required as
the third can
be calculated
using
Kirchoffs law
I
|
I
o
68
Induction Machine Model in the Stationary Reference Frame
Where:
v
d
dt
i R
qs
s qs
s
qs
s
s
= +
v
d
dt
i R
ds
s
ds
s
ds
s
s
= +
0 = +
d
dt
i R
qr
s
qr
s
r dr
s
r
e
0 = + +
d
dt
i R
dr
s
dr
s
r qr
s
r
e
(equ. 1)
(equ. 2)
(equ. 3)
(equ. 4)
(equ. 5)
(equ. 6)
(equ. 7)
(equ. 8)
s
qr m
s
qs s
s
qs
i L i L + =
s
dr m
s
ds s
s
ds
i L i L + =
s
qs m
s
qr r
s
qr
i L i L + =
dr
s
r dr
s
m ds
s
L i L i = +
= qs axis stator flux linkage
= ds axis stator flux linkage
= qs axis rotor flux linkage
= ds axis rotor flux linkage
69
Park Transform: Stationary (dq
s
) to Rotating (dq
e
) Reference Frame
Transform:
Using the Clarke Transform we have obtained a 2 phase mathematical
model for our motor
This was the first task of the vector controller
This resulted in a 2 phase motor with 90phase shift between the d
s
and q
s
axes
(also known as o and | axes)
Assuming that we know the rotation angle u
r
for now (Task 2) we would like
to be able to vector rotate our 2 phase quantities by this angle
This is done using the Park Transform
70
Park Transform
Consider the resultant current vector (i
s
) of our 2 phase motor as a result of
our two phase currents (sin & cos) that we are injecting into our 2 phase stator
i
s
Stationary reference frame
i
s
q
s
axis
d
s
axis
Lets now assume that after a certain
time our vector has rotated by 45;
the observer will see i
s
sin e
e
t
If now the observer also moves by
exactly 45there is no relative
movement between the vector on the
rotating side (rotor) and the observer
on the stationary side (stator) and the
observer will see nothing again
We can do this operation
mathematically and is known as the
Park Transform
This vector will rotate at a stator angular frequency of e
e
The stationary observer will see the projection of this vector along the
vertical (i.e. i
s
sin e
e
t). Therefore at t = 0 the observer will see nothing
71
Park Transform
It follows from the previous slide that if the observer runs around the motor at
exactly the same speed at the rotor, then there will be no relative movement
between the observer and the rotor
Therefore all quantities on the rotor will appear as constants (i.e. DC to the
observer)
Under this condition we say that we are operating in the rotating reference frame
Of course in practice we do not run around the motor!! We use mathematical vector
rotation algorithms to achieve this objective
This operation is known as the Park Transform and a vector controller
calculates the Park algorithm at every sampling interval by rotating the relevant
vectors with u
r
In the following slides we show the details of the Park Transform and the
available TI libraries
72
Park Transform: Stationary (dq
s
) to Rotating (dq
e
) Reference Frame Transform:
This transforms our two-phase stationary quantities to a two-phase reference
frame rotating synchronously with the stator quantities, i.e. it allows our
sinusoidal two-phase quantities to be rotated by a known angle
This is denoted by a superscript e (dq
e
) .
d
s
axis
q
s
axis
i
s
i
ds
s
i
qs
s
Stationary reference frame
Note: DC quantities:
Rotating reference frame
Park
Transform
73
Stationary to Rotating Reference Frame
Again the transformation equations can be simply
derived by resolving f
s
, along the desired axis:
dq
s
to dq
e
transform:
Inverse dq
s
to dq
e
transform:
f f Cos t f Sin t
qs
e
qs
s
e ds
s
e
= ( ) ( ) e e
f f Sin t f Cos t
ds
e
qs
s
e ds
s
e
= + ( ) ( ) e e
f f Cos t f Sin t
qs
s
qs
e
e ds
e
e
= + ( ) ( ) e e
f f Sin t f Cos t
ds
s
qs
e
e ds
e
e
= + ( ) ( ) e e
d
s
axis
q
s
axis
u
e
f
qs
s
d
e
axis
q
e
axis
f
qs
e
u
e
=e
e
t
e
e
f
ds
s
f
ds
e
q
axis
Rotating
ref frame
stator
74
Park Transform Made Easy
TI provides this transform (and its inverse) in an easy to use
format within the controlSUITE DMCLib
e
ds
i
If we now apply the Park transform to our 2 phase mathematical model in
the stationary reference frame, the entire machine model in the rotating
reference frame will only have DC quantities please see next slide
Two phase stationary domain
AC variables + rotation angle
Two phase rotating domain
DC variables
s
ds
i
s
qs
i
e
qs
i
Rotation angle
75
Induction Machine Model in Rotating Reference Frame
v
d
dt
i R
qs
e qs
e
qs
e
s ds
e
e
= + +
e
v
d
dt
i R
ds
e
ds
e
ds
e
s qs
e
e
= +
e
0 = + +
d
dt
i R
qr
e
qr
e
r dr
e
e r
e e ( )
0 = +
d
dt
i R
dr
e
dr
e
r qr
e
e r
e e ( )
(equ. 13)
(equ. 14)
(equ. 15)
(equ. 16)
qs
e
s qs
e
m qr
e
L i L i = +
ds
e
s ds
e
m dr
e
L i L i = +
qr
e
r qr
e
m qs
e
L i L i = +
dr
e
r dr
e
m ds
e
L i L i = +
= qe axis stator flux linkage
= de axis stator flux linkage
= qe axis rotor flux linkage
= de axis rotor flux linkage
(equ. 17)
(equ. 18)
(equ. 19)
(equ. 20)
Where:
76
Identifying the Position of Rotor Flux
In order to achieve our final task we need to manipulate the machine
model equations to get an equation for u
r
Our equations must be in terms of Stator currents and voltages only
as we do not have access to rotor currents
There are two main ways of doing this which leads to two different
types of vector control systems:
Indirect vector control
Direct vector control
We will talk about these next
77
Indirect Vector Control
The objective is to derive an equation for the rotor flux u
r
in terms of stator
quantities only
We know that:
By manipulating the machine model equations we can show that:
By using the demand value of stator currents we can enforce the slip such
that we get the correct orientation :
r
r
e
ds
e
qs
sl
L
R
i
i
= e
u
r
= u
sl
+ u
r r
t
sl r
dt u e u
+ =
}
0
(equ. 25.a)
(equ 34)
r
r
e
ds
e
qs
sl
L
R
i
i
*
*
*
= e
(equ 36)
( ) dt
t
r sl r
}
+ =
0
* *
e e u
(equ 35)
Where:
78
Indirect Vector Control Step by Step
u
r
Clarke
i
a
i
b
PI
PI
Park
-1
Slip Calculation (equ 36)
followed by u
r
Calculation (equ 35)
PI
PWM
3-phase
Inverter
ACIM
v
bs
s*
i
qs
s
i
ds
s
Park
i
qs
e
v
as
s*
i
ds
e
d/dt
e
r
u
r
u
r
u
r
i
qs
e*
i
ds
e*
v
qs
e*
v
ds
e*
Clarke
-1
v
ds
s*
v
qs
s*
v
bs
s*
i
ds
e*
e
r
*
u
v
ds
s*
v
qs
s*
79
TI Systems for Sensored Indirect FOC of ACI
www.ti.com/controlSUITE and choose High Voltage Kit
10 KHz PWM
80
Again the objective is to derive an equation for the rotor flux u
r
in terms of
stator quantities only
By manipulating the machine model equations we can show that:
Where:
Finally:
Direct Vector Control
dt R i v
s
s
qs
s
qs
s
qs
}
= dt R i v
s
s
ds
s
ds
s
ds
}
+ =
(equ. 37) (equ. 38)
s
ds m
m
s
ds s
s
ds
r
s
dr
i L
L
i L
L +
|
|
.
|
\
|
=
(equ. 40)
s
qs m
m
s
qs s
s
qs
r
s
qr
i L
L
i L
L +
|
|
.
|
\
|
=
(equ. 39)
s
dr
s
qr
r
1
tan
=
(equ. 43)
Note that the above are all in stator quantities. Using
the above we can calculate the position of the rotor
flux as shown in the next slide
81
Direct Vector Control
We can now calculate the position of the rotor flux u
r
:
s
qr
s
dr
s
dr
s
qr
r
1
tan
=
( ) ( ) ( )
2 2
s
dr
s
qr
+ =
r
(equ. 43)
(equ. 44)
From equations
37 and 39
From equations
38 and 40
82
Direct Vector Control Block Diagram
Clarke
i
a
i
b
PI
PI
PI
PWM
3-phase
Inverter
ACIM
i
qs
s
i
ds
s
i
qs
e
i
ds
e
e
r
e
r
u
r
i
qs
e*
i
ds
e*
v
qs
e*
v
ds
e*
Clarke
-1
v
ds
s*
v
qs
s*
v
as
s*
v
bs
s*
v
bs
s*
i
ds
e*
e
r
*
e
Park
-1
Park
Flux
Estimation
(equ 37- 40 )
followed by
(equ 43 )
v
ds
s*
v
qs
s*
i
ds
s
i
qs
s
i
ds
e
i
qs
e
Note: the system is almost identical to PMSM
Speed loop no longer
required and can be
removed
83
In many applications a stiff speed loop is not essential and
hence the feedback loop can be removed
e
r
*
Sensorless Vector Control Block Diagram
Clarke
i
a
i
b
PI
PI
PI
PWM
3-phase
Inverter
ACIM
i
qs
s
i
ds
s
i
qs
e
i
ds
e
e
r
u
r
i
qs
e*
i
ds
e*
v
qs
e*
v
ds
e*
Clarke
-1
v
ds
s*
v
qs
s*
v
as
s*
v
bs
s*
v
bs
s*
i
ds
e*
e
r
e
Park
-1
Park
Flux
Estimation
(equ 37- 40 )
followed by
(equ 43 )
v
ds
s*
v
qs
s*
i
ds
s
i
qs
s
i
ds
e
i
qs
e
Strictly speaking this is not TRUE
sensorless as speed is not
estimated and fed back
84
True Sensorless Direct Vector Control
For true Sensorless speed control we also need to evaluate e
r
. There are
many different ways of doing this:
Manipulation of machine model equations (Bemf)
MRAS based
Observer based
Kalman Filters
A common and easy way is to differentiate u
r
to get e
e
and then subtract
out the estimate of slip:
( )
( )
s
ds
s
qr
s
qs
s
dr
r
r m
sl
r
e
sl e r
i i
L
R L
dt
d
e
u
e
e e e
=
=
=
r
1
Where
This is the method used in the
ACI_SE block within TI DMCLib
85
Flux & Speed
Estimation
(equ 37- 40
(equ 43))
(equ 45- 47 )
v
ds
s*
v
qs
s*
i
ds
s
i
qs
s
True Sensorless Vector Control Block Diagram
Estimated e
r
Estimated e
r
Clarke
i
a
i
b
PI
PI
PI
PWM
3-phase
Inverter
ACIM
i
qs
s
i
ds
s
i
qs
e
i
ds
e
u
r
i
qs
e*
i
ds
e*
v
qs
e*
v
ds
e*
Clarke
-1
v
ds
s*
v
qs
s*
v
as
s*
v
bs
s*
v
bs
s*
i
ds
e*
e
r
*
Park
-1
Park
i
ds
e
i
qs
e
Note: the system is almost identical to PMSM
86
TI Systems for Sensorless Direct FOC of ACI
Available for Piccolo (fixed) and Delfino (float)
www.ti.com/controlSUITE and choose High Voltage Kit
10 KHz PWM
87
Vector Control for PMSM
Our description of vector control has been based on induction motors, for
PMSM the principles stay EXACTLY the same i.e. we are still trying to locate
the position of rotor flux u
r
.
The block diagrams are almost identical, but for a permanent magnet
machine the position of the rotor flux is fixed with respect to u
r
i.e. if we know u
r
then we also know u
r
For sensored vector control all we need is u
r
Piccolo and Delfino (float) versions available in controlSUITE with High Voltage Kit
Multiple Legacy F281x/0x versions (speed/position with encoder, resolver) available at
www.ti.com/c2000dmc
For sensorless vector control we need to estimate the position of the rotor flux:
This can be done in a few different ways: machine model equations, sliding mode
controller, Kalman filters, MRAS etc.
Sliding Mode Observer for Piccolo & Delfino in controlSUITE with High Voltage Kit and Dual
Axis Low Voltage Kit (kit used for this DMC Workshop)
88
TI Systems for Sensored (Encoder) FOC of PMSM
Available for Piccolo (fixed) and Delfino (float)
www.ti.com/controlSUITE and choose High Voltage Kit
Legacy Resolver system at www.ti.com/c2000dmc
10 KHz PWM
89
TI Systems for Sensorless (SMO) FOC of PMSM
Available for Piccolo (fixed) and Delfino (float)
www.ti.com/controlSUITE and choose High Voltage Kit or Low Voltage Kit
10 KHz PWM
90
Using BLDC Motors with Field Orientation
As mentioned in the previous slides BLDC motors
have a trapezoidal Bemf and are driven with DC
currents
There will be more acoustic noise as these waveforms
are at frequencies within the audible range
In many cases it is possible operate our BLDC motor
under field orientation with sinusoidal currents to
resolve these issues
Many cheap BLDC motors have a sinusoidal Bemf with a
flat top
Some manufacturers in fact call their motors BLDC
despite the fact that the motor has a sinusoidal Bemf
Always check the shape of the Bemf with an
oscilloscope
BLDC current with hall effect control
91
When Can We Use BLDC with Sinusoidal Currents?
Trapezoidal Bemf:
E1 + E2 + E3 = 0
Sinusoidal Bemf:
E1 + E2 + E3 = 0
Time
Bemf
Time
Bemf
Many BLDC motors
have a sinusoidal Bemf.
Hence can be operated with
sinusoidal waveforms
92
The Bemf of Our Workshop BLDC Motor
The Bemf of the workshop motor was observed by attaching a hand-
drill to the shaft and viewing the generated waveforms on an
oscilloscope
As can be seen we have perfect sinusoids 120 apart hence we can
use sinusoidal waveforms to operate it under vector control
93
4. Motor Drive Implementation
3 Phase Electronic Inverters:
Pulse width modulation
3
rd
harmonic injection
Space vector modulation
C2000 Family of MCUs
Architecture
Dedicated motor control peripherals
Hardware/software and development tools
Lab Exercises
Implementing Field Oriented (Vector) Control on a synchronous motor
using TIs Piccolo F28035 MCU, Dual Axis Low Voltage Kit, and
controlSUITE Digital Motor Control Library
94
Making Our Workshop Motor Turn
From our discussions so far, we know how to operate our 3 phase
motor in the case of our workshop motor:
We excite our 3 phase motor with three generated sinusoidal currents
which have a 120 phase shift with respect to each other
Our 3 phase currents will produce a rotating magnetic field in the center
The rotor of our motor is made of permanent magnets. This rotor will
follow the rotating magnetic field and therefore we do not need
commutators and brushes i.e. Brushless operation
All we need to do now is to generate our 3 phase currents
All we have to do to operate our workshop motor is to learn how to use
the C2000 MCU to generate 3 phase currents
95
Generating 3-phase Currents and Pulse Width Modulation
We need to inject our motor with three sinusoidal currents 120