Documente Academic
Documente Profesional
Documente Cultură
ENGR/MECE 3350U
Fall 2014
Supported by
Revised by Cliff Chan
Page 2 of 12
1. Laboratory Objectives
The objective of this laboratory is to develop your understanding of modeling for control
design and to practice modeling skills using the DC Motor Control Trainer.
In particular, you will have to:
practice the first principle of the system modeling,
determine the system parameters by experimental tests, and
develop an insight into the linear and nonlinear aspects of the model.
3. Introduction
Modeling is an essential aspect of the control system study. The key elements of modeling
are briefly outlined as:
Get an overview of the system and get familiar with its components.
Understand the physics of the system and how the system works.
First principles involving in component modeling.
Modeling from the experimental tests Parameter Estimation.
Disturbances applied to the system.
Model uncertainty.
Model validation.
Page 3 of 12
An overview of the system can be obtained by the pictures, schematic diagrams, and the
block diagrams. This gives the representations of a system, which emphasizes the aspects
of the system that are relevant for the control and suppresses many details. The work is
guided by focusing on the variables that are of primary interest for control.
The block diagram presents a natural partition of the system. The mathematical
descriptions of the behavior of the subsystems representing each block are necessary to
have a complete model. In control it is often sufficient to work with the linearized models,
where the dynamics are represented by the transfer functions. These transfer functions can
be obtained from the first principles by applying the basic physical laws that describe the
subsystems or by experiments on a real system. First principle modeling always requires a
good knowledge of the physical phenomena involved and a good sense for reasonable
approximations.
Experiments on the actual physical system are good complements to the first principles of
system modeling. This can also be used when the knowledge required for first principles
modeling is not available.
It is a good practice to start the experiments by first determining the static input-output
characteristics of the actual system. For the systems with several inputs (Multi-Inputs as
for the case of the motor in the DCMCT) one can often obtain an additional insight to the
dynamics of the system by exploiting all the input signals.
4. Nomenclature
The following list of nomenclature, as described in Table 1.1, is used for the modeling of
an open-loop control system.
Page 4 of 12
Description
Unit
Vm
Td
N.m
Tm
N.m
Im
km
N.m/A
Rm
Lm
mH
Jm
kg.m2
J1
kg.m2
kg.m2
Jeq
K
rad/s
V
rad/(V.s)
s
M1
kg
r1
mH
Sampling Interval
laplace Operator
rad/s
Continuous Time
5. Laboratory Session
5.1. QICii Modeling Module
The main tool for this laboratory experiment is the front panel of the module entitled
Modeling in the QICii software, which should be similar to the one shown in Figure 1.1.
As a quick module description, Table 1.2 lists and also describes the main elements
composing the QICii Modeling module user interface. Every element is uniquely
identified through an ID number and located in Figure 1.1.
Page 5 of 12
ID#
Label
Parameter
Description
Unit
Speed
Rad/s
Current
Im
Vm
5
6
7
Voltage
Signal
Generator
Amplitude
Frequency
Offset
Speed
9
10
11
12
Voltage
K
Tf
Vm
K
Tf
V
Hz
V
rad/s
V
rad/(V.s)
s
s
The Modeling Module program runs the process in the open-loop condition by utilizing
the motor voltage given by the signal generator. There are two windows that show the
time histories of the motor speed and the motor voltage, respectively.
A simulation study of the system runs in parallel with the hardware. The output of the
simulation study can be used for the model fitting and the parameter validation. The input
for the simulation study is equal to the motor voltage while the output of the simulation is
displayed (blue trace) in the same window as the actual motor speed (red trace).
The parameters K and t of the simulation model could be adjusted from the front panel.
The simulated motor speed,
s (s)
KVm ( s)
s 1
The implemented digital controller in the QIC runs at 100Hz. Thus the sampling interval
is therefore being equal to h = 0.01 [s]
The actual speed is obtained by filtering the position signal using the following filter:
s m
Tf s 1
Page 7 of 12
Once it is loaded, the controller code stays on the QICii (even when the power to the
DCMCT is off).
To start the controller, press down the DCMCT User Switch (i.e., the pushbutton next to
the two flashing LED's). The two LED's stop flashing The controller starts running.
Select the Connect to data source button on top of the QICii window in order to be able
to receive / send data from / to the controller. LED2 should now turn on.
Amplitude Frequency
[V]
[HZ]
2.0
0.4
Offset
[V]
K
[Rad/V.S]
[S]
0.0
10.0
0.2
[s]
Tf
0.0
Experimental Procedure
A procedure of this type is very useful in order to make sure that a system will function
properly.
2. Start with a zero value of voltage on the motor and increase the voltage gradually
until the motor starts to move. Determine the value of the voltage (start-up
voltage) when this occurs. Repeat the test with negative values of voltages. What
forces are restricting the motor from spinning?
Page 8 of 12
3. Determine the actual maximum value of the motor velocity and compare it with
the calculate one. To determine the calculated value, you have to record the motor
velocity values subjected to the change of the input voltage from -3V to 3V with
an increment of 1V. Then, draw a best-fit-line through these data points. Next,
extrapolate the motor velocity values to determine the calculated maximum value
of the motor velocity. Do you see the difference between the actual and the
calculated values? (Hint: You may or may not see the difference. In either case,
explain your observation.)
To estimate the motor resistance experimentally, follow the steps described below:
1. Set the generated signal amplitude to zero. If the signal offset is different from
zero then the motor will spin in one direction, since a constant voltage is applied.
You can change the applied voltage by entering the desired value in the Offset
numeric control of the Signal Properties box. You can also read off the actual
value of the current of the motor from the digital display. The value is in Amperes.
Fill up the following table (i.e., Table 1.4). For each measurement hold the
motor shaft stationary by grasping the inertial load to stall the motor.
Note that for zero Volts you will measure a current, Ibias that is possibly a non-zero
value. This is an offset in the measurement, which you will need to subtract from
the subsequent measurements in order to obtain the exact value of the current
(Im(i) = Imeas(i)-Ibias). Note also that the current value shown in the digital display
is filtered and you must wait for the value to settle down (steady state is reached)
before writing it down.
Page 9 of 12
V m (i)
SAMPLE
i
Voltage
Offset [V]
-5
-4
-3
-2
-1
10
Offset in Measured
Current: I bias[A]
[V]
V m (i)
Measured Current: I
[V]
meas[A]
Corrected for
Bias: I m (i) [A]
Resistant:
Rm(i) [ ]
From the values noted in Table 1.4, calculate the values of the motor resistance Rm(i) for
every iteration and obtain an average value for it, Ravg. Explain the procedure that you
have used to estimate the resistance Rm.
2. From the system parameters, which are given in Appendix A, the value of the
resistance is 10.6 10%. Compare the estimated value for Rm (i.e., Ravg) with the
specified value and discuss your results in detail.
Page 10 of 12
V m
Rm I m
G ,V ( s )
where
1
system constant;
km
and
K
s 1
J eq Rm
km
From the above estimates, determine a numerical expression for the open-loop transfer
function G,V of the motor (Jeq = 0.0000221 kg.m2, 0.130 s). What are the estimated
open-loop steady-state gain value and the time constant?
Page 11 of 12
V m (i)
SAMPLE
i
Offset
Voltage [V]
-5
-4
-3
-2
-1
10
R aver
[]
Offset in Measured
Current: I bias[A]
[V]
V m (i)
[V]
Measured Speed:
m (i) [Rad/S]
meas (i)
[A]
m (i)
[A]
K m (i)
[V.s/Rad]
Hint: Can the fluctuations in the velocity signal be related to the motor position?
Page 12 of 12
Page 1 of 6
1. Experiment Objective
The objective of this experiment is to develop your understanding of modeling for control
system design and to practice modeling skills using the DC Motor Control Trainer.
In particular, you will:
Observe and understand the transient response of a first-order dynamic system
Practice modeling from experimental tests
Understand the importance and the technique of system validation
2. Lab Preparation
Before the proceeding you should review the modeling experiment you did in Lab 1.
3. Introduction
Model of a dynamic system can be approximated by exciting the system with a known
input and observing its system response. The so called bump test is a simple method to
determine the response based on a step function input. When a step input of known
amplitude is applied to a dynamic system, its time response is captured until the condition
of steady-state is reached. A graphical method (as described in Section 4.1.1) can then be
applied to the plot of time response to estimate the parameters of the dynamic system.
For instance, in the case of the first-order system, the system gain, K and the time
constant, can be estimated. A model can in principle be obtained by applying any type
of input to the system and analyzing the corresponding response. There is abundant
literature and good software available to do this. In this experiment we will utilize a
simple graphical method. You can review your lecture notes on this subject.
When a model is obtained, it is a good practice to assess the validity of the model by
running simulations of the model and comparing its response with that of the actual
system. To determine how closely a model resembles or fits the actual system, we
usually compare the difference of their responses by measuring the error (as described in
Section 4.2.1) between them. Model validation is an important procedure that should be
performed in order to give a level of confidence in the expected performance before such
model is applied to a closed-loop system.
Page 2 of 6
4.
In-Laboratory Content
4.1.1 Preamble
The bump test is a simple model estimation method based on the step response of a stable
system. It is carried out by inducing a step input of known amplitude to a stable system,
whose output will eventually reach the equilibrium state. If the system output is recorded
during the estimation period (from the time when the step input is induced until the time
when steady state is reached), a plot of the time response, similar to the one depicted in
Figure 1 for a first-order system, can be produced. As you recall from Lab 1, the DC
motor control system actually demonstrates a first-order system response. Thus, we will
approximate the motor control system according to the first-order system transfer
function given below:
G , V ( s )
K
s 1
[2.1]
Assuming that the input changes with u and that the corresponding change in the
steady-state output is y, an estimate of the steady-state gain is then given by:
y
u
[2.2]
The quantity (time constant) is approximately given by the time the output has reached
63% of its total change at steady state.
Amplitude
[V]
Frequency
[Hz]
Offset
[V]
K
[rad/(V.s)]
Square
Wave
0.4
0.0
[s]
Page 4 of 6
4. Repeat the procedure for a few different signal amplitudes, as well as for the
rising and falling steps. Average your estimated parameters.
[2.3]
where
i is the index of the data point, and n is the index of the last (at the end of the validation
period) data point.
Page 5 of 6
Alternatively, Eq. [2.3] can be expressed in terms of its relative percentage error, given
by:
[2.4]
Page 6 of 6
Page 1 of 11
1. Laboratory Objective
The objective of this laboratory is to develop an understanding of the PI (Proportional +
Integral) control (applied to speed control), how does it work, and how it can be tuned to
meet the required specifications.
In particular, in this experiment you will explore:
The process is represented by a block which has the motor voltage Vm and the torque Td
as the inputs and the motor speed m as the output. The torque is typically a disturbance
torque that you can apply manually to the inertial load.
Page 2 of 11
The velocity is actually computed in the PIC by filtered differences of the motor angle m
using the following relationship
where Tf is the time constant of the filter and s is the Laplace Transform operator.
The controller block represents the control algorithm in the computer and the power
amplifier. Vsd is a simulated external disturbance voltage.
where, u(t) is the control signal, r(t) the reference, and y(t) the measured process output.
Page 3 of 11
The reference r(t) is also called the set-point or the command. The linear behaviour of the
controller is governed by three parameters:
Further in this experiment, we introduce a fourth parameter, aw, which governs the
nonlinear properties of the controller.
Sometimes the filtered measurement yf(t) is also used in the control loop. It is computed
from Tf, the time constant of filter for measured signal. The filter time constant Tf is
typically set to a constant value and it is often combined with the sensor. The filter
provides the roll-off at high frequencies.
It is important to reduce the effects of the sensor noise, which it improves robustness. In
this particular case, the filtering is incorporated in the calculation of the velocity from the
encoder signal.
Since the left-hand-side is a constant, the right-hand-side must also be a constant. This
requires that yss = rss. Notice that the only assumption, which has been made about the
process is that there exists an asymptotic steady-state value.
4. Laboratory Session
4.1 QICii Modeling Module
The main tool for this experiment is the front panel of the module entitled Speed Control
in the QICii software, which should be similar to the one shown in Figure 3.2.
Page 4 of 11
s m
Tf s 1
Page 5 of 11
ID#
Label
Parameter
Description
Unit
Speed
Rad/s
Current
Im
Voltage
Vm
Signal
Generator
Amplitude
Frequency
Hz
Offset
Speed
m,r
rad/s
Voltage
Vm
10
Kp
Kp
V.S/rad
11
Ki
Ki
V/rad
12
bsp
bsp
13
aw
aw
14
Tf
Tf
Page 6 of 11
Amplitud Frequency
e [Rad/s]
[HZ]
50.0
0.4
Offset
[V]
Kp
Ki
[V.S/Rad] [V/rad]
100.0
0.0
1.0
b sp
aw
0.0
0.0
Page 7 of 11
[s]
Tf
0.01
Step 1:
Set the reference signal to a square wave. Reasonable amplitude is 50 rad/s. When you
change the reference signal level ensure that the control signal does not reach saturation.
It may be useful to adjust the Offset of the signal generator so that the sign of the velocity
does not change. In this way you will avoid the effects of the Coulomb friction.
What is saturation?
Saturation is a nonlinear response and it also determines the physical control limit of
a system (e.g. how high the voltage you can supply to the motor until it stops
increasing the speed, as depicted in Fig. 4.1 below). When you sweep the control
signal from low to high level, the motor speed may behave nonlinearly when it
approaches its physical limits (upper and lower bounds). Saturation can limit the
controllable range of a system. Hence, it is important to know the saturation
characteristic of a system before a controller can be constructed. The effect of
saturation can be seen on a time-domain plot where a portion of the plot is chopped
off horizontally when the system is reaching its upper or lower limit. If such scenario
happens, you should lower the value of the control signal so to eliminate the effect of
saturation.
Page 8 of 11
Set the integral gain to zero. Set the proportional gain to 0.02 V.s/rad to start with. Ensure
that the following parameters of the Speed Control window, as displayed in Table 3.3, are
set properly.
Signal
Type
Amplitude
[rad/s]
Frequency
[Hz]
Offset
[rad/s]
ki
[V/rad]
kp
[V.s/rad]
bsp
Square
Wave
50
0.4
100
0.02
Step 2:
Change the proportional gain by incremental steps of 0.04 V.s/rad to investigate the
closed-loop system for the proportional controllers (ki = 0) with different gains.
What are your observations?
Step 3:
Determine the critical gain, kpc, where the system becomes critically stable and a
stable oscillation is achieved. Also determine the critical period Tpc of the
corresponding oscillations.
Step 4:
Describe the steady-state error to a step input.
Step 5:
Repeat the previous observations. Change the Amplitude of the reference signal and
observe under what conditions the control signal saturates.
Step 6:
Summarize your observations in your report. Select some representative results,
screen captures, and plots.
Page 9 of 11
Step 1:
Set the proportional gain to zero. Set the integral gain to 0.02 V/rad to start with.
Ensure that the parameters of the QICii module window, as listed in Table 3.4, are set
properly.
Signal
Type
Amplitude
[rad/s]
Frequency
[Hz]
Offset
[rad/s]
kp
[V.s/rad]
ki
[V/rad]
aw
Square
Wave
50
0.4
100
0.02
Step 3:
Determine the critical gain, kic where the system becomes critically stable and a
stable oscillation is sustained.
Also determine the critical period Tic of the corresponding oscillations.
Step 4:
Determine a value of the integral gain, which gives a set-point response without the
overshoot. Determine the settling time for the closed loop system.
Step 5:
Repeat the previous observations. Change the Amplitude of the reference signal and
observe under what conditions the control signal saturates?
Page 10 of 11
Step 6:
Summarize your observations in your report. Select some representative results,
screen captures, and plots.
Step 1:
Set the parameters of the QICii module window as listed in Table 3.5.
Signal
Type
Amplitude
[rad/s]
Frequency
[Hz]
Offset
[rad/s]
bsp
aw
Square
Wave
50
0.4
100
Step 3:
Set the integral gain to a constant value, like ki = 0.5 V.s/rad, and change the
proportional gain. Observe the tracking error and the control signal.
Step 4:
Summarize your observations in your report. Select some representative results,
screen captures, and plots.
Page 11 of 11
Page 1 of 11
1. Laboratory Objective:
The objective of this laboratory experiment is:
to develop an understanding of the Proportional plus Integral (PI) control (applied
to speed control),
as how the system works, and
as how it can be tuned in order to meet the required specifications.
In particular you will explore in this experiment the followings:
Ziegler-Nichols method
Set-point Weighting
Response to load disturbance
The velocity is actually computed in the PIC by filtered the differences of the motor
angle m using the following relationship:
where Tf is the filters time constant and s is the Laplace transform operator.
The controller block represents the control algorithm in the computer and the power
amplifier. Vsd is a simulated external disturbance voltage.
Make sure that you understand this fully.
The linear behaviour of the system is described by the transfer functions given in the
block diagram. The major nonlinearities are the saturation of the motor amplifier at 15 V,
the Coulomb friction corresponding to 0.5 V, and the quantization of the encoder.
The major un-modeled dynamics is due to the effects of the sampling and filtering. The
former can be approximated by a time delay of one sampling period.
3. Introduction
3.1 The Ziegler-Nichols Method
A good way to find the ball park values of the controller parameters is to look at pure
proportional and integral controllers and to determine the gains where the system become
critically stable (a.k.a., a stable). The Ziegler-Nichols frequency response method is a
classical tuning rule based on this idea. A proportional controller is adjusted so that the
system reaches the stability limit. The critical gain kpc where this occurs is observed
together with the period of oscillation Tpc.
In the early 1940s J.G. Ziegler and N.B. Nichols experimentally developed the PID
tuning methods based on the closed-loop tests. However the Ziegler-Nichols method
suffers from one major drawback.
That is the physical system has to tolerate to be brought into a critically stable state
without catastrophic consequences. For example, the sustained oscillation is generally out
of the question for most industrial processes.
The Ziegler-Nichols closed-loop method recommends the following PI controller gain
tuning:
Page 3 of 11
Figure 4.2: DCMCT Regulation Block Diagram with Simulated Load Disturbance
4. Laboratory Session
4.1 QICii Modeling Module
The main tool for this lab is the front panel of the module entitled Speed Control in the
QICii software, which should be similar to the one shown in Figure 4.3.
Page 4 of 11
s m
Tf s 1
Label
Parameter
Description
Unit
Speed
Rad/s
Current
Im
Voltage
Vm
Signal
Generator
Amplitude
Frequency
Hz
Offset
Speed
m,r
rad/s
Voltage
Vm
10
Kp
Kp
V.S/rad
11
Ki
Ki
V/rad
12
bsp
bsp
13
aw
aw
14
Tf
Tf
4. Once the download is complete, press the Reset button on the QICii one more
time. The two LED's should start flashing again.
5. Close the PIC downloader window.
Once loaded, the controller code stays on the QICii (even when the power to the DCMCT
is off).
To start the controller, press the DCMCT User Switch (i.e. the pushbutton next to the two
flashing LED's). The two LED's will stop flashing. The controller starts running. Select
the Connect to data source button on top of the QICii window to be able to receive/send
data from/to the controller. The LED2 should turn on.
Table 4.2: Default Parameters for the Speed Control Module
Signal Amplitud Frequency
Type e [Rad/s]
[HZ]
Square
Wave
50.0
Offset
Kp
Ki
b sp
[V]
[V.S/Rad] [V/rad]
0.4
100.0
0.0
1.0
0.0
aw
Tf
[s]
0.0
0.01
Amplitude
[rad/s]
Frequency
[Hz]
Offset
[rad/s]
bsp
aw
Square
Wave
50
0.4
100
Page 7 of 11
Set both the proportional and the integral gains to the recommended values by the
Ziegler-Nichols method as
Kp = 0.4 Kpc
and
Ki = Kp / Ti
or
Ki = 0.5Kpc / Tpc
where u(t) is the control signal and r(t) is the reference or set-point (defined by the
amplitude, offset and frequency settings).
Experimental Process:
Step 1
Set the values of kp = 0.23 V.s/rad and ki = 2.3 V/rad. Choose a Square Wave signal from
the QICii signal generator.
Investigate the effects of the set-point weight on the step response and the control signal
by initially setting the value of bsp to 0 then gradually increase the value with an
Page 8 of 11
increment of 0.20 until the value reaches unity. Capture the graph each time when you
increase the value.
Step 2
Make some analysis that explains your observations based on the equation [3.1].
Step 3
In your report document your results and your analysis and illustrate with typical
responses.
4.5.1
A load disturbance can be introduced by manually applying a torque to the inertial load.
Amplitude [rad/s]
Offset [rad/s]
aw
100
Step 2
Choose a pure proportional controller (i.e., ki = 0) with the given value of the gain being
kp = 0.10 V.s/rad, and bsp = 1.0.
Page 9 of 11
Step 3
Apply a torque manually by gently touching the inertial load with your finger. Observe
closely as what happens when you change the proportional gain of the controller (e.g.
gradually increase the value of kp with an increment of 0.10 Vs/rad until kpc is reached).
Step 4
Investigate a controller with the pure integral action. To do so, set the proportional gain
to zero (kp = 0) and the initial value of the integral gain to unity (ki = 1.0 V/rad). Now
apply a disturbance torque manually and observe what happens when you increase the
integral gain of the controller gradually with an increment of 0.50 V/rad until kic is
reached.
Experimental Process
Step 1
The regulation problem at zero velocity (i.e., r = 0 rad/s) should be investigated.
Set the QICii module parameters as given in the following table.
Amplitude [rad/s]
Offset [rad/s]
aw
Step 2
Emulate a load disturbance torque by pressing down and holding or releasing the User
Switch.
Page 10 of 11
Step 3
Investigate the behaviour of the closed-loop system for the pure proportional controllers
(i.e., ki = 0 and bsp = 1) with different values of the gain. You can start off with kp = 0.10
Vs/rad and step up the value with an increment of 0.10 Vs/rad until kpc is reached.
1. Summarize your observations in your report.
2. Determine the steady-state error ss_P.
3. Select some representative results, screen captures, and plots.
Step 4
Investigate the behaviour of the closed-loop system for the pure integrating controllers
(i.e., kp = 0 and aw = 0) with different values of the gain. You can start off with ki = 1.0
V/rad and step up the value with an increment of 0.50 V/rad until kic is reached.
Summarize your observations in your report. Select some representative results, screen
captures, and plots.
Step 5
Can you estimate from your experiment as how much voltage disturbance, Vsd, is applied
when you press the DCMCT User Switch? Please explain in detail as how you have
arrived at this.
Page 11 of 11
Page 1 of 12
1. Laboratory Objectives:
The objective of this laboratory experiment is to develop an understanding of PID control of
motor rotational angle, how it works, and how it can be tuned to meet the required
specifications.
In particular you will explore the followings:
The process is represented by a block, which has the motor voltage Vm and the torque Td as
the load disturbance and the motor rotational angle m as the output. The torque disturbance Td
is typically a torque that you could apply manually to the inertial load (e.g. using your finger
to apply a retarding force to the flywheel momentarily, as seen in Lab 4). The PID controller
block represents the control algorithm in the computer and the power amplifier unit. The
control signal disturbance Vsd is a simulated external disturbance voltage.
Page 2 of 12
The linear behaviour of the system is described by the transfer functions given in the block
diagram. The major sources of nonlinearities are the saturation of the motor amplifier at 15 V,
the Coulomb friction corresponding to 0.4 V (i.e., the minimum voltage required to start-up
the motor from stationary), and the quantization of the encoder which, causes a time delay of
1 sampling period (i.e., due to a combination of the encoder resolution of 4096 counts per
revolution and the sampling rate of the encoder being set at h = 100 Hz).
where, u(t) is the control signal, r(t) being the reference signal and y(t) is the measured
process output. The reference signal r(t) is also called the set-point or the command signal.
The linear behavior of the PID controller is governed by the following parameters:
kp : proportional gain
ki : integral gain
kd : derivative gain
Page 3 of 12
Sometimes the filtered measurement yf(t) is also used in the control loop. It is computed from
Tf, the time constant of the filter for the measured signal. The filter time constant Tf is
typically set to a constant value and it is often combined with the sensor. The filter provides
the roll-off at high frequencies. It is important to reduce the effects of the sensor noise as it
improves the system robustness.
The PID controller is similar to the PI controller and the additional derivative term provides
added flexibility. In particular, it improves the possibilities of introducing the damping effect
because it is an approximate prediction of future measurements.
Since the left-hand-side is a constant, then the right-hand-side must also be a constant. This
requires that yss = rss. Notice that the only assumption that has been made about the process
is that there should be an asymptotic steady-state condition.
The load disturbance response of a PID controller has an interesting property, which can be
seen as follows:
Page 4 of 12
e (t ) r (t ) y (t )
One can assume that the PID controller is connected to a process and also the closedloop
system remains stable. Apply a load disturbance in the form of a step function to the system.
There will be a transient response and the error will then approaches to zero because the
system is stable. The above equation implies that:
The value of u() is the steady-state control signal required to eliminate the load disturbance.
We can conclude from Equation [5.2] that the integral of the error signal due to a load
disturbance is inversely proportional to the integral gain of the controller.
4. Laboratory Content
4.1 The QICii Position Control Module
4.1.1 Module Description
Page 5 of 12
The main tool for this laboratory experiment is the front panel of the module entitled Position
Control in the QICii software, which should be similar to the one shown in Figure 5.2.
As a quick module description, Table 5.1 lists and describes the main elements composing the
QICii Position Control module user interface.
Every element is uniquely identified through an ID number and located in Figure 5.2.
The Position Control module program runs the process in the closedloop with the motor
reference position angle given by the signal generator. There are two windows that show the
time histories of the motor position (i.e., the control output) and the motor voltage (i.e., the
control input).
Page 6 of 12
ID # Label
Parameter
Description
Unit
Position
rad
Current
Im
Voltage
Vm
Signal
Generator
Amplitude
rad
Frequency
Hz
Offset
rad
Position
Voltage
Vm
10
kp
kp
V/rad
11
kd
kd
V.s/rad
12
ki
ki
V/(rad.s)
13
bsp
bsp
14
bsd
bsd
15
Tf
Tf
The implemented digital controller in the QIC runs at 100 Hz, and therefore, the sampling
interval is:
Page 7 of 12
The motor position is measured by an encoder generating 4096 counts per revolution. The
position time derivative (speed) is obtained by filtering the position signal using the following
filter:
The default module parameters, loaded after the download, are given in Table 5.2.
Page 8 of 12
Amplitude
[rad]
Frequency
[Hz]
Offset
[rad]
kp
[V/rad]
kd
[V.s/rad]
ki
[V/(rad.s)]
Square Wave
1.0
0.4
0.0
3.0
0.05
0.0
bsp
bsd
Tf [s]
1.0
0.0
0.006
Signal Type
Amplitud
e
[rad]
Frequency
[Hz]
Offset
[rad]
kp
[V/rad]
bsp
Square Wave
0.4
0.1
2. To investigate the closedloop system for the proportional controllers, with different
gains, change the proportional gain to the following values: kp = 1, 2, and 4 V/rad.
What are your observations? Explain in detail.
3. Describe the steadystate error in response to a step function input for the above kp
values.
Page 9 of 12
4. In Step 2, under what conditions the control signal will saturate (e.g., at what voltage
limit)? What should you do to keep the control signal away from saturation?
5. Set the Amplitude to 0 rad and Offset to 0 rad too; apply a torque (load disturbance)
on the inertial load by gently touching and rotating the flywheel with your finger.
Observe the effect on the position. What do you feel when you turn the flywheel and
then what does the motor do after you let go of the flywheel?
6. Now simulate a control signal disturbance Vsd by pressing the User Switch of the
module. You should press the switch down and hold it until steady state is reached,
then release the switch. Observe the effect on the position.
7. Summarize your detailed observations in your Lab report. Select some representative
results, screen captures, and plots and include them in your report.
Signal Type
Amplitude
[rad]
Frequency
[Hz]
Offset
[rad]
kp
kd
bsp
[V/rad] [V.s/rad]
bsd
Square Wave
0.4
2.0
Change the derivative gain with the following values to investigate the closedloop
system for the PD controllers with different derivative gains:
2. Try again but with the values of gains: kd = 0, 0.05, 0.1, 0.15 and 0.2 V.s/rad.
What are your observations? Explain in detail.
Page 10 of 12
3. Determine a value of the derivative gain, which gives a setpoint response without any
overshoot. Determine the settling time and the steady-state error for the closedloop
system.
4. Now set the Amplitude to 0 rad, Offset to 2 rad, and change the derivative gain with
the following values: kd = 0, 0.05, 0.1, 0.15 and 0.2 V.s/rad. Then, apply a torque on
the inertial load by gently touching and rotating the flywheel with your finger.
Observe the effect on the position. What do you feel when you turn the flywheel and
then what does the motor do after you let go of the flywheel?
5. Simulate a control signal disturbance Vsd by pressing the User Switch of the module.
You should press the switch down and hold it until steady state is reached, then release
the switch. Observe the effect on the position. Compare the system response of this
PD control with that of the pure proportional (P) control in the previous section?
6. Summarize your overall observations in your Lab report. Select some representative
results, screen captures, and plots and include them in your report.
Page 11 of 12
Page 12 of 12