ME 475 Mechatronics: Semester: July 2015
ME 475 Mechatronics: Semester: July 2015
1
9/7/2015
http://mechatronics.colostate.edu/figures/E1-2.jpg http://my.safaribooksonline.com/book/electrical-engineering/electrical-
controls/9789332512092/chapter-1dot-introduction/heading_00003_chapter001_xhtml
What are the different types of response exist in a dynamic system? Transient / Steady-state /
Illustrate their characteristics. Natural response Forced response
2
9/7/2015
3
9/7/2015
Mechatronics Solution: First order system Mechatronics Solution: First order system
Consider a homogeneous differential equation, Consider a non-homogeneous differential equation (step input),
dy dy
a + by = 0 a + by = c
dt dt
Assume, p ≅ d/dt
Assume, yp ≅ A and dyp /dt = 0
c
Characteristic equation: ap + b = 0 Particular integral is: by p = c ⇒ y p = A =
dy b
b Ramp input: a + by = ct + d
Root is p=− dt
a Assume, yp ≅ At + B and dyp /dt = A
Complementary function is yc = Ce Pt = Ce−(b / a )t Particular integral is: aA + by p = ct + d ⇒ aA + bAt + bB = ct + d
Complementary function = transient solution which decreases in c bAt + ( aA + bB ) = ct + d
bA = c ⇒ A =
magnitude with increasing values of time and ultimately vanish. b yss = At + B
(Natural response) ac bd − ac c bd − ac
aA + bB = d ⇒ + bB = d ⇒ B = = t+
Particular integral = steady-state solution which does not modify b b2 b b2
with increasing values of time. (Forced response) Complete solution is: y = yc + y p
Mechatronics Matlab code: First order system Mechatronics Response: 1st order system
0 t =0
Step Input: x(t ) = dy
M t > 0 τ + y = Kx ( t )
y ( t ) = yo t = 0 dt
Response equation: y ( t ) = KM (1 − e − t /τ ) + yo e − t /τ
4
9/7/2015
Mechatronics Response: 1st order system Mechatronics Matlab code: First order system
0 t =0
Step Input: x(t ) = dy
M t > 0 τ + y = Kx ( t )
y (t ) = 0 t = 0 dt
Response equation: y ( t ) = KM (1 − e − t /τ )
Mechatronics Response: 1st order system Mechatronics Matlab code: First order system
y ( t ) / y∞
1
τ =
a
5
9/7/2015
Mechatronics Response: 1st order system Mechatronics Response: 1st order system
Mechatronics Response: 1st order system Mechatronics Response: 1st order system
0 t =0 y (t )
Ramp Input: x(t ) = dy
at t > 0 τ + y = Kx ( t ) Ramp response = τ ( e − t /τ − 1) + t
y (t ) = 0 t = 0 dt Ka
y (t )
Non-dimensional response: = τ ( e − t /τ − 1) + t
Ka
y (t )
Ramp response: t =τ, = 0.36τ
Ka
6
9/7/2015
Consider a homogeneous differential equation, Consider a non-homogeneous differential equation (step input),
d2y dy d2y dy
a 2 + b + cy = 0 a 2 + b + cy = d
dt dt dt dt
Assume, p ≅ d/dt and p2 ≅ d2/dt2
Assume, yss ≅ A, dyss /dt = 0 and d2yss /dt2 = 0
Characteristic equation: ap 2 + bp + c = 0 d
Steady-state solution is: cyss = d ⇒ yss = A =
−b ± b 2 − 4ac 2 c
Roots are p = Transient solutions are: d y dy
2a Ramp input: a 2 + b + cy = dt + e
dt dt
Case 1: p1, p2 ---- real and unequal roots Assume, yss ≅ At + B, dyss /dt = A and d2yss /dt2 = 0
yt = C1e P1t + C2 e P2t Steady-state solution is: bA + cyss = dt + e ⇒ bA + cAt + cB = dt + e
Case 2: p1, p2 ---- real and equal roots (p1 = p2 = p) d cAt + ( bA + cB ) = dt + e
yt = C1e Pt + C2te Pt cA = d ⇒ A =
c yss = At + B
Case 1: p1, p2 ---- complex conjugates (p1 = m + jn, p2 = m - jn)
bd ce − bd d ce − bd
yt = emt ( C1 sin nt + C2 cos nt ) bA + cB = e ⇒ + cB = e ⇒ B = = t+
c c2 c c2
Complete solution is: y = yt + yss
m m
7
9/7/2015
The magnitude of the damping ratio affects the transient Question: Obtain the complete solution for equation:
response of the system to a step input change, as shown in the d2 f df
2
+ 2ςωn + ωn2 f = ωn2 K
following table. dt dt
with (a) ζ = 0, (b) ζ = 1, (c) ζ < 1 and (d) ζ > 1.
Magnitude of damping ratio Transient response Assume the system initially at rest.
Characteristic equation: p + 2ςωn p + ωn = 0
2 2
8
9/7/2015
Mechatronics Second order system Mechatronics Matlab code: Second order system
Question: Obtain the complete solution for equation: Question: Obtain the complete solution for equation:
d2 f df d2 f df
2
+ 2ςωn + ωn2 f = ωn2 K 2
+ 2ςωn + ωn2 f = ωn2 K
dt dt dt dt
with (a) ζ = 0, (b) ζ = 1, (c) ζ < 1 and (d) ζ > 1. with (a) ζ = 0, (b) ζ = 1, (c) ζ < 1 and (d) ζ > 1.
Assume the system initially at rest. Assume the system initially at rest.
Characteristic equation: p + 2ςωn p + ωn = 0
2 2
Roots are p = − ζ ± ζ 2 − 1 ωn
(b) ζ = 1 (Critical damping)
Roots are p = −ωn ± 0
Transient solution: ft = C1e−ωnt + C2te −ωnt
Steady-state solution: f ss = K
Complete solution: f = C1e −ωnt + C2te−ωnt + K
Initial condition: f = 0, df / dt = 0; t = 0 ⇒ C1 = − K , C2 = −ωn K
Complete solution: f = K (1 − e−ωnt − ωn te −ωnt )
Question: Obtain the complete solution for equation: Question: Obtain the complete solution for equation:
d2 f df d2 f df
2
+ 2ςωn + ωn2 f = ωn2 K 2
+ 2ςωn + ωn2 f = ωn2 K
dt dt dt dt
with (a) ζ = 0, (b) ζ = 1, (c) ζ < 1 and (d) ζ > 1. with (a) ζ = 0, (b) ζ = 1, (c) ζ < 1 and (d) ζ > 1.
Assume the system initially at rest. Assume the system initially at rest.
Characteristic equation: p + 2ςωn p + ωn = 0
2 2
Characteristic equation: p + 2ςωn p + ωn = 0
2 2
9
9/7/2015
Mechatronics Response: 2nd order system Mechatronics Matlab code: Second order system
Step Input
Question: Draw a typical time response curve for a second with (a) ζ = 0,
order system with step input and define various parameters
used for transient response specifications.
Mechatronics Matlab code: Second order system Mechatronics Matlab code: Second order system
10
9/7/2015
Mechatronics Matlab code: Second order system Mechatronics Response: 2nd order system
Step Input
11
9/7/2015
Question: Show that for an under damped second order system, Question: Show that for an under damped second order system,
percentage of overshoot, %OS, can be evaluated as percentage of overshoot, %OS, can be evaluated as
− ζπ / 1−ζ 2 − ζπ / 1−ζ 2
%OS = e ×100 %OS = e ×100
where ζ is the damping ratio. where ζ is the damping ratio.
Percent overshoot, %OS - The percent overshoot is defined as the Percent overshoot, %OS - The percent overshoot is defined as the
amount that the waveform at the peak time overshoots the steady- amount that the waveform at the peak time overshoots the steady-
state value, which is expressed as a percentage of the steady-state state value, which is expressed as a percentage of the steady-state
value. cmax − c final value. cmax − c final
%OS = ×100 %OS = ×100
c final c final
− ζπ / 1−ζ 2
c final = c ( t → ∞ ) = 1 %OS = e ×100
cmax = c ( t = Tp )
− ζπ / 1−ζ 2 ζ
− ζπ /
1−ζ 2
cmax = c ( t = Tp ) = 1 − e
cos π + sin π = 1 + e
1− ζ 2
12
9/7/2015
Question: Starting from the general response equation for an Question: Starting from the general response equation for an
underdamped second order system, derive an expression for underdamped second order system, derive an expression for Rise
settling time. time. Reference: K. Ogata, Modern Control Engineering
Setting time, Ts - The settling time is the time required for the Rise time, Tr – The rise time is the time required for the response
amplitude of the sinusoid to decay to 2% of the steady-state to rise from 10% to 90%, or 5% to 95%, or 0% to 100% of its final
value. value. For under damped second order systems, the 0% to 100%
To find Ts, we must find the time for which c(t) reaches & stays rise time is normally used. For overdamped systems, the 10% to
within ±2% of the steady state value, cfinal.. The settling time is the 90% rise time is commonly used.
time it takes for the amplitude of the decaying sinusoid in c(t) to
reach 0.02, or c − c ( t ) = 0.02
final
1
⇒ e −ζωnTs = 0.02
1− ζ 2
Ts ≈
4 (
− ln 0.02 1 − ζ 2 )
ζωn ⇒ Ts = ζωn
Question: Starting from the general response equation for an Question: Starting from the general response equation for an
underdamped second order system, derive an expression for Rise underdamped second order system, derive an expression for Rise
time. Reference: K. Ogata, Modern Control Engineering time. Reference: K. Ogata, Modern Control Engineering
π −β
Tr =
ωd
13