MECH 371 Analysis and Design of Control Systems: Laboratory Manual
MECH 371 Analysis and Design of Control Systems: Laboratory Manual
Laboratory Manual
Labs are scheduled on an alternative week basis (every two weeks). Therefore,
formal lab reports must be submitted every two weeks during your lab period.
Please submit your fifth lab report directly to your lab instructor at his/her office,
two weeks after you have performed the lab.
1
Lab 1: Control System Introduction, Familiarization
with Lab Equipment & Instruments
Objectives
To familiarization students with MS150 DC Motor Control Modules, instruments such as function
generator and oscilloscope and to calibrate potentiometers, Op Amp and pre-amplifier.
Introduction
The purpose of the laboratory is to acquaint the student with a practical classical feedback, control
system [specifically an electromechanical angular position control system using a DC motor], and
to become familiar with the measurement of basic performance parameters of the system, both in
the time-domain and in the sinusoidal frequency domain. A position control system (rather than any
other variable) is used in this lab not only because of its wide application (e.g. position control in
robotic manipulators, setting of hydraulic/pneumatic valves in process-control systems, positioning
of directional antennas in communication systems etc.) but also because important operational
characteristics such as overshoot may be directly (visually) observed when the controlled variable is
the 'position'.
𝑽𝒆
𝑽𝒊 150A 𝜽𝒐
𝜽𝒅 𝑲𝒎 𝝎𝒎
K1 Kp 𝟏
Ki 𝟏+𝑺𝝉𝑴
𝑺𝑵
150D
150H − 150B 150C 150X
top +150F
(Gear)
𝑽𝒐 Ko
150K
Figure 1.1 is a basic angular position control system. An Input Potentiometer 150H (input position
transducer) translates the desired angular position θd into a proportional voltage Vi. A Servo-
amplifier 150D which drives the motor and which, together with a DC motor in 150F, forms the
'servomotor'. The motor drives a mechanical load mainly consisting of a flywheel (representing a
real load), through a Gear train (Gear box) in 150F which provides both amplification of the motor
torque as well as speed reduction.
2
Oscilloscope
Function Generator
AU150B Top
PS150E SA150D
DCM150F GT150X
LU150L
IP150H OP150K
An Output Potentiometer 150K (output position transducer) translates the angular position θo, of
the flywheel shaft, into a proportional voltage Vo. The device called the “Reference Comparator”
150A compares the voltage Vo with the reference input voltage Vi, which represent s the desired
posit ion of the fly wheel, and generates the difference between them: Ve = Vi –Vo, then the
3
voltage Ve will represent the 'error' between the desired position and the actual position. The
reference comparator is therefore also called an 'error detector'. The 'error' signal Ve , can be
adjusted by K1 150B, then amplified by a pre-amplifier 150C and subsequently by a power-
amplifier 150D, is used to drive the motor in such a sense as to reduce the 'error' itself. A system
such as the one just described (shown in Figure 1.1) is called a closed loop, negative-feedback
position control system.
The Modular DC Servotrainer MS150 used in the lab is designed to demonstrate the basic
principles of a classical closed-loop negative feedback control system as shown in Figure 1-2: an
electromechanical system using a DC motor which controls the angular-position of a shaft. The
equipment consists of modular units for the motor, amplifiers etc., mounted on a baseplate. The
various modules are positioned on a baseplate as shown above. Each station also includes a function
generator and an Oscilloscope. Except for some main connections, interconnections between the
various modules are made by the student, using banana-plug-ended patch cords which are provided
in the laboratory. The power supply module 150E is permanently connected to the motor-
tachometer module 150F and to the servo-amplifier module 150D. Terminals which provide a
balanced +15/ 0 /-15 volt DC output are available on the power
supply and servo-amp modules. A 3-wire harness is connected
to distribute the ±15 volt supply to the operational amplifier,
preamplifier and PID modules. The +15/ 0 /-15 supply voltages,
available at terminals on the power supply module 150E, are
also used to supply voltages to the Input & Output
Potentiometers (150H & 150K) , which make up the "error
channel".
Potentiometers: showing in Figure 1-4. The module includes an Input Potentiometer IP150H (as
an input position transducer), an Output Potentiometer OP150 K (output position transducer), and
an Attenuator Unit AU150B containing two smaller potentiometers, which are used to adjust gains
in the forward and feedback paths. The input and output pots are fitted with discs graduated (in
degrees) on their shaft.
However, the output pot can be rotated continuously over 360º, whereas the input pot has a limited
rotation of about ± 150°. Both these 'angular position transducers' are normally supplied with +15
and –15 volts, so that their outputs can vary linearly from zero to almost either of these limits as
their shafts are rotated in either direction from a central (zero) position. Normal operation is
symmetrical about this zero position. Note that in the output pot, a zero-voltage transition also
4
occurs at the + or –180° position, hence requiring operation which ensures output angular
displacements within these limits. Assuming that the total voltage applied across the output pot is
30 volts, and the rotation is 360°, the position-to-voltage transducer sensitivity K0 will be 30 / 360
≈ 0.083 volt / deg., or approx. 4.8 volts/radian. The input and output potentiometers should be
calibrated to obtain their sensitivity constants and/or to confirm whether Ki ≈ Ko.
The pots in the Attenuator unit are provided with knobs and scale graduations from 0 to 10. These
pots can be used as voltage dividers and to obtain the very small voltages.
Preamplifier PA150C (Figure 1-6) is a low-power control amplifier which is used to provide the
"deadband compensation" voltage, as well as a fixed forward-path gain Kp. The module has two
summing input terminals and two output terminals. {An additional input terminal labelled "Tacho"
may also be present.} A positive voltage applied to either input yields an amplified positive voltage
at the upper output socket(3),the socket(4) staying near zero; a negative voltage applied to either
input yields an amplified positive voltage at the lower output socket(4), the socket(3) staying zero.
The two output terminals provide the positive voltage drive required as input for the servo-
5
amplifier. Thus, if the output terminals are
connected to the servoamplifier input terminals, the
motor will reverse direction whenever the
preamplifier input voltage changes polarity.
'Deadband' occurs due to the presence of mechanical static-friction (Coulomb-friction) effects in the
commutator brushes and in the bearings. The term 'deadband' which essentially is "the no-response
of the motor until the servoamplifier[motor] input voltage Vm, exceeds a certain value Vd " [see
Figure 1-7 (a)] occurs in both rotational directions. The 'deadband' prevents the modeling of the
servomotor as a linear element. In the experimental equipment, the motor is 'linearized', by
providing the servoamplifier input with a bias voltage Vb which is approximately equal to the
deadband voltage. The required bias is obtained from a pre-amplifier which has the transfer
characteristic shown in Figure 1-7(b). The bias voltage Vb is somewhat less than Vd in order to
prevent motor response due to spurious noise signals which may be present in the preamplifier
output. At balance, identical output voltages of 1 to 1.5 volts should be obtained.
*The DC motor DCM150F, Servoamplifier SA150D, Tachometer DTX150X will be introduced in next lab
session.
6
Experiment Procedure
MS150 System is equipped with a DC motor, with a tachometer to measure angular velocity,
turning potentiometer (designated as input pot and output pot ) to give and measure angular
position, and power amplifier (also known as pre-amp and servo-amp) to drive the motor. The
command signal can be provided by the function generator or input pot, and the output of angular
position or velocity can be measured by the oscilloscope. Figure 1-1 shows the MS150 system.
In these experiments, we will begin with the close loop DC motor position control system setup,
power source and DC voltage measurement, use of potentiometers (attenuator, input pot and output
pot), Op-amp as a signal adder and Op-amp as a Pre amplifier and signal adder and bias voltage
provider.
1. Referring to Figure 1.1 block diagram, make connection as following Figure 1-8: Op Amp
OP150A will be used as a “signal adder” to detect the error signal between “command” -
IP150H and “real position”- OP150K. The error signal will be used to control how far and
which direction motor to run. Please note that this error signal can’t directly drive motor. It
has to be adjustable (by a Controller-AU150B used as a proportional controller). This
control signal will be amplified by “Power amplifier” (Pre-Amp PA150C and Servo-Amp
SA150D). This amplified power (voltage and current) will drive motor.
2. Check control stability: no function generator connection, adjust AU150B dial to 1 or less,
turn IP150H to 45 degree clockwise, check if OP150K follow the IP150H clockwise. If not,
re-check your connection, especial the IP150H and OP150K are cross-connected. If still
doesn’t work, ask your lab demonstrator to check your connect. Make sure the system is a
stable negative feedback position control system.
3. Increase the dial of AU150B, the system will become unstable, decrease the dial of
AU150B, the system will be stabilized and will stop response when dial to 0.
4. Disconnect the wire at the #3 of IP150H and connect to Function Generator output as shown
in dashed line. The function generator will be used as a command signal. Set function
generator: Square wave, High: 3v, Low 0, Offset 1.5v. Frequency: 0.5Hz.
5. Oscilloscope setting to get a low frequency waveform and measurement. The signal can be
displayed or not displayed by press button 1 and Button 2 above the scale knob. Press button
1: coupling: DC, invert: off, Probe setup: 1x. Press button 2: same as ch1, except for invert:
on. To make signal display correctly on the screen by adjusting the Horizontal Scale (time
scale: SEC/DIV) and Vertical Scale (voltage scale: VOLTS/DIV) knob. If function
generator signal is 3V p-p, 1.5 offset, 0.5 Hz, to get maximum display of 2 cycle signal on
screen, the setting is: adjust position: baseline on bottom of screen, vertical scale: 500 mv,
horizontal scale:400ms, as shown in Figure 1-9.
6. Adjust Attenuator AU150B: dial to 1, capture the response image using excel as shown in
Figure 1-10.
7
7. Repeat step 6 for dial adjusting to 2, and 0.5.
+15 0V
Exp#1.2 Observation of the Error Signal -15V
3. With the output potentiometer position left Figure 1-11 Zero Op-Amp
undisturbed, from start point position (0 degree),
vary the input pot position by slowly turning the disk and observe the change in Op-amp output.
Fill out the following table.
1) Balance the Preamplifier and determine Preamplifier Bias: Power PA150C, connect a
common signal (0V) to the inputs (input 1 and 2). Monitor (using the oscilloscope and its
measurement feature, scope vertical position and scale should be same) both outputs (3 and 4),
10
adjust the Balance Control (zero set
knob) until both outputs have the
same voltage, as shown in Figure 1-
14, This voltage should be in the
range of 1.0 to 1.5 volts and is the
"bias" voltage which is intended for
overcoming part of the system
Deadband. The zero set knob should
not be disturbed after balancing.
Record the bias value.
1 -0.9 ( ) 4
1 -0.8 4
1 -0.7 4
1 -0.6 4
1 -0.5 4
1 -0.4 4
1 -0.3 4
1 -0.2 4
1 -0.1 ↑ ( ) 4
12
1 0
1 0.1 ↓ ( ) 3
1 0.2 3
1 0.3 3
1 0.4 3
1 0.5 3
1 0.6 3
1 0.7 3
1 0.8 3
1 0.9 3
1 1.0 3
Experiment Results
Exp#1.1 Basic DC Motor Angular Position Control System Setup
1) Simulate the system using the block diagram as in Figure 1.1 by Matlab Simulink. Get 3
0.088𝑉𝑜𝑙𝑡
step (𝜃𝑑 =40 deg.) responses of k1=0.5, k1=1, and k1=2 (Assume: 𝐾𝑖 = 𝐾𝑜 ≈ 𝑑𝑒𝑔 ≈
4.8
𝑟𝑎𝑑
, 𝐾𝑝 ≈ 10, 𝐾𝑚 = 𝐾𝑀 ∗ 𝐾𝑆𝑒𝑟𝑣 ≈ 20 ∗ 6 = 120 𝑣𝑜𝑙𝑡/𝑣𝑜𝑙𝑡, 𝜏𝑚 = 0.1𝑠, N=30).
1) Explain how to check if the op-amp is zero or not. Can you use DMM to check. Please
explain in detail.
2) Referring Figure 1-12 and 1-13, if we switch the connection of IP150H (#1 to +15, #2 to -
15). What is the effect on Ve error signal.
1) Can you explain which terminal is input, which is output if we use AU150B as a voltage
divider. Do we need a ground for it, explain why.
2) Obtain a plot of output voltage (terminal 3) versus input voltage from 0~ +1.0 V (input
terminal #1). Next, on the same graph, plot other output (terminal #4) versus Vin from 0 ~ -
1.0V (input terminal #1). A V-shaped characteristic will result if the preamplifier has been
well balanced. Find Kp (slope of plot). Find preamplifier bias voltage when Vin =0 from the
plots.
13
Lab 2: Determination of DC Motor Dead-Band,
Gain, Servo-Amplifier Gain, Torque/Speed
Characteristic.
Objectives
To familiar with the DC motor module, amplifiers and tachometer. To verify DC motor parameters,
calibrate the gain of servo-amplifier and tachometer.
Introduction
Servoamplifier SA150D is the power-amplifier which
drives the motor. Its panel shows a simplified schematic
of the amplifier. The left side of the panel contains two
input terminals which accept only positive input signal
voltages: A positive input voltage [exceeding the Vin
=V1
deadband voltage], when applied to one input terminal
will rotate the motor in one direction, a similar positive
voltage applied to the other terminal will produce reverse
rotation. Negative inputs will have no effect. The panel
also contains a set of ± 15v terminals which can be used Vin
by other units. The servoamplifier is already connected to =V2
the power supply unit by a cable, and does not require
further power connections.(Figure 2-1)
The motor is a permanent magnet type and has a single armature winding. Current flow through the
armature is controlled by power amplifiers as in Figure 2-1 so that rotation in both directions is
possible by using one, or both of the inputs. The input signals are provided by a specialized Pre-
Amplifier Unit PA150C, which connected to inputs #1 and #2 on SA150D.
15
The armature-controlled DC Motor is used in the laboratory equipment. The motor is driven by a
servoamplifier [the combination of the two being called a 'Servomotor’]. The transfer function can
be written as follow:
𝜔𝑚 𝐾𝑚
𝐺𝑃 (𝑆) = = (2-1)
𝑉𝑚 1+𝑆𝜏𝑚
where 𝝎𝒎 is the output angular velocity, Vm is the motor input voltage(between #3 and #4 on
SA150D), Km is the motor gain constant and 𝜏𝑚 is an equivalent electro-mechanical time
constant. The two characteristic constants in (2-1) can be experimentally determined. The block
diagram is shown in Figure 2-5.
Experiment Procedure
In these experiments, we will calibrate the servoamplifier gain, determine motor deadband,
investigate brake characteristics and servomotor time constant.
1.Set up the circuit as shown in Figure 2-6. Apply 1.5 ~ 2.5 volts (using top attenuator AU150B) #3
connect from +15v, #1 connect from 0V, #2 connect to input #1 on Servo-amp SA150D , Scope
CH1 measure input voltage Vin at #1 on SA150D. DMM measure motor control voltage Vm
between #3 and #4 on SA150D.
2.GT150X connection: #1 from 0V, #2 connects to #3, switch turn towards to #3 for display n
(rpm) on LED, Scope CH2 measure tachometer voltage at #2.
4.Gradually increase (adjust AU150B) input voltage allowing the motor to start to turn. Note that
the motor does not respond until the input voltage exceeds a certain threshold value Vd, which is
the deadband voltage for one direction. Continue to increase the input voltage approximate to
1.5V (read mean from CH1 of scope Vin), read Vm from DMM, read n (rpm) on the LED display,
read CH2 mean volts Vt and record all values on the following table.
16
5.Repeat step 3, increase input voltage approximate to 2.0V.
7.Disconnect #1 on SA150D, connect to #2 instead, the motor will run in opposite direction, repeat
step 4-6.
#2 (≈ 1.5)
#2 (≈ 2.0)
#2 (≈ 2.5)
17
Exp#2.2 Torque speed Characteristics investigate
1. Set up the circuit as shown in Figure 2-6. Follow the steps 1-2 of Exp#2.1.
2. Set Load Unit at position #0. Gradually increase (adjust AU150B) input voltage, read LED,
make n reach to maximum speed. Record all data in follow table of position #0.
3. Keep input voltage unchanged, set load unit LU150L at position #1, record all data. Repeat until
position #10.
Load Servo – Amp Tachometer
Position Vin Vm n 𝜔=2𝜋𝑛/60 Vt
Volts Volts rpm ( Rad/S) Volts
(CH1) mean (DMM) (read LED) (CH2)mean
0
1
2
3
4
5
6
7
8
9
10
4. Set Load unit LU150L at position#0, decrease input voltage Vin until reach to above speed at
position#10, record all data in following table.
5. Keep input voltage unchanged, set load unit LU150L at position #1, record all data and repeat
until position #10.
Load Servo – Amp Tachometer
Position Vin Vm n 𝜔=2𝜋𝑛/60 Vt
Volts Volts rpm ( Rad/S) Volts
(CH1) mean (DMM) (read LED) (CH2)mean
0
1
2
3
4
5
6
7
8
9
10
18
Exp#2.3 Servomotor Time Constant Determination:
2. Set load unit LU150L at position #0. Use the circuit shown in Figure 2-6. Squire wave signal
replace AU150B #2, connect to #1 on Servo-Amp SA150D as shown in dashed line
3. Power on motor make sure motor run in one direction and full stop periodically. A trace of
squire wave will roll on screen. Adjust oscilloscope Vertical Scale(volts/div) and time scale
(sec/div) controls until the positive-going half-cycle of the square wave appears as a 'step' in
the display [see Figure bellow]. Press Run/Stop ** button in Scope to display the rising
wave form. Use the paired cursors to graphically determine the servomotor time constant 𝜏𝑀
by reading off the time corresponding to 63.2 % of the 'final' value*. Draw the display and
mark the time constant and final value, fill out the following table.
19
2) Refer to graph above, find the cursor of 63.2% of Vt( e.i. if Vt=8.96v, the 63.2% of Vt is
8.96*0.632=5.66 v, move second cursor “b” to ∆5.68𝑉), The ∆29.6𝑚𝑠 is the time
constant. Draw a graph of this waveform and measurement.
3) Press Menu 1, the cursor will move along signal of CH1, refer to graph bellow, using
“Milipurpose a” to move cursor to low signal of CH1, “b” to high signal of CH1, The
∆3.96𝑉 is Vm as shown in following graph:
4)
3. Switch terminal #1 and #2 of Servo-Amp and to make sure motor run in reverse direction and
full stop periodically. Repeat the steps #2). Fill out table’s second row.
4. Repeat Step #1, Set load unit LU150L at position #10, repeat step #2 and #3.fill following
table.
20
Load unit set at position #10
V Function Gen. Vin (CH1) Tachometer (Vt CH2) Time Constant 𝜏𝑚
0~2 V
-2 ~0V
2) Press Scope “Trigger Menu”: Type: Edge, Source: CH1, Slope: Rising (Falling
depending on waveform), Mode: Auto, Couple: DC. Trigger level set to +1.0v for
rising wave or -1.0v for falling wave.
3) Run motor by turn power. Press Scope: Single, A rising (or falling waveform) will
display and freeze on screen. Now you can use cursor to measure it.
Experiment Results
2) Plot 𝜔 versus Vm in both input terminal #1 and #2 in one graph. Find Vd from this plot.
4) Can you derive a block diagram model of armature-controlled DC motor, includes a load
torque in your block. (referring to Appendix B for all parameters). Clear indicate Km, 𝜏𝑚 .
21
Exp#2.2 Torque speed Characteristics
1) Plot 𝑛 (𝑟𝑝𝑚) versus position # to get the speed toque characteristics from both setting. (plot
two curve in one graph.
2) From 2 experimental tables, take data of position #10, Plot 𝜔 versus Vin, find Km at
maximum load position #10. What is the difference with no load, why.
1) From the recorded table and plot, get average time constant.
2) Find servomotor gain from the final value and input square-wave amplitude. Refer to (2-1)
𝑉𝑡 𝐾𝑚∗𝐾𝑡 𝑉𝑡
and Figure 2-5, = , when t∞, S0, 𝐾𝑚 = 𝑉𝑖𝑛∗𝐾𝑡 . Compare this Km with
𝑉𝑖𝑛 1+𝑆𝜏𝑚
obtained from Exp#2.1.
3) Using above obtained parameters to simulate the DC motor with Matlab Simulink. Compare
with experimental one.
4) Using the block diagram of results Exp#2.1, 4) to simulate with Simulink. Compare with
experimental one.
22
Lab 3: Time Response of Basic Closed-Loop
System and Effect of Tachometer Feedback
Objectives
To observe the time response of the closed-loop DC motor position control system, investigate the
performance of second order system, and effect of tachometer feedback on the second-order system
response.
Introduction
The block diagram of the basic system which is investigated is shown in Figure 3-1. The speed
reducing gear coupled at the output shaft of the motor is represented as a block having the transfer
function (1/SN), to indicate speed reduction as well as angular velocity - to - position conversion.
Ki and Ko are the transfer functions of the Input and Output potentiometers, Kp is the pre-amp
gain, and Km is the servo-motor gain respectively, which were obtained by calibration in the
previous lab.
𝑲𝒎
𝟏 + 𝑺 𝝉𝑴
𝜽𝒅 𝜽𝒐
150 X
Gear Box
The op-amp 150A is used to sum multi-signals as “Reference Comparator” or “Error Detector”.
The error voltage Ve is the difference between desired voltage Vi and real voltage Vo (or = 𝐾𝑖 𝜃𝑖 −
𝐾𝑜 𝜃𝑜 ).
The close loop transfer function of the system of Figure 3-1 (including Ki) may be obtained as:
23
𝐾 𝐾 𝐾 𝐾
𝜃𝑜 ( 𝑖) 𝑀 𝑜 ( 𝑖 )𝜔𝑛
2
𝐾𝑜 𝑁𝜏𝑚 𝐾𝑜
= 𝑆 𝐾 𝐾 = 2 2 (3-1)
𝜃𝑖 𝑆 2 +𝜏 + 𝑀 𝑜 𝑆 +2𝜁𝜔 𝑛 𝑆+𝜔𝑛
𝑚 𝑁𝜏𝑚
𝑀 𝐾 𝐾𝑜
Where the Natural Frequency is 𝜔𝑛 = � 𝑁𝜏 (3-2)
𝑚
𝑁
𝐾𝑀 = 𝐾𝑝 𝐾𝑚 , and the Damping Ratio is 𝜁 = �4𝐾 (3-3)
𝑜 𝐾𝑀 𝜏𝑀
Transient time response specifications to a step input are defined as follows (refer to Figure 3-2):
1.4
𝜽(𝒕)
1.2 tr P.O
O.S
𝜽𝟐
X2
1
𝜽𝟏
X1
𝜽𝟑
X3 2%
0.8
0.6
0.4 tp
T
0.2
ts
𝒕
0
0 2 4 6 8 10 12 14 16 18 20
24
Percent Overshoot (P.O.): the maximum peak value of the response curve measured from unity.
𝜋𝜁
−
�1−𝜁2
𝑃. 𝑂 = 100𝑒 (3-4)
Settling Time: the time required for the response curve to reach and stay within a range about the
final value of size specified by absolute percentage of the final value (usually 2% or 5%).
The time-domain specifications are quite important since most control systems must exhibit an
acceptable time response. Except for certain applications where oscillations cannot be tolerated, it is
desirable that the transient response be sufficiently fast and be sufficiently damped. Thus, for a
desirable transient response of a second-order system, the damping ratio must be between 0.4 and
0.8. Small values of 𝜁 (𝜁 < 0.4) yield excessive overshoot in the transient response and a system
with a large value of 𝜁 (𝜁 > 0.8) responds sluggishly. An overshoot in the range of 2 to 6% is
considered to be the optimum, a ‘range’ being necessary because setting the P.O. may involve a
‘trade-off’ with other specifications.
Note that an increase in KM, while providing an increase in the natural frequency (ie. speed of
response or rise-time), will also result in a reduction in the damping ratio, thereby increasing the
tendency towards instability (ie. larger overshoot and settling time). Thus, a 'trade-off’ exists
between, say, the rise-time and the settling time. Furthermore, in the experimental setup, all of the
above system parameters are constant and any adjustment capability can only be obtained through
an effective variation in the forward-path gain. In the experimental setup, such a gain- variation is
obtained by an attenuator which is ahead of the pre-amplifier (see Figure 3-3) to effectively reduce
the gain of that amplifier (ie. 0< overall forward-path gain ≤ KM , in our case, KM=K1KpKm , where
K1 is the potentiometer constant which was calibrated in previous lab and ranged from 0 to 1)
The restrictive trade-off situation between 𝜁 and 𝝎𝒏 in the basic system described above may be
somewhat improved by using additional 'derivative feedback'. In obtaining the derivative of the
output position signal, it is desirable to use a tachometer instead of physically differentiating the
output signal. In our lab, the angular velocity of the motor 𝜔𝑚 (Tachometer feedback or Velocity
feedback or Rate feedback) is introduced. In the laboratory system, a ‘tachogenerator’
(Tachometer) is physically coupled to one end of the motor. It produces a DC voltage output
𝑉𝑡 = 𝐾𝑡 𝜔𝑚 , which is used as an additional negative feedback signal as shown in Figure 3-3.
This system can be shown to have the same transfer function given by Eqn. (3-1) where 𝜔𝑛 remains
unchanged but with 𝜁 now given by:
𝑁
𝜁 = �4𝐾𝑜𝐾 (1 + 𝐾𝑀 𝐾2 𝐾𝑡 ) (3-5)
𝑀 𝜏𝑀
25
The Damping Ratio is now multiplied by the factor (1 + KMK2Kt). Thus, 𝜁 can now be
independently set for any given 𝝎𝒏 . In the laboratory setup, an attenuator (with pot constant k2) is
used in cascade with the tachometer output, so that an effective adjustment range for Kt from zero
to its full value is possible. For the basic system, optimum* step response should normally occur
with the pot coefficients k1=0.4 and K2 = 0.02, respectively. It can be seen that velocity-feedback
improves stability by introducing extra damping.
𝑽𝒆
𝑽𝒊 150A
𝜽𝒅 𝑲𝒎 𝝎𝒎 𝜽𝒐
K1 Kp 𝟏
Ki 𝟏+𝑺𝝉𝑴
𝑺𝑵
150D
150H − 150B
− 150C
150X
top +150F
𝑽𝒕
K2 Kt
150B 150X
Bottom
𝑽𝒐
Ko
150K
Figure 3-3 Basic Angular Position Control System with Velocity Feedback
Experiment Procedure
Pre-lab: Please review Lab#1 and Lab #2 and connect a basic angular position control system with
velocity feedback as shown in Figure 3-3. The lab equipment layout is shown in Figure 1-2. All the
+15V and -15V and 0V voltage will be connected in the lab. The power supply PS150E, servo-
amplifier SA150D and DC motor DMC150-F are internal connected. Please note that input pot
IP150H and output pot OP150K must be cross connected (referring Figure 1-13). Make sure Ve is a
voltage difference and not a voltage sum. The reference voltage of IP150H and OP150K is ±15V.
Notes: Throughout the following experiments, it will be assumed that the op-amp and the pre-
amp remain zeroed and balanced respectively and that the supplies to the input/output pots
are cross-connected so that the op-amp is the difference between the input and output position
signals.
26
1) Without power on, set up the circuit as in Figure 3-3. Set the input and output pots to their mid-
positions, indicating approximately zero output voltages. Also set the two pots in the Attenuator
unit to K1 =0.5, K2 = 0.
2) Offset the reference input pot by about 30° and turn the power on, the output pot will rotate
following the reference pot position if the system is functioning as a negative feedback system. If it
does not, then the feedback signal polarities of position are incorrect and must be reversed as
required until the system shows the proper position following response. (Letting K2=0, check
position feedback first. Switch +15,-15 connect of IP150H to make sure system is controllable and
stable. Then add K2=0.5, if system is unstable, switch the polarities of GB150X.)
3) Disconnect input pot IP150H terminal #3 with terminal #1 of OP150K, connect function
generator to terminal #1 of OP150K. Set square wave, 4V pk-pk, frequency 0.3 Hz. Connect scope
CH1 to Vi, (terminal #1 of OP150K), CH2 to Vo (terminal #2 of OP150K). Set the DSO time base
to produce a scrolling trace (roll mode). Now observe the responses to step input with various
settings of K1 and K2 which are the two control pots in the Attenuator module. Note that K1
effectively sets the forward-path gain (from zero to 1) while K2 sets the magnitude of the
tachometer feedback signal.
4) With K2 remaining at zero (thereby removing the velocity-feedback loop): increase K1 in steps
and observe the change in the transient response. Capture input and output in one plot for same
K2=0 but with K1=0.1, 0.2, 0.4. Try to measure Tp, T and P.O for each case. (using run/stop and
Cursor measurement).
5) Refer to Figure 3-2. record all data, capture the response image and sign data sheet by Lab
instructor before leave.
2) With K1 set at maximum (=1), observe the change in transient response as the tachometer
(velocity) feedback is gradually introduced by increasing K2. Using RUN/STOP , capture plot for
same K1=1 but with K2=0.1, 0.2, 0.3 or 0.05(if the system shows too sluggish). Also try to measure
Tp, T and P.O for each case.
2) Select k1 and K2 which yields what you consider to be the 'best' step-response (approximately
10% of overshoot). From the displayed 'best' response curve, use the DSO cursors to graphically
determine the Percentage Overshoot and use it to estimate the damping ratio. Capture image of
this 'best' response for the report.
3) Repeat step 2) for a load position setting #10, Capture the image of this response for the report.
27
Experiment Results
Exp#1 Basic Closed-loop System Set Up
Write a summary of your observations in your report. Calculate 𝜔𝑑 , 𝜔𝑛 and 𝜁 from your recorded
T, Tp, and P.O for each case. Comment on your results.
where the selected values of K1 and K2 have been introduced to take into account the effective
modified values of the gain KM= Kp*Km and the tachometer sensitivity Kt. Tabulate the results of
your comparison. N = 30 is the output shaft gear ratio. You can find all the other parameters in your
former experiment results.
2) Use Matlab Simulink to simulate the system as in Figure 3-3. K1 and K2 are the two values used
in the lab (Exp#3, step #3, one is 10% of overshoot, other is 20% of overshoot). N = 30 is the
output shaft gear ratio. You can find all other parameters in your former experiment results. Plot the
simulated results and check the P.O. in graphs. Compare them with your experimental plot.
28
Lab 4: Frequency Response of Basic Closed-Loop
DC Motor System
Objectives
To study the frequency response of a basic closed-loop DC motor system by observing its natural
response, and compare the experimental response with computer simulation response.
Introduction
The frequency response means the steady state response of a system to a sinusoidal input. The
resulting output for a closed loop DC motor system is sinusoidal in the steady state; it differs from
the input waveform only in amplitude and phase angle. Consider the DC motor described by
Equation (3-1),
𝜃𝑜(𝑠) 2
𝜔𝑛
= 2 = 𝐺(𝑠) (4-1)
𝜃𝑑(𝑠) 𝑆 2 +2𝜁𝜔𝑛 𝑆+𝜔𝑛
𝜃(𝑡) 4
t T
3
𝜃𝑑(𝑡)
2
𝜃𝑜
1
0 𝜃𝑑
-1
-2
-3
𝜃𝑜(𝑡) 𝒕
-4
0 10 20 30 40 50 60
29
𝜃𝑑(𝑡) = 𝜃𝑑 sin 𝜔𝑡
System: DC
-10 Frequency (rad/sec): 15
Magnitude (dB): 0.00225
-20
-30
𝜔𝑝 𝜔𝑛
-40
0
-45
Phase (deg)
-90
-135
-180
0 1 2
10 10 10
Frequency (rad/sec)
30
360𝑡
Phase shift: 𝜙(degree) = (4-3)
𝑇
Figure 4-2 shows the Bode Diagram of closed loop DC motor system. We can estimate the
underdamped natural frequency 𝜔𝑛 and damping ratio 𝜁 by the asymptotic lines from Bode
diagram.
1
𝑀𝑝 (𝑑𝐵) = 20 log 2
, 𝜁 < 0.707 (4-4)
2𝜁�1−𝜁
Experiment Procedure
1) Set up the circuit shown in Figure 3-3, make sure system is controllable and stable, use function
generator to replace input pot 150H. Function generator setting: Squire wave, 4 volts peak-to peak,
0.5Hz, offset 0v. Get step response by setting K1, K2 which yielded your good step-response
(25% of overshoot). Set the oscilloscope to read DC at 1 volt/div and adjust the sec/div setting
until the waveform is scrolling, 100-500ms/div. Turn on the 'invert' for Ch2 of scope.
2) After getting 35% of overshoot, keep all setting unchanged, only adjust function generator
controls to obtain a sine wave output.
3) Keep the peak-to-peak input voltage magnitude unchanged, manually change frequency from
0.1 to 10 Hz, find the resonance peak, more readings will have to be taken near the peak so that it is
well defined in a plot. Conversely, less readings may be taken in regions where the response is
'flat'. At each frequency fin, 'freeze' the signal and use cursors to find the input period T, pk-pk
𝜃𝑖, pk-pk 𝜃𝑜, and the phase-shift time t between input and output waveforms. Tabulate the results
as shown in Table 4-1.
Experiment Results
1) Calculate the output/input Magnitude Ratio M (dB) and the Phase shift Ф (degrees) at each
frequency and put them into the table above. For an input 𝜃𝑑(𝑡) and an output 𝜃𝑜(𝑡) which lags the
input, the Ф (degrees) and M (dB) may be calculated by (4-3) and (4-4). Plot the Magnitude Ratio
M (dB) and the Phase-lag Ф (degrees) against the radian-frequency ω=2πf, using two-cycle, semi-
logarithmic graph paper. Example M and Ф plots are shown in Figure 4-2. Typical data points are
also shown to emphasize the need to take more readings at frequencies where rapid changes occur.
Note: A distinct peak will not be obtained if the system is set for near critical damping.
2) Estimation of undamped natural frequency ωn and damping ratio ζ from the resulting frequency
response plot. The magnitude (dB) – frequency data points plotted on semi-log graph paper can be
used to obtain system parameters such as ζ and ωn, as shown in Figure 4-2. Use asymptotic lines to
estimate the ωn and the peak (if any) to find the ζ by (4-4). Compare the result of ζ with the
corresponding value calculated earlier in Lab#3.
3) Use Matlab M scripts to plot the Bode diagram given the system parameters as in the previous
lab. The K1 and K2 are chosen in this lab. Find the 𝜔𝑛 and 𝜁 from the Bode diagram.
31
Table 4-1
32
Lab 5: DC Motor Position Control with Cascade
PID Compensation
Objectives
To investigate PID controller and cascaded PID with tachometer feedback, compare the
experimental response with computer simulation response.
Introduction
In the laboratory setup, a Proportional-Integral-Derivative amplifier unit (called PID unit PID150Y)
is used in the forward path, following the reference comparator, for the investigation of cascade
compensation. The Proportional-Integral-Derivative unit PID150Y is a three-mode control
amplifier. It provides three operational paths (P+I) or (P+D) or (P+I+D). The block diagram is
shown in Figure 5-2. Switching possibilities can be readily seen on the simplified schematic shown
on the faceplate of the unit (see Figure 5-3).
where the proportional gain K and the integral and derivative time constants Ti and Td can be
varied over specified ranges by means of three calibrated knobs on the unit. [The gain K can be
varied from 0.11 to 11 in two decade ranges. The Integral Time Constant Ti can be set from 0.11 to
11 seconds (in two decade ranges) and the Derivative Time Constant Td can be set from 2
milliseconds to 220 milliseconds in two ranges. Also, the Integral and Derivative functions can be
independently switched on or off as required.]
33
150C
150A
𝑽𝒆
𝑽𝒊 Vc 𝑲𝒎 𝜽𝒐
𝜽𝒅 PID Kp 𝟏
Ki 𝟏+𝑺𝝉𝑴
𝑺𝑵
150H − 150Y − 150C 150D
150X
PID +150F
𝑽𝒕 𝝎𝒎
K2 Kt
150B 150X
𝑽𝒐
Ko
150K
34
Now consider the system with the PID unit in the forward path, but with the tachometer feedback
removed (with the PID module parameters K, Ti and Td set, K2=0, this will correspond to cascade
PID compensation).
1
𝐾𝐾𝑀 [1+ +𝑠𝑇𝑑 ] 𝐺
𝑠𝑇𝑖
Using 𝐺 = 𝐺𝑐 𝐺𝑝 = and 𝐻 = 𝐾𝑂 , the CLTF is given by 𝑇 = 𝐾𝑖 .
𝑠𝑁(1+𝑠𝜏𝑀 ) 1+𝐺𝐻
𝑇 𝐾𝑖
The equivalent unit-feedback transfer function 𝐺𝑢𝑓𝑠𝑐 = 1−𝑇 may be found, assuming 𝐾𝑜
= 1 by:
1 1
𝐾𝐾𝑜 𝐾𝑀 𝑇𝑑 [𝑠2 +𝑇 𝑠+𝑇 𝑇 ]
𝐺𝑢𝑓𝑠𝑐 (𝑠) = 𝑑 𝑖 𝑑
(5-2)
𝑠2 𝑁(1+𝑠𝜏𝑀 )
Equation (5-2) clearly shows that (a) the system ‘Type’ has been changed to Type 2, and (b) a pair
of zeros has been introduced. ie: the system will now have zero steady state error for both step and
ramp inputs. However, its transient response will depend on the location of the roots of the system
characteristic equation [ie: closed loop poles].
Experiment Procedure
Pre-lab: Please review Lab#1, Lab#2 and Lab#3, connect a basic angular position control system
with PID controller and cascade velocity feedback as shown in Figure 5-1. The lab equipments
layout is shown in Figure 1-4. All the +15V and -15V and 0V voltage will be connected in the lab
later. The power supply PS150E, servo-amplifier SA150D and DC motor DMC150-F are internal
connected. Please note that input pot IP150H and output pot OP150K must be cross connected
(referring Figure 1-8), make sure Ve is a voltage difference not a voltage sum. The reference
voltage of IP150H and OP150K is ±15V.
Notes: Throughout the following experiments, it will be assumed that the op-amp and the pre-
amp remain zeroed and balanced respectively and that the supplies to the input/output pots
are cross-connected so that the op-amp is the difference between the input and output position
signals. Check system is controllable and stable, then replace input pot with function
generator.
Set up the circuit shown in Figure 5.1. Set K2 to zero to eliminate the velocity feedback. Adjust the
function generator controls to obtain a square wave output of about 4 volts peak-to-peak,
symmetrical about the zero volt baseline, at approximately 0.4 Hz.
Notes: For the following each steps, record your observations (Stop/Run scope, using curser
measurement to get Peak time Tp, overshoot P. O., steady state error ∆𝜃𝑒. capture display, or
drawing at a blank paper, for your report), and comment on them.
1. Proportional Compensation: switch out the Integral (Ti=0) and Derivative (Td=0) paths, and
switch in only the Proportional path. Observe the change in 'step' (square-wave) response of the
35
angular-position output as the proportional compensator gain K is varied from 0.1 to 1.
Momentarily switch the input waveform to a triangular-wave and observe the change in the
"follower" (ramp) response as K is changed. (Let: K=0.1, 0.2)
2. Proportional-Integral Compensation*: Switch in the Integral path. Set the proportional gain
K=0.1, and observe the effect on the output responses for square wave and triangular wave input
when Ti is set to various values, Let ( 𝑇𝑖 = 0.5, 1, 10 ).
3. Proportional-Derivative Compensation*: With K=0.1, switch out the Integral path and switch
in the Derivative path instead. Observe the effect on the output responses for square wave and
triangular wave input when Td is set to various values. Decrease the proportional gain if necessary,
to reduce noise. Let ( 𝑇𝑑 = 2, 20 , 200𝑚𝑠 ).
Expt. #2 DC Motor Position Control With PID Compensation and Tachometer feedback
P K=0.2
PI
36
Experiment Results
Expt. #1
1). Derive the transfer Function 𝜃𝑜 (real position of DC motor)/ 𝜃𝑑 (desired position of DC motor)
from Figure 5.1 given K2=0.
2). In Expt.#1, draw a Root-Locus plot for each step 1,2, 3 and 4 using system parameters and the
value in the experiments. Comment on them.
3). In Expt.#1, Simulate block diagram Figure 5.1 for each step 1,2, 3 and 4 using system
parameters and the value in the experiments, compare it with the experimental results.
4). In Expt.#1, get step response of the transfer function from question #1 for each step 1,2, 3 and
4 using system parameters and the value in the experiments. Compare the results with Question #3
and experimental results.
Expt. #2
1). Derive the transfer Function 𝜃𝑜 (real position of DC motor)/ 𝜃𝑑 (desired position of DC motor)
from Figure 5.1 with velocity feedback K2.
2). In Expt.#2, Simulate block diagram Figure 5.1 with K2 using system parameters and the value
in the experiments of each case, compare them with the experimental results.
3). In Expt.#2, get step response of the transfer function from question #1 for each case. Compare
the results with Expt#2 Question #2 and experimental results.
37
Appendix A: DC voltage measurement using Oscilloscope
1. Display and measure DC voltage by Oscilloscope and check the reading by DMM: The
oscilloscope used in our lab is a 2 channel storage oscilloscope. It can display and measure two
different signal sources simultaneously. DMM is 8085A.
1) DMM set to: DC, V, scale to 20, connect V/KΩ/S to measure point.
Note: only one “ground” in scope is connected to circuit common. In the manual Figures
of Scope connections, Ground connections maybe not be show, but still need to connect
one Ground.
2) To make signal display correctly on the screen by adjusting the Horizontal Scale (SEC/DIV)
and voltage scale (VOLTS/DIV) knob. On the bottom of screen, it display: CH1 2.00V,
CH2 2.0V, 20ms. The signal can be displayed or not displayed by press button 1 and
Button 2 above the scale knob.
3) Push the MEASURE button to see Measure menu. Push Add Measurements: Select type:
MEAN , Select CH1 for first measurements Source. Then OK Add Measurement.
4) Select CH2, select Type: MEAN. OK Add Measurement again, The CH1 and CH2 mean
values are shown in the menu and are updated periodically. If it is a question mark or not
display, clockwise turn the Time scale until it is in auto run mode.
38
Appendix B: Connect Oscilloscope to MS Excel
This means the computer connected to Scope. Now link scope to Excel. Click ADD_INS, then first
Icon , click “Identify”:
39
Appendix C: Summary of MS150 Data- DC System:
40