Electric and Hybrid Drive Systems homework

profileansediao
2019QnsReviewHomeworkAssignmentC0.docx

ECE 4/5630 Electric & Hybrid Drive Systems Prof Ka C Cheok

PWM Sound Playback (5 pts)

https://learn.adafruit.com/system/guides/images/000/000/399/medium800/preview.jpg?1396717983

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)

You are asked to turn on & off the switches so the 3-phase inverter would produce PWM voltage that is equivalent to [V]. The PWM frequency is 1 kHz and the DC power supply to the inverter is . Sketch the waveforms of the variables and complete the missing info for the duty cycles in the following timing diagram.

Space Vector Modulation (20 pts)

You are asked to control the switches so the 3-phase inverter would produce a SVM sequence and timing & that is equivalent to [V]. The SVM frequency is 1 kHz, and the 3-phase inverter DC power supply is . Sketch the waveforms for the variables and complete the timing information in the following diagram.

Electromotive force (voltage) (20 pts)

Faraday discovered that an electromagnetic force (voltage) is produced when a conductor moves through a magnetic field. Faraday’s law is described by the expression, where

= the magnitude of induced emf (voltage) in the conductor

= the velocity of the conductor

Brush up on cross product and dot product.

See the role of these vectors.

= the magnetic field

= the direction and length of the conductor

the symbols are cross product and dot product operators. The law can be split up into two operations:

This Matlab program implements the two operations, and plot and print the eVector & eMagnitude, for the case, &

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

Modify the Matlab program, and find the and interpret the results for each of the following cases:

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) .

c)

The case of general motion to the magnetic field (example with = [1 1 1]’)

y

x

z

y

x

z

c) .

Electromechanical force (20 pts)

Lorentz’s law is given by where are force, current and magnetic field vectors. Below is an illustration of when , resulting in . Superscript t denotes transpose of a vector. The Matlab m-script in the box was used to compute the Lorentz’s law and plot the results . The were then interpreted & hand sketched in the diagram next to it.

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

Your task is to investigate the case when . Modify and run the Matlab program to produce the computer result. Interpret the result and hand sketch, as accurately as you can, the arrow (blue), arrow (green) & the arrow (red) for the case.

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

Kirchoff’s current law said that Show (with detail equations) that this leads to the central node voltage:

Steady state stator currents

Suppose that , , and . What is the steady state value of the currents ?

Clarke Transform

Field to 3-phase transformation – Inverse Clarke transform

Given a desired field oriented voltage , what is the equivalent non-negative 3-phase voltage vector ? Why do we require these voltage to be nonnegative?

3-phase to field transformation – Clarke transform

Given a desired field oriented current , what is the equivalent field oriented current vector ?

Back emf in 3 phase winding stator (10 pts)

A permanent magnet rotor spins in a 3-phase stator with sinusoidal distributed winding, Phase A winding would experience a back emf given by. What would be the back emf representation for Phase B and Phase C?

Phasor and space vector (10 pts)

A phasor is a complex variable of the form , where are the magnitude and phase angle, and is the unit imaginary component. A space vector is a real variable of the form , which is a 2-D Cartesian coordinate. Both can be used to represent the same quantity (think polar and Cartesian coordinates).

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