Lab 11. Speed Control of a D.C. motor Motor Characterization Motor - - PowerPoint PPT Presentation

lab 11 speed control of a d c motor
SMART_READER_LITE
LIVE PREVIEW

Lab 11. Speed Control of a D.C. motor Motor Characterization Motor - - PowerPoint PPT Presentation

Lab 11. Speed Control of a D.C. motor Motor Characterization Motor Speed Control Project Generate PWM waveform 1. Amplify the waveform to drive the motor 2. Measure motor speed 3. Estimate motor parameters from measured data 4. Regulate


slide-1
SLIDE 1

Lab 11. Speed Control of a D.C. motor

Motor Characterization

slide-2
SLIDE 2

Motor Speed Control Project

1.

Generate PWM waveform

2.

Amplify the waveform to drive the motor

3.

Measure motor speed

4.

Estimate motor parameters from measured data

5.

Regulate speed with a controller

Computer System 12v DC Motor Tachometer Speed Measurement Amplifier 9v Power Supply Labs 11/12

slide-3
SLIDE 3

Goals of this lab

 Experimentally determine the control system

model of the motor/hardware setup

 Measure response to a step input

(determine time constant, gain, etc.)

 This model will be used in the design of a

speed controller

slide-4
SLIDE 4

Motor control system modeled as a feedback system

PWM signal Tachometer + comparator/counter (period)

  • r envelope detector (amplitude)

Software User entry (system input)

(Frequency domain model)

slide-5
SLIDE 5

Simplified system model

Duty cycle of PWM signal period

  • r amplitude

Switch setting

Determine experimentally

The Plant G(S) Controller C(S) + _ Measured Signal Y(S) Setpoint R(s) Error E(S) Computer Software Motor and Electronics Control Action X(S)

slide-6
SLIDE 6

What goes into the plant G(s)?

 Amplifier dynamics  Electrical dynamics (motor winding has

inductance and resistance)

 Mechanical dynamics (motor rotor has inertia

and experiences friction)

 Sensor dynamics (filter has capacitance and

resistance) OVERALL: A 3rd order model (or higher)

slide-7
SLIDE 7

An Empirical Modeling Approach

Experimentally determine “plant” model, G(s)

1.

Apply a “step input” to the Plant

step change in the duty cycle of the PWM signal driving the motor

2.

Measure the motor system “response” to this step input

measure speed change over time

3.

Derive parameters of G(s) from the measured response

slide-8
SLIDE 8

Response y(t) of a 1st-order system to a step input x(t)

) (t y t

Motor speed (ADC reading) Plant input = change in PWM duty cycle (at t = 0)

) (t x

slide-9
SLIDE 9

First-order system model

x(t) = system input y(t) = system output K = gain τ = time constant Solution if step input applied at t=0 (step response): System equation: ∆x = input change at time t=0 Laplace transform (plant transfer function):

) ( ) ( t y dt dy t Kx + = τ

) )( ( ) (

/τ t

e t x K t y

− ∆ = ∆ 1

1 + = = s K s X s Y s G τ ) ( ) ( ) (

slide-10
SLIDE 10

Experimentally determining G(s) for the first-order system

 After the transient period (t large), study output y:  At t=τ, step response is:

x y K x K y ∆ ∆ = ∆ = ∆

Experimentally measure change in y (after large t) to compute gain, K.

) 632 . ( ) ( ) 1 ( ) (

/

x K y e x K y ∆ = − ∆ =

τ τ

τ τ

Experimentally measure time at which y(t) = 63.2%

  • f final value to determine

time constant, τ.

slide-11
SLIDE 11

Finding gain K

t

y ∆ x ∆ x y K ∆ ∆ =

large t

slide-12
SLIDE 12

Finding time constant τ

τ

t

y ∆

t = 0

y ∆ 632 0. x ∆

τ τ 5

  • r

4 time settling ≈

slide-13
SLIDE 13

Verify model in MATLAB/Simulink

(Controller to be added to this to compute the controller parameters.)

slide-14
SLIDE 14

First-order response with delay

) (t y ) ( t t y ∆ − t t ∆

x ∆

slide-15
SLIDE 15

First-order system with delay

ts

e s K s G

∆ −

+ = 1 τ ) (

represents time delay ∆t

ts

e ∆

slide-16
SLIDE 16

Second-order step response

  • verdamped

(real, unequal poles) underdamped critically damped

slide-17
SLIDE 17

Underdamped 2nd-order model

( ) ( )

2 2 2

2

n n n

s s K s X s Y s G ω ζω ω + + = = ) (

damping factor undamped natural frequency gain

slide-18
SLIDE 18

2nd-order model character (a)

 Underdamped ( 0 < ζ < 1 ) model has

complex conjugate poles:

 time constant: inverse of the |Re| part

    

Im Re , 2 2 1

1 ζ ω ζω − ± − =

n n

j s

τ = 1 ζωn

slide-19
SLIDE 19

Underdamped step response

t

y ∆ x ∆ x y K ∆ ∆ =

  • vershoot

period frequency n

  • scillatio

damped π ω 2 =

d

τ 4 time settling ≈

slide-20
SLIDE 20

2nd-order model character (b)

 oscillation frequency (rad/s): Im part  overshoot (% of final value)

 a function only of damping factor

ωd = ωn 1−ζ 2

% overshoot = e

− Re Im       π

×100

slide-21
SLIDE 21

Other 2nd-order forms

 Critically damped model has 2 equal poles  Overdamped model has unequal poles

( ) ( )

2

1 + = s K s G τ

( ) ( )( )

1 1

2 1

+ + = s s K s G τ τ

slide-22
SLIDE 22

Lab Procedure

 Re-verify hardware/software from previous labs  Modify software to measure the period (or voltage) of

the tachometer signal following a step input

 “Step input” = change in selected speed  Save values in an array that can be transferred to the host

PC after the motor is stopped

 Plot measured speed vs. time  Choose a model (1st-order? 2nd-order?)  Determine model parameters and write the transfer

function G(s)

 Compare step response of G(s) to the experimental

response (suggested tool: MATLAB/Simulink)