QUBE-Servo 2 - Second Order Systems Workbook (Student)
QUBE-Servo 2 - Second Order Systems Workbook (Student)
QUBE-Servo 2 - Second Order Systems Workbook (Student)
Topics Covered
Prerequisites
Consider a secondorder system as shown in Equation 1.1 subjected to a step input given by
R0
R(s) = ,
s
with a step amplitude of R0 = 1.5. The system response to this input is shown in Figure 1.1, where the red trace is
the output response y(t) and the blue trace is the step input r(t).
From the initial step time, t0 , the time it takes for the response to reach its maximum value is
tp = tmax − t0 . (1.3)
In a secondorder system, the amount of overshoot depends solely on the damping ratio parameter and it can be
calculated using the equation ( )
− √ πζ
1−ζ 2
P O = 100e . (1.4)
The peak time depends on both the damping ratio and natural frequency of the system and it can be derived as:
π
tp = √ . (1.5)
ωn 1 − ζ 2
Generally speaking, the damping ratio affects the shape of the response while the natural frequency affects the
speed of the response.
Θm (s) K
P (s) = = . (1.6)
Vm (s) s(τ s + 1)
where K is the model steadystate gain, τ is the model time constant, Θm (s) = L [θm (t)] is the motor / disk
position, and Vm (s) = L [vm (t)] is the applied motor voltage. The default values for the model parameters are
K = 22.4 rad/s/V and τ = 0.15 s.
The controller is denoted by C(s). In this lab, we are only going to use unity feedback therefore
C(s) = 1. (1.7)
The closedloop transfer function of the QUBEServo 2 position control from the reference input R(s) = Θd (s) to the
output Y (s) = Θm using unity feedback as shown in Figure 1.2 is
K
Θd (s)
= 2 1τ K
. (1.8)
Vm (s) s + τs+ τ
1. Given the QUBEServo 2 closedloop equation under unity feedback in Equation 1.8 and the default model
parameters given above or, preferably, using more precise model parameters found by going through one of
the modeling experiments (e.g. Step Response Modeling laboratory experiment), find the natural frequency
and damping ratio of the system.
2. Based on your obtained ωn and ζ, what is the expected peak time and percent overshoot?
3. Build and run the QUARCr controller. The scopes should look similar to Figure 2.2.
4. Attach the QUBEServo 2 position response showing both the setpoint and measured positions in one scopes
as well as the motor voltage.
Hint: For information on saving data to MATLABr for offline analysis, see the QUARCr help documentation
(under QUARC Targets | User’s Guide | QUARC Basics | Data Collection). You can then use the MATLABr
plot command to generate the necessary MATLAB figure.
Quanser Inc.
119 Spy Court
Markham, Ontario
L3R 5H6
Canada
info@quanser.com
Phone: 19059403575
Fax: 19059403576
For more information on the solutions Quanser Inc. offers, please visit the web site at:
http://www.quanser.com
This document and the software described in it are provided subject to a license agreement. Neither the software nor this document may be
used or copied except as specified under the terms of that license agreement. Quanser Inc. grants the following rights: a) The right to reproduce
the work, to incorporate the work into one or more collections, and to reproduce the work as incorporated in the collections, b) to create and
reproduce adaptations provided reasonable steps are taken to clearly identify the changes that were made to the original work, c) to distribute
and publically perform the work including as incorporated in collections, and d) to distribute and publicly perform adaptations. The above rights
may be exercised in all media and formats whether now known or hereafter devised. These rights are granted subject to and limited by the
following restrictions: a) You may not exercise any of the rights granted to You in above in any manner that is primarily intended for or directed
toward commercial advantage or private monetary compensation, and b) You must keep intact all copyright notices for the Work and provide the
name Quanser Inc. for attribution. These restrictions may not be waved without express prior written permission of Quanser Inc.