ELEC30x0 Lab11 Characterization Slides
ELEC30x0 Lab11 Characterization Slides
Speed Control of
a D.C. motor
Motor Characterization
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
12v DC
Tachometer
Motor
9v Speed
Power Amplifier Measurement
Supply Labs 11/12
Computer
System
Goals of this lab
User
entry
(system
input)
Tachometer + comparator/counter (period)
or envelope detector (amplitude)
Simplified system model
Duty cycle of Determine
Switch PWM signal experimentally
setting
Motor and
Control Electronics
Setpoint Error Action
R(s) E(S) Controller X(S) The Plant
+
C(S) G(S)
_
Measured Signal
Y(S)
Computer Software
period
or amplitude
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)
∆y
∆y
K=
∆x ∆x
large t t
Finding time constant τ
∆y
0.632∆y
∆x
t=0
τ
t
settling time ≈ 4τ or 5τ
Verify model in MATLAB/Simulink
y (t ) y (t − ∆t )
∆x
∆t t
First-order system with delay
K − ∆ts
G( s ) = e
τs + 1
− ∆ts
e represents time delay ∆t
Second-order step response
underdamped
critically damped
overdamped
(real, unequal poles)
Underdamped 2nd-order model
Y (s ) ωn2
G( s ) = =K 2
X (s ) s + 2ζω n s + ωn
2
gain
damping
factor undamped natural
frequency
2nd-order model character (a)
Underdamped ( 0 < ζ < 1 ) model has
complex conjugate poles:
s1,2 = −ζω n ± j ωn 1 − ζ 2
Re Im
∆y ∆y
K=
∆x
∆x
settling time ≈ 4τ t
2nd-order model character (b)
oscillation frequency (rad/s): Im part
ω d = ω n 1− ζ 2
overshoot (% of final value)
Re
− π
Im
% overshoot = e ×100
G (s ) =
K
(τs + 1)2
G (s ) =
K
(τ 1s + 1)(τ 2s + 1)
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)