00:00:00
hi and welcome back to understanding
00:00:01
motors last episode we talked about how
00:00:04
changing the way you perform pwm
00:00:06
switching can affect the efficiency and
00:00:08
dynamics of your commutation
00:00:10
however the commutation schemes we've
00:00:11
developed thus far are not the best
00:00:13
methods of commutation we could use
00:00:15
but before we can jump straight to the
00:00:17
ideal methods we have to develop some
00:00:18
tools so that we can better understand
00:00:20
them
00:00:21
so let's get into it
00:00:32
we're going to start today by briefly
00:00:33
going back and changing some of our
00:00:35
notation
00:00:36
in episode 5 when we were talking about
00:00:38
the magnetic field alignment method of
00:00:40
torque
00:00:40
we learned that in order to maximize our
00:00:42
torque produced in a brushless motor
00:00:44
we want our induced magnetic field to be
00:00:46
orthogonal to
00:00:47
and leading our rotor's magnetic field
00:00:50
in the notation i used that episode the
00:00:52
magnetic field vector generated by the
00:00:54
stator of the brushless motor
00:00:56
will be 90 degrees counterclockwise from
00:00:58
the current vector as shown in the motor
00:01:00
winding diagram
00:01:01
however after releasing episode 5 it was
00:01:03
clarified to me that this notation of
00:01:05
having the current and magnetic field
00:01:07
shown as perpendicular
00:01:08
is not the standard method of teaching
00:01:10
within the electrical engineering
00:01:11
community
00:01:13
and because my ultimate goal here is to
00:01:15
provide you the viewer
00:01:16
with a reliable and easily intuitive
00:01:18
explanation of these topics
00:01:19
i read up on it and both because i don't
00:01:22
want my videos to not resemble what you
00:01:24
see in your textbook
00:01:26
and because i genuinely think the more
00:01:28
standard notation
00:01:29
is better for understanding the
00:01:30
transformations we're talking about
00:01:31
today than the methods i was taught
00:01:34
i've decided to shift my notation i
00:01:36
apologize if this change causes anyone
00:01:38
to be confused but i'm gonna do my best
00:01:40
to keep things as clear as possible
00:01:42
in previous episodes we had shown our
00:01:44
brushless motor like this
00:01:46
and our y circuit like this for the
00:01:48
analysis of six block commutation
00:01:50
as well as everything else we've talked
00:01:52
about so far this is completely fine
00:01:54
but now we're going to change the look
00:01:55
of this y circuit a little
00:01:57
instead of representing the phase as a
00:01:59
resistor which generates a magnetic
00:02:01
field perpendicular to the direction of
00:02:03
current
00:02:04
we're going to change this to a coil of
00:02:05
wires which generates a magnetic field
00:02:07
in the same direction the current runs
00:02:10
the reason we're actually doing this is
00:02:12
because it's helpful to have our
00:02:13
magnetic field vectors and our current
00:02:15
vectors in line with each other
00:02:16
because at the end of the day it doesn't
00:02:18
really matter which direction the
00:02:20
current is physically running
00:02:22
just the direction of the magnetic field
00:02:24
induced by that current flow
00:02:26
however in terms of measurement and
00:02:28
control it's easier to think about
00:02:29
current running through phases than
00:02:31
magnetic field generated
00:02:33
now with this new notation a current
00:02:35
into phase a
00:02:36
will correspond to both a current vector
00:02:38
and a magnetic field vector strictly to
00:02:40
the left
00:02:41
a current into b will produce vectors 60
00:02:44
degrees south of
00:02:45
east and c will be 60 degrees north of
00:02:48
east
00:02:49
so now that we've adopted this more
00:02:51
standard depiction of the diagram
00:02:52
let's take a second to think about it
00:02:54
the first thing i want you to notice is
00:02:56
that this is a two dimensional diagram
00:02:58
i know that this is a completely obvious
00:03:00
observation but it's also a very
00:03:02
powerful fact
00:03:04
because our three-phase current and
00:03:05
magnetic field vectors can be described
00:03:07
on this two-dimensional plane
00:03:09
it's possible to describe the result as
00:03:11
a 2d vector
00:03:12
and then we could theoretically generate
00:03:14
any equivalent resultant vector
00:03:16
from just two phases and this is the
00:03:19
idea behind the clark transformation
00:03:22
first implemented by edith clark who by
00:03:24
the way was america's first
00:03:25
professionally employed female
00:03:27
electrical engineer
00:03:28
the clark transform describes the move
00:03:30
from the a b and c windings to the alpha
00:03:33
beta frame
00:03:34
we can largely derive this
00:03:35
transformation geometrically seeing that
00:03:37
a points strictly in the alpha direction
00:03:39
b points in the negative cosine 60 alpha
00:03:42
sine 60 beta
00:03:44
and c points in the negative cosine 60
00:03:46
alpha negative sine
00:03:47
60 beta direction the clark transform
00:03:50
also includes an external two-thirds
00:03:52
multiplier
00:03:53
and this keeps the vectors equal
00:03:54
magnitudes on either side of the
00:03:56
transformation
00:03:57
i find that this idea is not super clear
00:03:59
at first but a quick example helps to
00:04:01
show why it's necessary
00:04:03
if i wanted to run one amp strictly from
00:04:05
right to left through the three-phase
00:04:06
diagram
00:04:07
it will go into a then because this is a
00:04:09
balanced system
00:04:10
which obeys kirchhoff's current law it
00:04:13
would need to come out
00:04:14
of b and c in equal proportions if we
00:04:16
sum this geometrically
00:04:18
this one amp sort of gets counted twice
00:04:20
it gets counted once on the way in
00:04:22
through
00:04:23
a and then because of the geometry it
00:04:25
gets counted another half of the time
00:04:27
when it's coming out through b and c
00:04:29
however in our alpha beta representation
00:04:32
we're just talking about the actual
00:04:33
current
00:04:34
running in each direction so we'll need
00:04:36
to take two thirds of this current
00:04:38
represented by the summation of the abc
00:04:40
frame to get one amp and just so you
00:04:43
aren't confused if you see it there's
00:04:45
actually two forms of this
00:04:46
transformation
00:04:47
the one i'm using here which is the
00:04:49
vector magnitude invariant version
00:04:51
and another version used for power
00:04:53
analysis which is the power invariant
00:04:55
version
00:04:56
and it uses the square root of
00:04:57
two-thirds instead of two-thirds
00:05:00
so now we get what the clark
00:05:02
transformation says
00:05:04
but it can actually be further
00:05:05
simplified because
00:05:07
once again the three-phase system we're
00:05:09
talking about is assumed to be balanced
00:05:11
and thus it follows kirchhoff's current
00:05:13
law
00:05:13
meaning the current in phase a plus that
00:05:16
and b plus that in c
00:05:17
must equal zero by moving some variables
00:05:20
around and doing some substitution
00:05:22
we can then see that the current in
00:05:24
alpha is equal to the current
00:05:26
in a whereas the current in beta is the
00:05:29
current in b
00:05:30
minus the current in c divided by the
00:05:32
square root of three
00:05:34
so now we can describe the direction of
00:05:35
current and induced magnetic field using
00:05:38
the alpha and beta axes
00:05:39
but it may not be immediately obvious
00:05:41
why this is helpful
00:05:43
as we previously stated inducing a
00:05:45
magnetic field perpendicular to the
00:05:46
rotor's magnetic field produces torque
00:05:49
meanwhile if we induce along the
00:05:51
direction of the rotor's magnetic field
00:05:53
it will sum with the magnetic field of
00:05:55
the rotor thus either amplifying or
00:05:57
weakening it
00:05:58
well we just showed how you can describe
00:06:00
the equivalent induction of a
00:06:01
three-phase motor in two directions
00:06:04
so now we're going to take this two axis
00:06:06
representation and analyze it from the
00:06:08
perspective of the rotor we will do this
00:06:10
through what's called the park
00:06:11
transformation
00:06:12
we're going to start by creating another
00:06:14
reference frame which will turn with the
00:06:16
rotor
00:06:17
by convention the axes of this frame are
00:06:19
referred to as the direct or d
00:06:21
axis and quadrature or q axis the direct
00:06:24
axis points in the direction of the
00:06:26
rotor's magnetic field
00:06:28
whereas the quadrature axis is 90
00:06:30
degrees counterclockwise of it
00:06:32
so a magnetic field induced in the
00:06:34
positive q direction will produce a
00:06:36
counter-clockwise torque
00:06:38
meanwhile one induced in the negative q
00:06:40
direction will produce a clockwise
00:06:41
torque
00:06:42
whereas a magnetic field induced in the
00:06:44
positive d direction
00:06:46
corresponds to strengthening the
00:06:47
magnetic field of the rotor
00:06:49
an induction in the negative d direction
00:06:51
will weaken the rotor's field
00:06:53
since the dq axis keeps the same origin
00:06:56
as the alpha beta axis
00:06:57
we can describe a transformation between
00:06:59
the two as a simple rotation matrix
00:07:02
for those unfamiliar this is basically
00:07:04
just a matrix of trigonometric
00:07:06
relationships which can take a vector or
00:07:08
orientation described in the alpha beta
00:07:10
frame and then describe it in the dq
00:07:12
frame
00:07:13
thus the current in the q direction is
00:07:15
negative i alpha
00:07:16
sine theta plus i beta cosine theta
00:07:20
and the current in the d direction is i
00:07:22
alpha cosine theta
00:07:24
plus i beta sine theta where this theta
00:07:26
value is the angle between the alpha
00:07:28
axis and the d-axis
00:07:30
okay so now we have these
00:07:32
transformations in reference frames so
00:07:34
let's look at what the actual
00:07:35
implications are
00:07:36
first of all if we want to optimize the
00:07:38
amount of torque we're getting
00:07:39
per current in which we usually do
00:07:43
we can say that at any time for a
00:07:45
non-salient pole motor
00:07:46
we want our current to point strictly in
00:07:48
the q axis direction
00:07:50
note that if we're using a salient pole
00:07:52
motor the optimal direction depends on
00:07:54
some other variables and will typically
00:07:56
lead our q axis a little bit
00:07:58
i'll link a set of mit class notes that
00:08:00
talk about this in the description below
00:08:02
for
00:08:02
people who are curious but to keep
00:08:05
things simpler
00:08:05
let's presume we're using a non-salient
00:08:07
pull motor and let's run through our six
00:08:09
block commutation scheme
00:08:11
again using this diagram starting off in
00:08:14
the center of hall sector 0
00:08:15
and connecting our phases appropriately
00:08:17
we are initially perfectly aligned with
00:08:19
the q axis
00:08:20
and are optimally generating torque
00:08:22
however as we move across the remainder
00:08:24
of this hall sector
00:08:25
our direction of current is no longer
00:08:27
aligned with the q axis
00:08:29
continuing on we see that throughout
00:08:31
commutation we are only perfectly
00:08:33
aligned with this q
00:08:34
axis at the very center of each hall
00:08:36
sector and as we get closer to the edges
00:08:38
of the hall sectors more
00:08:40
and more of our current points in the
00:08:41
plus or minus d directions
00:08:43
this causes the amount of torque we're
00:08:45
producing to oscillate up and down
00:08:47
and it creates the torque ripple we
00:08:49
talked about in an earlier episode
00:08:51
so now we have the clark and park
00:08:52
transforms in our tool belt
00:08:54
next episode we're going to take the
00:08:56
ideas we talked about here and work
00:08:57
towards developing a commutation method
00:08:59
that will smooth this torque ripple out