Electric and Hybrid Drive Systems homework
ECE 4/5630 Electric & Hybrid Drive Systems Prof Ka C Cheok
PWM Sound Playback (5 pts)
An FPGA chip can be programmed to produce a 250 KHz 8-bit PWM signal. A low pass filter circuit then smooths the “square” PWM into a usable audio waveform. This driver technique is used in MP3 audio sound players.
Given the digital output below, sketch the filtered analog waveform Vout, using your imagination. The analog signal should be as representative as possible (ie., include small wavy ripples).
Electronic Power Converter - PWM duty cycles and sketch (15 pts)
Space Vector Modulation (20 pts)
Electromotive force (voltage) (20 pts)
Brush up on cross product and dot product.
See the role of these vectors.
B = [0 0 1]'; v = [0 1 0]'; l = [1 0 0]';
eVector = cross(v,B); e = dot(eVector,l);
close all;
plot3([0 B(1)],[0 B(2)],[0 B(3)],'b','linewidth',3); hold on, grid on
plot3([0 v(1)],[0 v(2)],[0 v(3)],'g','linewidth',3);
plot3([0 eVector(1)],[0 eVector(2)],[0 eVector(3)],'r','linewidth',3);
text(B(1),B(2),B(3)*1.3,['B^t = ',num2str(B')],'color','b')
text(v(1),v(2)*1.3,v(3),['v^t = ',num2str(v')],'color','g')
text(eVector(1)*1.2,eVector(2),eVector(3),['eVec^t = ',num2str(eVector')],'color','r')
text(-1.7,0.0,0.5,'eVec = cross(v,B)','fontweight','bold')
plot3([0 eVector(1)],[0 eVector(2)],[0 eVector(3)]-1.5,'r','linewidth',3);
plot3([0 l(1)],[0 l(2)],[0 l(3)]-1.43,'k','linewidth',3);
text(eVector(1)*1.1,eVector(2),eVector(3)-1.5,['eVec^t = ',num2str(eVector')],'color','r')
text(l(1),l(2),l(3)-1.43,[' l^t = ',num2str(l')])
text(-1.7,0.0,-1.0,'eMag = dot(eVec,l)','fontweight','bold')
text(-1.7,0.0,-1.3,['eMag = ',num2str(e)])
xlabel('x'), ylabel('y'), zlabel('z')
axis('equal'), axis([-1 1 -1 1 -1 1]*1.5), view(20,20)
Copy and paste this m-script in your own Matlab editor and execute the program.
Illustration: The case of cutting perpendicularly into the magnetic field
Show these as your results
y
x
z
y
x
z
a) The case of stabbing motion into the magnetic field
Computer plot ?
y
x
z
y
x
z
b) The case of parallel motion to the magnetic field
y
x
z
y
x
z
c)
y
x
z
y
x
z
Electromechanical force (20 pts)
B = [0 0 1]'; i = [1 1 1]'; l = 1; li = l*i; f = cross(li,B);
close all;
plot3([0 B(1)],[0 B(2)],[0 B(3)],'b','linewidth',3); hold on, grid on
plot3([0 li(1)],[0 li(2)],[0 li(3)],'g','linewidth',3);
plot3([0 f(1)],[0 f(2)],[0 f(3)],'r','linewidth',3);
text(B(1),B(2),B(3)*1.5,['B^t = ',num2str(B')])
text(li(1),li(2)*1.5,li(3),['li^t = ',num2str(li')])
text(f(1)*1.5,f(2),f(3),['f^t = ',num2str(f')])
plot3([2 0 0 0 0],[0 0 2 0 0],[0 0 0 0 2])
xlabel('x'), ylabel('y'), zlabel('z')
axis('equal'), axis([-1 1 -1 1 -1 1]*2), view(20,10)
y
x
z
y
x
z
Show your modified Matlab code & computer 3D plot here1
3 –phase stator with sinusoidal distributed winding (10 pts)
The currents in a 3-phase stator can be described by
Node voltage
Steady state stator currents
Clarke Transform
Field to 3-phase transformation – Inverse Clarke transform
3-phase to field transformation – Clarke transform
Back emf in 3 phase winding stator (10 pts)
Phasor and space vector (10 pts)
If , what is
If , what is?
Permanent magnet synchronous motor (PMSM) (10 pts)
The torque generated by a PMSM can be described by (refer to lecture notes). are the magnitude and phase angle of the stator current phasor .
Suppose you were told that the stator current is , the rotor angle is , and the motor parameters are , , , . What is the torque generated by the motor?
What is the dq component - Park transform (20 pts)
The effective stator field current is and the rotor field magnet is oriented at angle. What is the direct and quadrature components for the . Sketch in the diagram below to illustrate the relationship between .
8
6
Torqueing similarity/differences between PMSM, FOC BLDC motors and SEDC/PMDC motors (15 pts)
The torque generated by a PMSM by, is the (positive) magnitude of . If we control the angle such that , hence , then the PMSM becomes a Field Oriented Control BLDC motor generating the torque as . On the other hand, the torque generated by a separately excited dc motor can be expressed by (refer to lecture notes). For permanent magnet DC motor, .
BLDC vs SEDC
Describe in detail terms how and are similar. (Which term corresponds to which).
BLDC vs PMDC
Describe in detail terms how and are similar.
PMSM vs PMDC
Explain the difference between and . Explain why we don’t refer PMSM as a BLDC or DC motor.
BLDC Torq/Current Control loop. (15 pts)
Explain the role of and in the current loop controller .
Software
Power
Electronics
&
Sinusoidal
Wound
Stator
Permanent
Magnet Rotor
Explain why is set to 0.
If a torque = 10 Nm is generated when we set = 1A, what value should be set to if =30 Nm is desired?
Integration of Speed Control BLDC Motor and Q-Car model (20 pts)
Connect the block diagrams/equations for the quarter car system to the speed control BLDC motor drive.
Gear
Software
Permanent
Magnet Rotor
Power
Electronics
&
Sinusoidal
Wound
Stator
Wheel
Quarter Car
Speed Controller for a FOC BLDC Motor Electric Vehicle (30 pts)
The figure below shows the speed control scheme for a car. Suppose that the sports car is powered by a field oriented control brushless DC motor and can be approximately model as the plant transfer function shown in the figure. You are asked to use Matlab auto-tuning PID design capability and design a PID controller such that it drives the car from 0 to 60 mph in 3 seconds with .
A Simulink model for the PID control scheme is shown below. You are to build this Simulink model.
Submit a diagram of your Simulink model that satisfies the specs.
Change it to show your name and the date you worked on it.
Note: A step command for 0 to 60 mph.
Running the model with the shown PID setting yields the response with overshoot and a settling time of about 1 second.
Interpret the curves shows that the speed response is too fast and has a slight overshoot.
Submit the scope result from the best run you make.
Click on the PID Controller block and select auto tuning feature.
Submit the PID Control Prameters for the best run you make.
Use the tuner to to adjust the parameters and design a PIDN controller that satisfies the specs. 3 seconds
Desired Specs:
Go from 0 to 60 mph in 3 seconds with no overshoot
Submit the PID Tuner Info for the best run you make.
2019 Qns Review Homework Assignment B.docx 1 23 June 2019
0
0
1
B
éù
êú
=
êú
êú
ëû
r
[001],[111]&1
tt
Bil
==---=
r
r
B
r
li
r
f
r
AAN
A
BBN
B
CCN
C
VEV
I
sLR
VEV
I
sLR
VEV
I
sLR
--
=
+
--
=
+
--
=
+
0.
ABC
III
++=
(
)
1
3
NABCABC
VVVVEEE
=++---
0,100&200
ABC
VVV
===
0
ABC
EEE
===
5[]
R
=W
,&
ABC
III
30
40
s
éù
=
êú
-
ëû
v
-0.500.511.522.5
0
5
10
15
1 kHz Pulse Witdh Modulation: input, switching & output
va
0V
300V
vb
0V
300V
vc
0V
300V
S1
Lo
Hi
S2
Lo
Hi
S3
Lo
Hi
S4
Lo
Hi
S5
Lo
Hi
S6
Lo
Hi
VA
0V
300V
VB
0V
300V
VC
0V
300V
0ms1ms2ms
Dury Cycle
dcA=...............?
dcB=...............?
dcC=...............?
A
ABCB
C
V
V
V
éù
êú
=
êú
êú
ëû
V
10
20
30
ABC
éù
êú
=
êú
êú
-
ëû
I
s
I
I
a
b
éù
=
êú
ëû
I
ˆ
sin()
s
Arrr
N
EBlr
s
pqq
=
&
ˆˆˆˆ
cossin
s
j
ssssssss
IIIeIjI
q
qqq
===+
r
R
ˆ
&
ss
I
q
j
s
i
i
a
b
éù
=
êú
ëû
I
&
ss
I
I
r
5(53.134)
o
s
I
=-
r
R
123456
,,,,,
SSSSSS
?
s
I
8
6
s
éù
=
êú
ëû
I
s
I
r
ˆˆ
sin()
2
s
emrsrs
N
BrlI
tpqq
=-
ˆˆˆ
cossin
sssssss
IIIjI
qqq
==+
r
R
5.00
8.66
s
éù
=
êú
ëû
I
30
o
r
q
=
ˆ
2
r
B
=
0.1
l
=
0.1
r
=
158
115
0
A
ABCB
C
V
V
V
éù
éù
êú
êú
==
êú
êú
êú
êú
ëû
ëû
V
200
s
N
=
T
6
8
s
éù
=
êú
ëû
I
30
o
r
q
=
d
dq
q
I
I
éù
=
êú
ëû
I
s
I
&
dq
II
,&
srdq
q
II
30
o
r
q
=
ˆˆ
sin()
s
PMSMrsr
N
TBlrI
s
pqq
=-
300[V]
dc
V
=
ˆ
I
s
I
s
q
90
o
sr
qq
-=±
sin()1
sr
qq
-=±
ˆˆ
s
BLDCr
N
TBlrI
s
p
=±
A
SEDC
Ki
T
f
=
A
PMDCt
Ki
T
=
ˆˆ
s
BLDCr
N
TBlrI
s
p
=±
A
SEDC
Ki
T
f
=
t1t2t3t4t1t2t3t4
0ms1ms2ms
t4
t1=0.5*T0 t2=t1+TSect t3=t2+TSect1 t4 = Ts
T0=.....................? TSect=....................? TSect1=.....................? Ts=...............?
S1
Lo
Hi
S2
Lo
Hi
S3
Lo
Hi
S4
Lo
Hi
S5
Lo
Hi
S6
Lo
Hi
1 kHz Space Vector Modulation: sequence and switching
Desired Field Vector
0ms1ms2ms
A
PMDCt
Ki
T
=
()
Cd
Gs
()
Cq
Gs
(
)
(
)
()
()
Cddrefd
d
q
Cqqrefq
Gsii
v
v
Gsii
éù
-
éù
êú
=
êú
êú
-
ëû
ëû
d
q
v
v
éù
êú
ëû
0
To be set
dref
qref
i
i
éù
éù
=
êú
êú
ëû
êú
ëû
d
rmrm
q
rmrm
v
v
cs
v
v
sc
a
b
qq
qq
éù
éù
-
éù
=
êú
êú
êú
ëû
ëû
ëû
()0
0()
Cd
Cq
Gs
Gs
éù
êú
ëû
0sectsect10
,,,
+
vvvv
d
q
v
v
10.50.5
00.8670.867
m
AmBmCm
m
i
III
i
a
b
éù
--
éùéùéù
=++
êú
êúêúêú
-
ëûëûëû
ëû
d
m
rmrm
q
m
rmrm
i
i
cs
i
i
sc
a
b
qq
qq
éù
éù
éù
=
êú
êú
êú
-
ëû
ëû
ëû
, ,
AmBmCm
Measurement
III
rm
Measured
q
dref
i
em
t
qref
i
0sectsect10
0.5,,,0.5
tttt
+
em
t
TRgem
TNT
=
mr
qq
=
1
rwh
g
N
qq
=
1
rwh
g
N
qq
=
&&
1
TRTR
wh
FT
r
=
1
whxT
wh
v
r
q
=
&
1
wh
wh
s
r
q
=
()
p
Gs
100
100
s
éù
=
êú
-
ëû
v
qref
Desired
Current
i
speed
v
Command
Reference
ref
v
Approximateplantmodel (car &FOC BLDC)
1000
()
(10)(100)
p
Gs
ss
»
++
300[V]
dc
V
=
(
)
evBl
=´·
r
r
r
e
x
y
z
v
vv
v
éù
êú
=
êú
êú
ëû
r
x
y
z
B
BB
B
éù
êú
=
êú
êú
ëû
r
x
y
z
l
ll
l
éù
êú
=
êú
êú
ëû
r
&
´·
(
)
cross product
dot product
eVectorevB
eeel
=´
=·
r
rr
r
r
0
0
1
B
éù
êú
=
êú
êú
ëû
r
0
1
0
v
éù
êú
=
êú
êú
ëû
r
1
0
0
l
éù
êú
=
êú
êú
ëû
r
0
1
0
v
éù
êú
=
êú
êú
ëû
r
1
0
0
eVector
éù
êú
=
êú
êú
ëû
0
0
1
B
éù
êú
=
êú
êú
ëû
r
e
-+
1
0
0
l
éù
êú
=
êú
êú
ëû
r
1
e
=
&
eVectore
e
-+
0
1
0
l
éù
êú
=
êú
êú
ëû
r
0
0
1
l
éù
êú
=
êú
êú
ëû
r
l
r
1
1
1
l
éù
êú
=
êú
êú
ëû
r
(
)
(
)
fliBilB
=´=´
rr
rr
r
,&
fiB
r
r
r
[001],[111]&1
tt
Bil
===
r
r
[
]
110
t
f
=-
r
,&
Blif
r
r
r
Permanent magnet synchronous motor (PMSM) (10 pts)
What is the dq component - Park transform (20 pts)
8
6
Torqueing similarity/differences between PMSM, FOC BLDC motors and SEDC/PMDC motors (15 pts)
BLDC vs SEDC
BLDC vs PMDC
PMSM vs PMDC
BLDC Torq/Current Control loop. (15 pts)
Explain the role of and in the current loop controller .
Software
Power
Electronics
&
Sinusoidal
Wound
Stator
Permanent
Magnet Rotor
Explain why is set to 0.
If a torque = 10 Nm is generated when we set = 1A, what value should be set to if =30 Nm is desired?
Integration of Speed Control BLDC Motor and Q-Car model (20 pts)
Connect the block diagrams/equations for the quarter car system to the speed control BLDC motor drive.
Gear
Software
Permanent
Magnet Rotor
Power
Electronics
&
Sinusoidal
Wound
Stator
Wheel
Quarter Car
Speed Controller for a FOC BLDC Motor Electric Vehicle (30 pts)
A Simulink model for the PID control scheme is shown below. You are to build this Simulink model.
Submit a diagram of your Simulink model that satisfies the specs.
Change it to show your name and the date you worked on it.
Note: A step command for 0 to 60 mph.
Running the model with the shown PID setting yields the response with overshoot and a settling time of about 1 second.
Interpret the curves shows that the speed response is too fast and has a slight overshoot.
Submit the scope result from the best run you make.
Click on the PID Controller block and select auto tuning feature.
Submit the PID Control Prameters for the best run you make.
Use the tuner to to adjust the parameters and design a PIDN controller that satisfies the specs. 3 seconds
Desired Specs:
Go from 0 to 60 mph in 3 seconds with no overshoot
Submit the PID Tuner Info for the best run you make.
2019 Qns Review Homework Assignment B.docx 1 23 June 2019
0
0
1
B
éù
êú
=
êú
êú
ëû
r
[001],[111]&1
tt
Bil
==---=
r
r
B
r
li
r
f
r
AAN
A
BBN
B
CCN
C
VEV
I
sLR
VEV
I
sLR
VEV
I
sLR
--
=
+
--
=
+
--
=
+
0.
ABC
III
++=
(
)
1
3
NABCABC
VVVVEEE
=++---
0,100&200
ABC
VVV
===
0
ABC
EEE
===
5[]
R
=W
,&
ABC
III
30
40
s
éù
=
êú
-
ëû
v
-0.500.511.522.5
0
5
10
15
1 kHz Pulse Witdh Modulation: input, switching & output
va
0V
300V
vb
0V
300V
vc
0V
300V
S1
Lo
Hi
S2
Lo
Hi
S3
Lo
Hi
S4
Lo
Hi
S5
Lo
Hi
S6
Lo
Hi
VA
0V
300V
VB
0V
300V
VC
0V
300V
0ms1ms2ms
Dury Cycle
dcA=...............?
dcB=...............?
dcC=...............?
A
ABCB
C
V
V
V
éù
êú
=
êú
êú
ëû
V
10
20
30
ABC
éù
êú
=
êú
êú
-
ëû
I
s
I
I
a
b
éù
=
êú
ëû
I
ˆ
sin()
s
Arrr
N
EBlr
s
pqq
=
&
ˆˆˆˆ
cossin
s
j
ssssssss
IIIeIjI
q
qqq
===+
r
R
ˆ
&
ss
I
q
j
s
i
i
a
b
éù
=
êú
ëû
I
&
ss
I
I
r
5(53.134)
o
s
I
=-
r
R
123456
,,,,,
SSSSSS
?
s
I
8
6
s
éù
=
êú
ëû
I
s
I
r
ˆˆ
sin()
2
s
emrsrs
N
BrlI
tpqq
=-
ˆˆˆ
cossin
sssssss
IIIjI
qqq
==+
r
R
5.00
8.66
s
éù
=
êú
ëû
I
30
o
r
q
=
ˆ
2
r
B
=
0.1
l
=
0.1
r
=
158
115
0
A
ABCB
C
V
V
V
éù
éù
êú
êú
==
êú
êú
êú
êú
ëû
ëû
V
200
s
N
=
T
6
8
s
éù
=
êú
ëû
I
30
o
r
q
=
d
dq
q
I
I
éù
=
êú
ëû
I
s
I
&
dq
II
,&
srdq
q
II
30
o
r
q
=
ˆˆ
sin()
s
PMSMrsr
N
TBlrI
s
pqq
=-
300[V]
dc
V
=
ˆ
I
s
I
s
q
90
o
sr
-=±
sin()1
sr
-=±
ˆˆ
s
BLDCr
N
TBlrI
s
p
=±
A
SEDC
Ki
T
f
=
A
PMDCt
Ki
T
=
ˆˆ
s
BLDCr
N
TBlrI
s
p
=±
A
SEDC
Ki
T
f
=
t1t2t3t4t1t2t3t4
0ms1ms2ms
t4
t1=0.5*T0 t2=t1+TSect t3=t2+TSect1 t4 = Ts
T0=.....................? TSect=....................? TSect1=.....................? Ts=...............?
S1
Lo
Hi
S2
Lo
Hi
S3
Lo
Hi
S4
Lo
Hi
S5
Lo
Hi
S6
Lo
Hi
1 kHz Space Vector Modulation: sequence and switching
Desired Field Vector
0ms1ms2ms
A
PMDCt
Ki
T
=
()
Cd
Gs
()
Cq
Gs
(
)
(
)
()
()
Cddrefd
d
q
Cqqrefq
Gsii
v
v
Gsii
éù
-
éù
êú
=
êú
êú
-
ëû
ëû
d
q
v
v
éù
êú
ëû
0
To be set
dref
qref
i
i
éù
éù
=
êú
êú
ëû
êú
ëû
d
rmrm
q
rmrm
v
v
cs
v
v
sc
a
b
éù
éù
-
éù
=
êú
êú
êú
ëû
ëû
ëû
()0
0()
Cd
Cq
Gs
Gs
éù
êú
ëû
0sectsect10
,,,
+
vvvv
d
q
v
v
10.50.5
00.8670.867
m
AmBmCm
m
i
III
i
a
b
éù
--
éùéùéù
=++
êú
êúêúêú
-
ëûëûëû
ëû
d
m
rmrm
q
m
rmrm
i
i
cs
i
i
sc
a
b
éù
éù
éù
=
êú
êú
êú
-
ëû
ëû
ëû
, ,
AmBmCm
Measurement
III
rm
Measured
q
dref
i
em
t
qref
i
0sectsect10
0.5,,,0.5
tttt
+
em
t
TRgem
TNT
=
mr
=
1
rwh
g
N
=
1
rwh
g
N
=
&&
1
TRTR
wh
FT
r
=
1
whxT
wh
v
r
q
=
&
1
wh
wh
s
r
q
=
()
p
Gs
100
100
s
éù
=
êú
-
ëû
v
qref
Desired
Current
i
speed
v
Command
Reference
ref
v
Approximateplantmodel (car &FOC BLDC)
1000
()
(10)(100)
p
Gs
ss
»
++
300[V]
dc
V
=
(
)
evBl
=´·
r
r
r
e
x
y
z
v
vv
v
éù
êú
=
êú
êú
ëû
r
x
y
z
B
BB
B
éù
êú
=
êú
êú
ëû
r
x
y
z
l
ll
l
éù
êú
=
êú
êú
ëû
r
&
´·
(
)
cross product
dot product
eVectorevB
eeel
=´
=·
r
rr
r
r
0
0
1
B
éù
êú
=
êú
êú
ëû
r
0
1
0
v
éù
êú
=
êú
êú
ëû
r
1
0
0
l
éù
êú
=
êú
êú
ëû
r
0
1
0
v
éù
êú
=
êú
êú
ëû
r
1
0
0
eVector
éù
êú
=
êú
êú
ëû
0
0
1
B
éù
êú
=
êú
êú
ëû
r
e
-+
1
0
0
l
éù
êú
=
êú
êú
ëû
r
1
e
=
&
eVectore
e
-+
0
1
0
l
éù
êú
=
êú
êú
ëû
r
0
0
1
l
éù
êú
=
êú
êú
ëû
r
l
r
1
1
1
l
éù
êú
=
êú
êú
ëû
r
(
)
(
)
fliBilB
=´=´
rr
rr
r
,&
fiB
r
r
r
[001],[111]&1
tt
Bil
===
r
r
[
]
110
t
f
=-
r
,&
Blif
r
r
r