Linear Control System
Linear Control System
Linear Control System
MANUAL
EXPERIMENTS IN
FACULTY OF ENGINEERING
EXPERIMENTS IN
Linear Control System lab manual presents a series of experiments dealing with all topics
covered in theory course Linear Control Systems and provides an introduction to control
system starting with open loop control to feedback control system.
The sequence and scope of the experiments in this manual are related to the theoretical
material covered in the text book and analysis based on control system application. All the
experiments have been tested and revised where necessary to improve clarity. Any comments
or suggestions to improve the style, scope or clarity of any experiment are welcome.
I wish to thank Engr. Muhammad Amer Saeed, who made constructive suggestions and
changes while teaching in this laboratory course. I also thank Engr. Ali Ahmad and Engr.
Awais Arshad who helped me with the formatting, error omissions and editing to finalize the
manuscript.
TABLE OF CONTENTS
Lab Equipment
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory
To study the behavior of DC Motor, potentiometer and different interface modules, it is
essential to perform the practical exercises on hardware and to analyze different waveforms
displayed on the PC. A PC with the Virtual Control Laboratory software and CLIO Control
Laboratory Input/output interface is used to replace a number of different traditional
instruments, eliminating the need for separate signal generator oscilloscope, multi meter or
controller. In this first experiment, you will refresh your knowledge of the DC Motor which
is used as the PLANT and familiarize yourself with the interface board and the operation of
the software. A trainer or collection of components are used (analog and digital) in this
experiment are MSI5 module, DC motor, tachogenerator, plant input, velocity output,
position output, motor controller, amplifier, potentiometer, tachometer, signal conditioning
block and Virtual software. Wiring diagram of MS15 module is shown in Fig. 1.
1. Perform as a function generator to supply (if required) the command (reference) input
signal in various forms, for example, step or sine wave inputs.
4. Make circuit connections using the 4 mm Patching Cords according to the diagram.
Whenever you make (or change) circuit connections, it is good practice to always do
so with the Power Supplies switch in the OFF position.
5. Switch the Power Supplies ON only after you have made, and checked, your
connections. Remember that the Power Supplies switch must be ON in order for you
to be able to make the observations and measurements required in the Exercise.
6. At the end of each Exercise, you should return the Power Supply switch to the ’OFF’
position before you dismantle your circuit connections.
7. In order to control with computer managed workstation you will require a personal
computer (PC) that has been installed with computer managed student workstation
software. If you are working in a computer managed environment for the first time,
you should first read the operating information that has been provided with your
computer managed workstation. This tells you how to:
Reference External
Results
Registration Number-------------------------------
Student Name-------------------------------
Teacher Signature -------------------------------
Objectives
1. To learn the basics of control engineering and to find out how it is used in everyday
life.
2. To learn the control objectives that how the system will react when it is subjected to
different load changes.
3. To study what is meant by Control Model.
Lab equipment
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory
Control system engineering is the engineering discipline which uses the control theory to
design systems having desired characteristics. It is the part of our daily life although
sometimes it is not obvious. A system that is designed, should work appropriately when the
load of the system is changed, and also it must respond well to the input applied to it by
minimizing the transient response of the system. The purposes of any plant observing system
application are as follows:
4. The Linear Small Signal Model is the behavioral description of the system when
small changes are made which do not take the system into nonlinear operating areas.
Linear Control Systems Laboratory Manual Page 15
5. A Plant Model is a description of how a system behaves. It is stated in terms which
allow the determination of the steady state and transient performances of the plant.
This allows a control engineer to formulate a control scheme which will result in the
satisfactory performance of the overall system.
Procedure
Following are the steps to perform that experiment
The above table 2.1 shows the VLC Software window which includes the settings of
controller, Plant (MS15), display meter, signal generator and DC Motor Braking.
The above Table 2.2 shows the relationship between offset, input voltage, output voltage at no-
load, half load and full-load. When offset is changed, the relationship between input voltage and
output voltage at no load, half load and full load can be seen. As offset is increased, other
quantities mentioned above also increased in a similar manner. After that, different graphs are
made which are of no load, half load and full load, in the graphs given below.
At 50% offset
Objectives
Lab Equipment
➢
PC workstation
➢
Tool MATLAB
Theory
Dynamic Systems
These are the systems that change or evolve in time according to a fixed rule. For many
physical systems, this rule can be stated as a set of first-order differential equations:
′
= = ( ( ), )
In the above equation, x(t) is the state vector, a set of variables representing the configuration
of the system at time t. For instance in a simple mechanical mass-spring-damper system, the
two state variables could be the position and velocity of the mass. U(t) is the vector of control
inputs at time t, representing the externally applied "forces" on the system, and f is a possibly
nonlinear function giving the time derivative (rate of change) of the state vector, dx/dt for a
particular state, input, and time.
Mechanical Systems
Newton's laws of motion form the basis for analyzing mechanical systems. Newton’s second
law, the below equation states that the sum of the forces acting on a body equals its mass
times acceleration. Newton's third law, for our purposes, states that if two bodies are
connected, then they experience the same magnitude force acting in opposite directions
It is useful to factorize the numerator and denominator of the transfer function into the so
called zero-pole-gain form.
Procedure
1. Figure 3.1 is a MASS-SPRING-DAMPER SYSTEM, having body of mass ‘M’. With
the provided data, we have to create a mathematical model of the given system. Whereas
Figure 3.2 shows the net forces acting on a body of mass ‘M’ in different directions.
F(t)
kx
Figure 3.2: Net Forces Acting on ‘M’
∑F = ma = mdx2/dt2
Linear Control Systems Laboratory Manual Page 21
F-ma-bv-kx=0
ma+bv+kx=F
md2x/dt2+bdx/dt+kx=F
mdx2/dt2+bdx/dt+kx=F
2. Verify that the transfer function of the system shown above is
To perform the above step, we use MATLAB tool installed in the PC workstation of the lab.
Initialize the variables used in the above equation in the command window of MATLAB and
get the result of G(s).
3. The above mentioned transfer function can be defined using MATLAB as:
(i) m = 1; k = 5; b = 1;
num and den must be defined before using the transfer function tf.
This step involves evaluation of the transfer function of the given system. For this, we
use MATLAB command ‘tf’ and then put the values of numerator ‘num’ and
denominator ‘den’. Remember, that the values of ‘m’, ‘k’ and ‘b’ has to be initialized
first as we did in step 1.
Step response is shown in Figure 3.3. Calculate the frequency of oscillations from the
step response. It should be n (1-2) you calculated earlier.
The step response shown above terminates at 12s is generated as the MATLAB detects
that the response is settled in a steady-state. The final time can be defined by the user as
shown below where the step response is calculated for 20s.
3. Calculate the natural undamped frequency n, damping ratio, and the frequency of
oscillation for each case as shown in the following Table 3.1.
Table 3.1: Comparison Table.
n
d
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Impulse response:
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
1Y(s)
R(s) s+1
(s+2) 500s2
The above (Figure 3.4) system have two transfer function G1 (s) & G2 (s) and they are
connected in series with each other as shown in Figure 3.4 which has two blocks in series in
the forward path. The feedback path has unity gain. Transfer function of such a system can be
computed as:
(b) numg = [1] ; deng = [500 0 0] ; // initializing denominator and nominator of block G2
(s)
(c) [num1, den1] = series(numg, deng, numc, denc); // Multiplied G1 (s) and G2 (s)
Linear Control Systems Laboratory Manual Page 25
(d) [num, den] = cloop(num1, den1) ; // cloop is closed loop
(e) sys = tf(num, den) ;// This command results a series-multiplied transfer function.
Derive the transfer function of the above system manually to verify the MATLAB
generated transfer function.
G1(s)
R(s) 1 Y(s)
500s2
s+1
(s+2)
G2(s)
Figure 3.5: A non-unity Feedback System
The system shown in Figure 3.5 have two transfer function G1 (s) & G2 (s) and they are
connected in parallel with each other as shown in Figure 3.5 which has two blocks in parallel.
The feedback path doesn’t have unity gain. Transfer function of such a system (Figure 3.5)
can be computed as:
(d) sys = tf(num, den) ; //This command results a parallel transfer function.
Exercise
For the mechanical system shown in Fig 3.6,
M
B x(t)
(b) Write the transfer function. G(s) =
Fig 3.6
(c) Write MATLAB commands to determine the transfer function of the system and
to sketch the impulse and step response.
s-plane
______________________________________________________________
______________________________________________________________
(d) What is relationship between the real part of the roots, time constant and settling
time?
______________________________________________________________
______________________________________________________________
(e) What is relationship between the imaginary part of the roots and the frequency
of oscillations of the step response?
_____________________________________________________________
______________________________________________________________
Conclusion
Objectives
1. To learn how to covert the transfer function of a system into state variable
representation and vice versa.
2. To learn how to simulate a system expressed in state variable form.
Theory
Lab equipment PC master Table Matlab
New MATLAB commands to learn in this experiment
Lsim LSIM(SYS,U,T) plots the time response of the LTI model SYS to
the input signal described by U and T. The time vector T consists
of regularly spaced time samples and U is a matrix with as many
columns as inputs and whose i-th row specifies the input value at
time T(i).
Procedure
Section-1
A feedback control system is shown Fig. 4.1.
2( + 1)( + 3)
ℎ ( )=
R(s) G(s) Y(s) ( + 2)( + 4)
Y(s)/R(s) =
Write Matlab commands to determine the closed-loop transfer using the numerator
and denominator polynomials.
>>
>>
>>
where, num and den are the numerator and denominator of the closed-loop
transfer function.
A= B=
C= D=
Write the Verify that the num1 and den1 are the same as num and den used in the
first step of this section.
num1 =
den1 =
Section-2
Time response of a system represented in state-space can be computed by using function
lsim. For this purpose, all four matrices (A, B, C, D) of a state-space model along with
initial conditions, a time vector (range of time) and an input vector are required. RLC
circuit shown Fig. 4.2. In this model, state variables x1 and x2 are the capacitor voltage
and inductor current respectively and the output y is the resistor voltage.
R=3;L=1;C=0.5;
L
A = [0 –1/C; 1/L –R/L];
B = [1/C; 0]; + +
u(t) vc C voR
_ _
C=[0R];
D = [0];
An RLC circuit.
Fig. 4.2
lsim function returns two parameters, output matrix y having one column and state
variable matrix x having two columns. Use size(y) and size(x) to see the number of rows
and columns in y and x.
Note: Number of rows in x and a y matrix is equal to the number of data points in time
vector t.
Use following commands to observe the time response of the system defined in previous
step.
subplot(3, 1, 1); % divide the figure window into 3 rows and 1 column.
subplot(3, 1, 2);
xlabel('time'); ylabel('x2');
subplot(3, 1, 3);
Sketch the state variables x1, x2 and the output y. Label all the curves appropriately.
Change the system parameters R, L and C in the circuit shown above to generate four
types of time responses as shown in the following table. Also, show the values of R,
L and C and position of poles for each type of response.
Case Type of Response System Parameters Position of Poles
1 Overdamped R= L= C=
2 Critically Damped R= L= C=
3 Underdamped R= L= C=
4 Oscillatory R= L= C=
Case-4: Oscillatory.
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
……………………………………………………………………………………………………………
Objectives:
1. In this experiment we are going to determine a model, which describes the change in
output speed when the input voltage is changed.
2. The step response of the motor has to be measured.
Lab Equipment:
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory
There are two parts to any output time response when there is a change in input:
• Transient period:
Transient response is important because it affects the speed of the system.
• Steady state condition:
A steady state condition which is reached after the transient has died out. The system
seems to have settled down to the influence of the input.
The elements within the plant which cannot respond instantly produce transient situation.
Mass in a mechanical system and capacitance in an electrical system both store energy so it
takes time to change the velocity of a mass or to change the voltage across the capacitor. The
parts of the DC motor, like motor armature, disks, dials etc have mass and they need energy
to move and stop. Actually, the energy needed is not due to the mass of these elements but
due to inertia of the elements since these are all rotating bodies. In order to better the
response of the system, terms like rise time, settling time, overshoot must be understood.
The step response obtained is characteristic of a First Order Time lag. A first order lag
produces an exponential rise to a step input. The two parameters that define the model are
Gain and Time constant. Gain (k) is the Steady State relationship between input and output.
Time Constant defines the Transient Time.
Figure 5.1 is the block diagram of DC motor. It consists of loaded motor, tachogenerator,
gearing, power amplifier, signal conditioning, and potentiometer.
Offset 0 %
Reference Internal
Procedure:
1. The system should be wired with the standard analog system connections.
2. Start the VCL software and load setup CA06PE03.
3. According to the wiring diagram shown in Figure 5.2, make connections.
4. Do the VCL Software settings as shown in Table 5.1.
5. On MS15 trainer, disengage the output potentiometer then switch power ON and
Enable the motor.
6. The output velocity trace (purple) on the PC shows what is called the Step Response.
Input Span:
Input span is the amount by which the input changes.
7. Select channel 1/Input/Dark Blue. The scale will show the input channel scale.
Linear Control Systems Laboratory Manual Page 37
8. Select line A by clicking within the A box. The box and the line will change colour.
9. Click in the B box and, in the same way, position line B over the lower part of
the dark blue trace.
10. The difference between A and B is the Input Span.
11. Input span = A1 – B1= ________
Output Span:
Output span is the amount by which the output changes in response to the input changes.
12. Change to channel 4/Velocity/purple and repeat the measurements on the purple trace.
13. Output span= A4 – B4 = +2.75 – (- 2.75) = ________
Gain:
Gain or magnitude ratio or Amplitude ratio, is the ratio between input and output when they
have reached a steady state.
14. The spans have been measured when the output has reached a steady state.
21. Move the Time Line to the time at which the velocity trace first reaches its final
value. The time shown is 5 time constants from the start of the transient.
Time Constant = t2 = __________
22. From above, the output span = A4 – B4. The 63 % level is then,
B4 + 0.63(A4 – B4) = _________
23. Now click the Time Box and move the time line to the time at which the velocity trace
reaches its 63% level. The time shown is the Time Constant measured by the 63%
method.
Time Constant= t3 = _________
24. Experience has shown that the 63% method is more accurate than the other two
techniques so use t3 as the time constant in your model.
Result:
Step Response:
Input Span = A1 - B1 = = Output Span = A4 - B4
= = Gain= Output Span /Input Span = A4-B4/A1-
B1 = Time Constant t1 = seconds Time Constant
t2 = seconds
Table 5.2:
Table: 5.3:
From steps 20, 21and 23 put the values of t1, t2 and t3 in the Table 5.3.
Conclusion:
It is concluded that the open loop takes more time to settle but the closed loop takes less time
to settle down. A device who have more time to settle down have more stability and have also
more steady state error.
Theory
Section-1
Disturbance Torque
Kb
Ra La Km J b Kb
For the open-loop speed control system of a dc motor (shown above), the transfer
function (s)/Td(s) with Td(s)=0 using the given system parameters can be determined
by using the following commands.
Ra = 1; La = 0.005; Km = 10; J = 2; b = 0.5; Kb = 0.1;
num1= [1]; den1=[La Ra] ; num2 = [Km]; den2 = [1] ; num3 = [1]; den3 = [J b] ;
sys4 = sys5 =
sys =
G(s)Td=0 = (s)/Va(s) =
Sketch the open-loop step Response. Label the speed and time axes properly.
Speed
time (sec)
G(s)Va=0 = (s)/Td(s) =
Now write MATLAB commands to determine the above mentioned transfer function.
Speed
time (sec)
Write your comments on the step response due to Va (Td=0) and due to Td (Va=0).
………………….…………………………………………………………………………
……………….……………………………………………………………………………
…………….………………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
……….……………………………………………………………………………………
………………….…………………………………………………………………………
……………….……………………………………………………………………………
…………….………………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
……….……………………………………………………………………………………
……….……………………………………………………………………………………
………………….…………………………………………………………………………
……………….……………………………………………………………………………
…………….………………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
…….………………………………………………………………………………………
Td(s)
Disturbance Torque
Controller (s)
*(s)
1 1 (Actual Speed)
(Desired Speed)
K Km
Las+Ra Js+B
Kb
Determine the step response for K=1 and K=20 and K=50 and sketch the step response in
each case.
Step Response
y(t)
for
K=1
when
D(s)=0
time (sec)
y(t)
for
K=20
when
D(s)=0
time (sec)
when
D(s)=0
time (sec)
Objectives:
3. PID controllers.
Lab Equipment:
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory:
Setting time TS
The amount of time it takes for the system's oscillatory response to be damped to within a
certain band of the steady-state value. That band is typically 2%.
Peak time TP
The amount of time it takes for a system to reach its first peak.
Percent overshoot
The amount by which the step response overshoots the steady-state value, in percentage
of the steady-state value.
Dead time
Time shift between the output change and the related effect. One sees "Lag" used for this
action sometimes.
OVERSHOOT
Overshoot is when a signal or function exceeds its target or the amount by which a response
goes beyond the steady state value before settling down. Overshoot can be measured from
the step response. It is the ratio:
ℎ − ℎ
ℎ
Damping factor
The term damping factor can also refer to the damping ratio in any damped oscillatory system.
This factor indicates the amount of overshoot in a system. Damping Factor has the symbol ζ.
0< ζ <1 Under damped – Decaying Oscillations
ζ=1 Critically Damped – Just No Overshoot
ζ>1 Over damped – System Sluggish
The objective of a control system design is often to achieve a fast response without any
overshoot or with just a little overshoot. Systems are usually designed for ζ in the range 0.7 to
1.
1
ζ=√
π
1+( )2
ln(overshoo t ratio )
Overshoot ratio = − /√ − 2
% overshoot = 100 ×
− /√ − 2
Figure 6.1:
Figure 6.2:
2
ωd = ωn√1 −
As gain is increases ωd is increases, which means that increasing the gain makes the system
work faster but at the expense is increasing the overshoot.
Relating ζ and ωN to open loop parameters
Second order systems are characterized by their damping factor and natural frequency from
which the overshoot and damped frequency can be obtained.
Figure 6.3:
To design a system we must know how ζ and ωN are related to the plant parameters Kp, Ki
and τ.
.
Two parameters describe the system is gain (Kp× Ki) and time constant
The time constant is inverse of cutoff frequency c. The forward loop gain in servo motor is K = Kp× Ki× Kc
Damping factor ζ = √
4
c
Critical damping is when ζ=1, this occur when K =
4
c
When K > 4 , <1 and the system is underdamped.
c
With K< 4 , >1 and the system is overdamped.
Natural frequency
Natural frequency is equal to ωn = √ c
Substituting equation
ωd =
√ 2
−4
Results:
Table 6.2: Measurement of damping factor and natural frequency without controller
Table 6.3: Calculated values for damping factor and natural frequency with controller
Kc Kp Ki ωc rad/sec ζ ωn rad/sec
Equipment:
• MS15 DC Motor Module
• AS3 Command Potentiometer
• AS4 PID controller
• Power Supply unit
• Signal Generator
• Digital Storage Oscilloscope
• CLIO Interference Module with PC Connection Lead
• System Power 90 Power Supply (or equivalent) 4mm Connection Leads
Theory:
A feedback loop is a common and powerful tool when designing a control system. Feedback
loops take the system output into consideration, which enables the system to adjust its
performance to meet a desired output response.
When talking about control systems it is important to keep in mind that engineers typically
are given existing systems such as actuators, sensors, motors, and other devices with set
parameters, and are asked to adjust the performance of those systems. In many cases, it may
not be possible to open the system (the "plant") and adjust it from the inside: modifications
need to be made external to the system to force the system response to act as desired. This is
performed by adding controllers, compensators, and feedback structures to the system.
There is a variable whose value is to be controlled and a variable which represents the value
of the output required. This output is passed back via a feedback block to be subtracted from
the output to form error. The error is manipulated by the controller to provide the drive which
is the signal which tells the plant what to do.
By measuring what the output is doing and feeding this back to be compared with the input, a
closed loop feedback control system has been created.
Transfer function
To analyze a closed loop feedback system, we should have the knowledge about each
element of the system.The term transfer function is used to describe the relationship between
the input and the output of a block and usually represented by G.
( )=
= ×
Transfer function can be the equations in time or frequency. With the help of the transfer
function we can find the output if input is known.
Gain
A special term is used when the output is directly proportional to the input, such that there are
no time constants involved.
Attenuation
The gain can be less than 1 it is called attenuation.
C K. G
Transfer function = R = 1 + K. G. H
K.G is called the forward loop transfer function and K.G.H is called the open loop transfer
function
Forward Loop Transfer Function
Closed Loop Transfer Function = 1 + Open Loop Transfer Function
K is under our control so we could make K.G large.1/K.G will be less than 1 and this term
can be ignored and output equal to input.
=
Registration Number-------------------------------
Student Name-------------------------------
Teacher Signature -------------------------------
Study of Controllers.
Lab equipment
PC Matlab
Minimum required software packages: MATLAB, Simulink and the Control System Toolbox.
Theory
Points to remember:
Integral Conroller = S.S Error eliminate but make transient response worse.
1. Tr decreases
2. %OS decreases
Ideal
Kp
Kd
Ki
Kpid
What kind of controller you add in your system to achieve best possible ideal goal?
Assignment: Consider a block diagram model of a closed-loop speed control of a DC motor with
unity-feedback in experiment no.2,Check the response without any controller with disturbance=0.
Design the controller for the system to achieve the Overshoot minimum, rise time minimum and zero
steady state error by considering the output response achieving without controller.
Lab Equipment:
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory
Introduction to Feedback
A feedback loop is a common and powerful tool when designing a control system. Feedback
loops take the system output into consideration, which enables the system to adjust its
performance to meet a desired output response.
C K. G
Transfer function = R
= 1+K.G.H
K.G is called the forward loop transfer function and K.G.H is called the open loop
transfer function
Forward Loop Transfer Function
Closed Loop Transfer Function = 1 + Open Loop Transfer Function
Gain
A special term is used when the output is directly proportional to the input, such that there
are no time constants involved.
R
= 1+K.G.H
For steady state performance we do not need to consider the dynamic effects so each of
the transfer function can be represented by its gain.
C 1
=
R 1
( K. G )+H
K is under our control so we could make K.G large.1/K.G will be less than 1 and this term
can be ignored and output equal to input.
=
Procedure Steps:
Following are the steps to perform this experiment with offset 50 %.
Signal Graph
Generator DC-Level 1 Input ON
Signal 0% 2 Position ON
Level 50%
Offset 4 Velocity ON
10 msecs
Rate 5 Drive ON
Reference Internal
The table 8.1 is the VLC software window which shows settings of different parameters like
signal level, offset, rate and braking.
Closed loop TF = R
= 1
= K. Kp
R 1+K.Kp
10
20
50
100
Objectives:
1. Account for the excellent steady-state performance of a proportional servo
position system.
2. Account for the poor transient performance of a proportional servo position system.
Equipment:
➢
MS15 DC motor module.
➢
AS3 command potentiometer.
➢
CLIO Interface module with PC connection lead.
➢
System power 90 power supply.
➢
4mm connection leads.
➢
PC running VLC virtual control laboratory software
Theory
Position control using DC motor is one of the major applications of control. Many of the
control solutions were developed for this type of problem mainly to do with the aiming of
artillery weapons by the military.
There are many more peaceful applications for this type of control. The DC motor is also
called a servo motor and this branch of control is called servomechanisms.
In its simplest type of application, the artillery operator turns one dial to rotate the weapon barrel
to point at the required horizontal direction and another dial to elevate the barrel to point at the
required vertical angle to the horizon. When the weapon on target as quickly as possible. The
Sketch of Simple Servo Motor is given in Figure 9.1 and Figure 9.2 gives an idea about
respective feedback controller for complete understanding of whole closed loop system.
Gearbox
Velocity Feedback
Techo-
Position Feedback
Procedure Steps:
We will investigate the behavior of a position control system with proportional control.
3. The additional feedback control box labeled VFB is not acting during this investigation.
Make sure that the output potentiometer is engaged then switch power ON.
4. Rotate the command potentiometer between 30 degree and 300 degree and watch the
output dial follow, albeit rather sluggishly.
7. You can see the behavior of system on the screen. Trace1 (dark blue) is the input position
and trace 2 (blue) is the output position. The other three traces Error, Velocity, Driver are
available for other parts of the exercise but are currently OFF.
8. Set Kc = 2.5 and compare the input and output traces once the transient has died away.
You will see that are indistinguishable. Even with this low gain, the steady-state
conditions have been met.
DC MotorOutput potentiometerEngage
Brake 0 command potentiometer 180 degree
Steady-state Behavior:
The steady-state transfer function for a unity feedback system would be:
A high gain is required to give a closed loop transfer function of 1. But, from the observation
just made, it would appear that (C/R) = 1 with a low value of gain Kc. Why is this so???
The answer lies in the integration effect between velocity and position. At any steady
velocity, after an infinite time you will have travelled an infinite distance so we can say that
the steady state gain of an integrator is infinite.
The effect of the integral can be looked at another way. Any position error will drive the
motor. The feedback ensures that the motor will be driven to reduce that error. The motor
will stop turning when there is no error.
Velocity
Voltage
Position
= integral of velocity
Time
Figure 9.3: Signals within the System
You can see what happens to the motor if you look at little time slices of the signal. This is
shown in Fig 9.4 When the step is applied, there is large error so the motor runs at high speed
and the position ramps up quickly. At the end of the 1st period, the output has moved towards
the input, so the error is reduced and the motor now runs slowly. The position also changes
more slowly. At the end of each period the motor is running more slowly. At the end of each
period, the motor is running more slowly and the position is changing more slowly but it will
eventually get to where we cannot distinguish the output position from the input position.
required position
Position
Voltage
Error
Time
Increase Kc to 3 and you will see the problem. Although the steady-state value is reached,
eventually there is a lot of trouble getting there. If you were on the lift and it oscillated like
this, you would not be very pleased.
We could just leave the gain at 0.8 but this would not give the speediest response.
In Fig 9.4, the effects of the motor lag were ignored. This is adequate at low gain but not
when the gain is increased. Including the lag effect gives signals as in Fig 9.5.
Voltage Velocity
Lag Position
Time
Figure 9.5: Signals within the system including the effect of motor lag
When the step is applied, there is a delay before the motor reaches the speed demanded. This
causes the position to lag behind the ideal signal. If this lag is added to the linear
approximation, the response shown in Fig 9.6.
Position
Required position
Error
Time
The motor than has to be reversed to allow the position potentiometer to reach the required
position. The lag tends to make the system less stable.
The servo system with only proportional control can give an adequate response but with only
one control, a system can be designed for a particular speed of response or for a particular
degree of oscillation.
Conclusion:
Position control adds an integration effect into the system. This give excellent steady-state
performance but the gain setting can give a variety of transient responses ranging from the
sluggish to the oscillatory depending on the load. An understanding of the oscillatory
performance is required before ways of increasing the speed of response without causing
oscillations can be introduced.
Registration Number-------------------------------
Student Name-------------------------------
Teacher Signature -------------------------------
Equipment:
• MS15 DC Motor control module
• AS3 Command Potentiometer
•
•
AS4 PID Controller
CS1 Set of 36 × 4 leads
Theory:
Velocity feedback is to be introduced as a potential solution to the unresolvable situation but
the proportional gain affects both the damping ratio and natural frequency. Natural frequency
is not a function of damping but by increasing , damping ratio falls and the system cannot
stop instantly.
This shows that zeta will rise first order time lag is reduced. Thus, a velocity signal is used to
form a closed loop speed control mechanism inside the position loop with a view to reducing
the time lag occurring in the forward path.
If there is insufficient feedback in the inner loop the oscillation associated with the given
proportional gain will persist. Excessive feedback will reduce the steady state gain of
inner loop and increase in Kp to overcome it.
To achieve the system shown in figure 9.7 the tachogenerator output is amplified using the
auxiliary amplifier then fed into the inner loop error detector.
The system in figure 9.8 removes the steady state component of velocity feedback. To do this
high pass filter is inserted in the velocity loop. High pass filter shown in figure 9.9. As the
frequency in transient oscillations is very low the RC values will have to be very high. The
output voltage is dependent on current through the the resister and the same current depends
on rate of change of voltage thus, the filter generates a derivative. For this reason the system
is known as acceleration feedback.
On AS4 PID Controller a capacitor is provided that should be connected to the input of
auxiliary amplifier.
Procedure:
1. Construct the system shown in figure 9.10. The amplifier in the inner loop allows the
amount of velocity feedback to be adjusted.
2. Set the following:
• Proportional in, Kp=1.
• Integral out
• Derivative out
• Filter out
• Auxiliary amplifier gain=0.1
• From figure 9.10 by applying the gains of 0.1, 1.2 and 3 at auxiliary amplifier gives
us following waveform.
2.
3.
Set the auxiliary amplifier gain to 1.
Apply ±0.5V square wave at 0.2Hz and observe output waveform.
• Switching to 200Hz results in output very similar to input because time lag in the
filter prevents the capacitor discharging shown by below waveform.
• Output of wiring diagram shown in figure 9.12 reverts the original following error
when steady state conditions are reached.
Objectives:
Lab Equipment:
1. Quancer DCMCT Trainer
2. USB QICII Software on PC work station
Theory
Quanser's QET DC Motor Control (Refer APPENDIX for detail) Trainer provides an ideal
way to demonstrate the fundamentals of motor control, tuning and haptics using several
integrated experiments. The system consists of a motor instrumented with an encoder. The
motor is driven using a linear power amplifier. The power to the system is delivered using a
wall transformer. Signals to and from the sys-tem are available on a header as well as on
standard connectors for control via a data-acquisition (DAQ) board. Thus the system may be
controlled using an external PC equipped with a DAQ board.
There is also a socket that accommodates a PIC micro controller. The PIC can measure the
encoder, apply voltages to the motor amplifier, and communicate with a laptop or PC using a
USB cable. In addition, analog controllers can be implemented on the breadboard. In the
context of this workbook, the QET is used as a plant that is interfaced with a DAQ board and
controlled using Quanser's own rapid prototyping and real-time control software, QuaRC, to
perform various control experiments. QuaRC allows a user to generate real-time code from a
Simulink diagram and run the code on the same (or a remote) PC. This allows for parameter
tuning on the fly, data collection, and plotting.
FIGURE: 10.1
Part 1:
INITIAL TEST EXPERIMENTS:
PROCEDURE:
A procedure of this type is very useful to make sure that a system functions properly.
Please follow the steps described below.
Step1: Run the system open-loop by changing the voltage to the motor. The motor Voltage is
set by the signal generator. With zero signal amplitude, change the signal offset to generate a
constant voltage. Sweep the voltage gently over the full signal range and observe the steady-
state speed, current, and velocity.
What happens to the variables as you change the offset?
OBSERVATION:
As the constant input voltage increases, the motor output velocity also increases, and vice
versa. For a given input voltage polarity, the current stays around the same value, mostly
indicative of the Coulomb friction in the system.
Step2: Determine the maximum velocity and compare with calculations. Note: Although the
motor maximum input voltage is 15 V, the Offset numeric input is limited to 5 V.
OBSERVATION:
Setting the Offset to 5 V results in an output velocity of approximately 100 rad/s.
Extrapolating to the end of the motor linear range, an input voltage of 15 V. Result to a
maximum velocity of 3 * 100 = 300 rad/s. This is fairly close to the theoretical value.
OBSERVATION:
From the rest position, a positive voltage of 0.75 V or a negative voltage of -0.70 V are
required to start the motor. Because of friction in the motor it is necessary to apply a small
current to make the rotor move. The friction can be measured by determining the voltage
required to start the motor from rest. The voltages obtained are highly varying, they depend
on the direction of rotation and how long the motor has been running. Typical values are in
the range 0.2 V to 0.8 V. The friction is particularly severe for velocities around zero because
friction changes sign with the direction of rotation. This can be avoided in the experimental
tests by making sure that the velocity does not change sign.
Step1: 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 the actual motor current from the digital display. The value
is in Amperes.
Step2: 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
non-zero. This is an offset in the measurement which you need to subtract from subsequent
measurements in order to obtain the right current. Note also that the current value shown in
the digital display is filtered and you must wait for the value to settle before noting it down.
Now fill the following table keeping in mind the above instructions:
10
Step3: Calculate for each iteration the motor resistance Rm(i) and obtain an average value for
it, Ravg. Explain the procedure you used to estimate the resistance Rm.
SOLUTION:
Measure the current at zero Volts. This value is Ibias. Measure the current at each of the
specified voltages Vm(i), with i from 1 to 10. The measured current for each of these
voltages is Imeas(i). Correct the current measurement for each applied voltage by applying:
( )= ( )−
Then the estimated resistance Rm(i) for each measurement, i, is given by:
Step4: The system parameters are given in Table 10.1. Compare the estimated value for
Rm (i.e. Ravg) with the specified value and discuss your results.
OBERVATION:
The specified value for Rmis 10.6 Ω ±10 %. The estimated value is 13.71 Ω (in this specific
case). This variation is likely due to the current sense accuracy which is specified as ±10 %
and to other sensor errors.
Step 1: With the motor free to spin, apply the same procedure as above. You can read a value
for the motor angular speed from the digital display. Wait a few seconds after you enter a
new voltage value as the displayed speed values are low-pass filtered. The angular speed
value is in radians per seconds. The current measurement may have an offset which you will
need to account for. The speed measurement will have a very small offset which will need to
be compensated for.
Calculate the motor back-EMF constant for each measurement iteration and then calculate an
average for the 10 measurements. You should use the value of Rm that you estimated in the
previous section.
[rad/s]
1
10
SOLUTION:
Measure the current at zero Volts. This value is Ibias. Measure the motor current, Imeas(i),
and angular speed, ωm(i), at each of the specified voltages Vm(i), with i from 1 to 10.
Correct the current measurement for each applied voltage by applying:
Im(i)= Imeans(i) - Ibias
Then the estimated back-EMF (or torque) constant km(i) for each measurement iteration,I is
given by:
( ) = ( )− ( )
( )
Step 3: The system parameters are given in Table 10.2. Compare the estimated value for km
(i.e. km_avg) with the specified value and discuss your results.
SOLUTION:
The specified value for km is 0.0502 V.s/rad. The estimated value is 0.0483 V.s/rad(in this
specific case). These are fairly close (less than 4 % difference). Any discrepancies would be
due to sensor errors.
The transfer function steady-state gain and time constant can thus be expressed by:
= and =
Summarizing the other data from the motor specification sheet, we have:
, ( )=
GRAPH: 1
It can be seen from the above graphs that at V=2 volts and V=4 volts, the output speed to
velocity ratio almost remains the same but the disturbance frequency increases with increase
in voltage. This noise in the output signal is majorly due to the fact that the rotor rotates on
ball bearings that support the motor shaft. At higher velocities/voltages, there is lesser friction
so the amplitude of this noise decreases.
PART: 2
In bump test a constant input is chosen at first and the system is allowed to reach equilibrium.
The input is then rapidly changed to a different constant value and the system output is
recorded.
, ( )= +
GRAPH: 2
K=
MODELLING:
Figure represents the classic schematic of the armature circuit of a standard DCmotor.
Solution:
Using Kirchhoff’s voltage law, we obtain the following equation:
= + ( )+
2. Determine and evaluate the motor electrical time constant τe. This is done by
assuming that the shaft is stationary.
Solution:
Considering the transient part (i.e. left hand side) of the first-order differential
equation [2.s3], the armature time constant results in: =
Step 1: Apply a series of step inputs to the open-loop system by setting the QICii module
parameters.
Table 10.3:
Signal Type Amplitude Frequency Offset (V) K [rad/(V.s)] T(s)
(V) (Hz)
Square
Wave
Step 2: A constant amplitude square wave is applied to the motor by the controller. The pulse
width of the square wave is so long that the system easily reaches steady state at each step.
The motor runs at a speed corresponding to the step input. The transfer function can be
obtained from voltage Vmto angular velocity ωm using the obtained bump tests.
GRAPH: 3
K=
Τ is found by reading the time taken by the output to reach 63% of it’s final value.
CONCLUSION
We can perform above experiments using this trainer in order to determine the transfer
function of the system. We can also detect the damage insulation of motor using this trainer
by measuring its resistance.
Command Description
rlocus(sys) Enter help rlocusin the Matlab Command Window for a detailed
description.
Procedure
Section-1
Controller Plant
R(s) 1 Y(s)
K
s2 + 5s + 6
Y(s)/R(s) =
Show the position of poles and zeros of the open-loop transfer function in the s-plane.
Section-2
In the system shown above, use integral controller K/s and determine the open-loop
and closed-loop transfer functions.
Plot the root-locus using MATLAB command rlocus and sketch the root-locus.
Section-3
In the system shown above, use a proportional integral (PI) controller K(1+1/s) and
determine the open-loop and closed-loop transfer functions.
………………….……………………………………………………………………….…
……………….……………………………………………………………………………
…………….………………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
…….………………………………………………………………………………………
….………………………………………………………………………………………….
………………………………………………………………………………………….…
……………………………………………………………………………………….……
………………….…………………………………………………………………………
……………….……………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
….………………………………………………………………………………………….
………………………………………………………………………………………….…
…………………………………………………………………………………….………
………………………………………………………………………………….…………
…………………………………………………………………………………………….
Objectives
To explore the Frequency Response of a Control System.
Procedure
Section-1
Controller Plant
R(s) Y(s)
K 1
Determine the loop-transfer function of the above system for K=1 manually
and verify the transfer function using MATLAB. Use variable sys for the
transfer function.
G(s) =
Following is the MATLAB command used for the Bode magnitude and phase plots.
Magnitude
Phase
Sketch the Bode magnitude and phase plots with controller gain
K=20. Magnitude
Phase
K=50. Magnitude
Phase
Write your comments on the effect of increasing the gain of proportional controller on the
Bode plots.
………………….…………………………………………………………………………
……………….……………………………………………………………….……………
…………………………………………………………………………….………………
………………………………………………………………………….…………………
……………………………………………………………………….……………………
…………………………………………………………………….………………………
……………………………………………………………….……………………………
…………………………………………………………….………………………………
Gain Margin
Phase Margin
Use the MATLAB command nyquist(sys) for the Nyquist plot of the above system for
controller gains K=1, 20 and 50. Sketch all three polar plots in the following space.
………………….…………………………………………………………………………
……………….……………………………………………………………………………
…………….………………………………………………………………………………
………….…………………………………………………………………………………
……….……………………………………………………………………………………
…….………………………………………………………………………………………
….………………………………………………………………………………………….
………………………………………………………………………………………….…
Magnitude
Phase
Nyquist Plot
Determine the range of K for a stable operation from the Nyquist plot.
………………….…………………………………………………………………………
……………….………………………………………………….…………………………
……………………………………………………………….……………………………
…………………….………………………………………………………………………
Lab Equipment:
➢
MS15 Module
➢
AS3 Command Potentiometer
➢
Control Laboratory Input/output Interface (CLIO)
➢
Power Supply
➢
Connecting leads
➢
Virtual Control Laboratory (VCL) Software
Theory
For understanding the frequency analysis in control engineering, there are three different
strands of development:
1. Process Engineering
The process with running plant at steady condition so it concerned with maintain an output
against load fluctuation.
2. Mechanical Engineering
The dynamics of vehicles and their suspension system.
3. Electrical Engineering
This engineering developed a strong frequency bias and a branch of control engineering
called servomechanisms.
As shown in the figure 12.1, the output can have different amplitude from input and the
ratio can be described as:
1. Output sinusoid lags in time behind the input; this lag is measured in Degrees and is
called Phase Lag ɸ.
2. Phase Lag can be calculated from the time difference the peak of the two sinusoids.
3. The frequency of a signal (in hertz Hz) is number of cycle in one second.
4. The period is the time to complete 1 cycle that is the inverse of frequency:
Period (seconds) = ( )
The above table 12.1 shows the VLC Software window which includes the settings of
controller, Plant (MS15), display meter, signal generator and DC Motor Braking.
Procedure Steps:
Starts at 100 MHz then go down the table then come back to 50 MHz and complete the
low frequency tests.
At each frequency:
1. Freeze the delay using Freeze option. At low frequency do not initiate the freeze until
the trace has begun a cycle at the left of graph.
2. When the frozen message appears, click Frequency ON
3. Measure the peak-peak voltage by placing lines A and B on the maximum and
minimum velocity values
4. Select D phase by clicking in the D box. Move the vertical line until it will interest the
peak value.
5. The reading in the box is the phase shift relative to 0° of the input trace. As you are
measuring the phase shift at the peak the phase lag will be measure value -90°.
Input amplitude = 6 volts peak-to-peak
10mHz
20mHz
50mHz
100mHz
200mHz
500mHz
1Hz
2Hz
5Hz
10Hz
The results in Table 12.2 can be plotted in a number of different ways but the most useful is
Bode Plot, where amplitude and phase is are plotted separately against log frequency.
Bode plots shown in figure 12.2 are the graphical representation of the readings measured in
Table 12.2.
Table 12.3:
Conclusion
From this we conclude that with the increases in frequency, phase lag between the
input voltage and output voltage also increases while the output voltage decreases.
Experiment Purpose
Experiment Requirements
1. Establish the mathematic model of linear 1-stage inverted pendulum with mechanism
method.
2. Analyze the stability of linear 1-stage inverted pendulum, and conduct simulation
verification in the MATLAB.
Experiment Equipment
Experiment Principle
System modeling can be divided into two categories: mechanism modeling and experiment
modeling. The mechanism modeling establishes the input-output relations within the system
through physics, chemistry and mathematics means on the basis of good knowledge of the
object's moving rules, while the experiment modeling refers to the systematic input-output
relations established via mathematics means on the basis of a series of preset input signals
imposed on the object, which is used to stimulate the object so as to detect the observable
output through the sensor. This process includes the design and selection of input signal, the
precise detection of output signal, and the research of mathematic algorithm etc.
The inverted pendulum system, if some secondary factors are ignored under certain
hypothesis, is a classic moving rigid system, which is applicable to the systematic dynamic
equation built in inertia coordinate system using the classic mechanics theory. The text below
lists the mathematic model of the linear 1-stage inverted pendulum system built under
Newton-Euler method.
1. Force Analysis
The linear 1-stage inverted pendulum system may be abstracted into a system composed
of cart and uniform bar after the ignorance of air resistance and various friction forces,
and it is shown as Fig. 13.1.
The symbols, their references and relevant values involved in the inverted system are
shown in Table 13.1.
Fig. 13.3 shows the force analysis for the pendulum bar in the system. Fs refers to the
disturbing force imposed on the pendulum bar in horizontal direction, Fh refers to the
disturbing force imposed on the pendulum bar in vertical direction, and the resultant force
means the disturbing force Fg forming a included angle of α with the vertical direction.
Note: The positive and negative directions of the inspection and implementation devices
are determined in actual inverted pendulum system; therefore, the vector direction is
defined as shown in the figure, which is the positive direction.
2. Mathematical Model
The analysis of the horizontal resultant force of the cart may lead to the equation below:
The force analysis of the pendulum bar in the horizontal direction may lead to the
equation below:
That is
The analysis of the resultant force in the vertical direction of the pendulum bar as shown
in Fig. 1.3 may lead to the equation below:
That is
If θ = Ф + π (Ф means the included angle between the pendulum bar and the vertical
direction, it is in the unit of radian), and apply it into the formula above. Assume that
Ф<<1, then proximity processing is possible:
Above formula is the simplified differential equation for linear 1-stage inverted pendulum
system. When the values are applied, the differential equation is shown as formula below.
The linear 1-stage inverted pendulum system is a single-input and double-output fourth-order
system without considering the disturbing force and a double-input and double-output fourth-
order system considering the disturbing force. The 4 internal state variables is X, the cart's
position, ̇. , the cart's speed, θ, the angle of the pendulum bar, and ̇ , the angular velocity of
the pendulum bar. The observed variety of the system output is, X the cart's position, and θ,
the angle of the pendulum bar. The control variable is ̈, the cart's accelerated speed. Ff is the
sum of all disturbing factors occurred in the motion of linear 1-stage inverted pendulum
system, it is equivalent to the disturbing force.
Experiment Procedures
According to system differential equation (Formula 1.10), the formula can be transformed
into the transfer function as regards the input of accelerated speed and output of angle.
As the pole owns a positive value in the real part, the closed-loop is unstable, and
a controller is necessary for the stability of the system.
3. Simulation
Establish the simulation program e1 as shown in Fig. 1.4 in the MATLAB Simulink, and
add the step signal at 1m/s2, the procedures are listed below.
1) Open the MATLAB/Simulink simulation environment.
2) Click on the icon on the top left of the window to open a new “Model”window.
4) Drag the “Transfer Fcn”module into the newly build window named “untitled”.
8) Double click on the “Sum” module and open the window below, then the feedback settings is presented.
10) Link the four modules following the instructions listed below and then save the file in
the name of "e1", and the format of mdl.
Experiment Records
Fill the values obtained from simulation experiment into the table below:
Experiment Purpose
1. Master the method to analyze system stability with root locus method.
2. Correct the linear 1-stage inverted pendulum with PID control.
Experiment Requirements
1. Analyze the stability of linear 1-stage inverted pendulum system with root locus method;
2. Correct the linear 1-stage inverted pendulum system with PID control;
Experiment Equipment
1. Linear 1-stage inverted pendulum.
2. Computer MATLAAB platform.
Experiment Principles
1. Analyze the stability of linear 1-stage inverted pendulum system with root locus method
The open-loop transfer function of linear 1-stage inverted pendulum system is:
A great number of PID control algorithms have their own application ranges. Three different
algorithms are given respectively in Fig. 14.1, Fig. 14.2 and Fig. 14.3.
In simulated control system, the PID control is the most commonly used one. The principle
block diagram of the simulated control system is shown in Fig. 14.1. The system is composed
of simulated PID controller and the controlled object.
As a kind of linear controller, the PID controller shall constitute control deviation e (t)
between the given value r (t) and actual output value.
The PID controller is so called because it combines Proportion P, Integral I with Differential
D of the deviation via linear means, and constitutes the control variable to have the object
controlled. The law is:
Where, Kp means proportion coefficient TI, integral time constant TD and differential time
constant. In control system design and simulation context, the transfer function is also written
in the form of:
It is equivalent to adding an open-loop pole located at base point and two open-loop null
points with variable location to the system, therefore, the root locus method is applicable to
the determination of PID parameters, which is based on the expected performance index as
regards the system with known low-order mathematical model.
As regards the system with known frequency characteristic curve, the PID controller is
equivalent to adding an integral link and a second-order differential link to such curve, which
can, through the adjustment of PID parameters, change the frequency characteristic of the
PID controller, so as to further change the frequency characteristic of the closed-loop system.
(3) Instances for determination of PID controller parameters with root locus
The PID link adds a pole located at base point and two null points with variable location to
the system, and the system would have two null points and three poles. The third-order
system may apply the root locus method to determination of PID parameters. While the root
locus may be divided into eight categories based on the relative location of the two null
points, see the Fig. 14.4 to Fig. 14.12.
Figure. 14.4: Two Conjugated Null Points of (e3_1.m) Located at the Right Half Plane
Figure. 14.6: Two Null Points of (e3_3.m) on the Positive Real Axis with One Located at the Right of
the Positive Pole
Figure. 14.8: Negative Real Links of Two Conjugated Null Points of (e3_5.m) Located between
Negative Pole and the Base Point
Figure. 14.10: Two Negative Real Null Points of (e3_7.m) Located on the Left of the Negative Pole
Figure. 14.12: Two Conjugated Null Points of (e3_9.m) with the Negative Real Link Located on the
Left of the Negative Pole in a Far Distance to the Negative Pole
Drawn from the eight figures listed above, the four types of root locus shown in Fig. 14.4, Fig.
14.5, Fig. 14.6 and Fig. 14.7 means that there is a right pole to the closed-loop system, which is
unstable. Fig. 14.8 and Fig. 14.9 show that there are at least two closed-loop poles located
between the left pole and the base point, which is bad to system speed ability. Fig. 14.10 shows
three closed-loop poles located at the left of the left pole, but one pole has a short root locus
branch, which means that the system speed ability is hard to improve largely even under great
change to the root locus gain. Fig. 14.11 and Fig. 14.12 manifest that the closed-loop pole may
be, through the adjustment of the root locus gain, located at the left of the left open-loop pole,
Assume that kp=200, kd=10, ki=1090, when the conjugated null points of the system are
located at the and the root locus gain is 30, then the system closed-loop pole is
which means the root locus gain may be kept enlarging to reduce
system overshoot and the regulation time. The root locus is shown as Fig. 14.13.
The angle overshoot is 11.5%, regulation time s0.5 s, and the angle output is stable.
1) Switch on the power button on the electric cabinet of the inverted pendulum, then place the
inverted pendulum cart at the mid of the guide rail.
2) Open file “PID_Control.mdl”in MATLAB/Current Folder, then the real control page as
shown in Fig. 14.15 will pop up.
5) Click on button to operate the program, then manually place the pendulum bar to the
straight up position, when the program would enter control state. Hold the pendulum bar and
maintain it at the mid of the guide rail.
6) Double click on the “Step Switch1”to stimulate the input signal to the 0.05m/s2 end, hold
the pendulum bar still for 10s, and then observe the motion with hands off.
7) Click on button to stop the program, and double click on the "Step" and "Angle"
oscilloscopes to observe the response of system output in Angle when the signal in Step in
switched into 0.05m/s2.
Experiment Records
1. Fill the values obtained from experiment into the table below,
The linear 1-stage inverted pendulum system is composed of a cart moving along a smooth
guide rail, with a pendulum bar linked on the cart with hinge. When the pendulum bar is
controlled, the position of the cart is limited by the length of the guide rail. Therefore, the
output covers the angle of the pendulum bar and the position of the cart. The relation between
theposition and the input -the accelerated speed of the cart is:
At this moment, the simulation diagram for position output is shown as Fig. 14.17 (unit:
Abscissa axis is s, and the ordinate axis is m).
The cart is in accelerated movement to the other end, it will knock into the wall, and the
pendulum bar is unstable.
The inverted pendulum's motion will inevitably disturbed by various factors, and the angle and
position will fluctuate within certain range even under balanced state. Hence, a constant tiny step
signal may be added on the input end to compensate the disturbance upon the inverted
The static compensation experiment requires two people's joint effort. And the procedures are
listed as below:
1) Switch on the power button on the electric cabinet of the inverted pendulum, then place the
inverted pendulum cart at the mid of the guide rail.
2) Open file “PID0.mdl”in MATLAB/Current Folder, then the real control page as shown in
Fig. 3.18 will pop up.
5) Experimenter1 shall swiftly lift the pendulum bar to the straight up position, and release
its lowly after the program is under control. Hold the pendulum bar still at the same time.
6) Experimenter2 shall double click on the “Step Switch” to stimulate the input signal to the
0.05m/s2end.
7) Experimenter1 shall slowly release the pendulum bar. If the cart is unable to stand still,
then observe the motion direction and speed of the cart.
8) Experimenter2 shall adjust the input signal value at the software page as shown in Fig.
14.19. The method is to place the input signal reverse to the motion direction of the cart; if
the motion speed is too fast, then reduce the input signal value appropriately.
9) Repeat procedures 8)-9) till the balance of the cart with hands off.
10) Record the static compensation value and fill it into the Experiment Records
table. 3. Questions
A. How to determine the parameters of PID controller?
B. Whey PID control is widely used in industries?
Experiment Purpose
1. Master the method to analyze system stability with frequency response method.
2. Correct the linear 1-stage inverted pendulum with frequency response control.
Experiment Requirements
1. Analyze the stability of linear 1-stage inverted pendulum system with frequency response
method.
2. Correct the linear 1-stage inverted pendulum system with frequency response control.
Experiment Equipment
Experiment Principles
1. Analyze the stability of linear 1-stage inverted pendulum system with frequency response
method
The Nyqiust Criterion shows that the system is unstable, and a controller is required to
stabilize the system.
2. Correct the linear 1-stage inverted pendulum with frequency response control
The control refers to adding some institutes or devices into the system to change the system
characteristics, so as to satisfy the expected performance index. The control device can be linked
through such means as series control, feedback control and composite control. The series
A. The gain of the low frequency range is large enough to meet the steady-state precision;
B. The slope of the mid frequency range is -20db/dec, and the phase margin is around 45°with
wide frequency band so as to endow the closed-loop with good dynamic performance;
C. The high frequency range requires fast attenuation in magnitude to reduce the influence of
the noise.
The series control devices are divided into two categories, one is phase lead control. It
utilizes the phase lead characters of the lead control device to enlarge the system phase
margin and improve the system dynamic performance. Therefore, the requirement to control
the largest phase lead angle occurs at the point of shear frequency.
The other one is the frequency lag control, which functions in two areas. The first one is to
improve the low frequency response gain to reduce system steady-state error and maintain the
transient performance at the same time; the second one is to utilize the low-pass filtering
characteristic of the lag control device to attenuate the gain of high frequency response, and
to decrease the shear frequency, so as to improve the system phase angle stability margin and
enhance the system stability and some certain transient performance.
Assume that the open-loop transfer function of the uncorrected second-order system is shown
as Fig. 15.1.
Then the structural diagram of such uncorrected closed-loop system is shown as Fig. 15.2.
The closed-loop system is unstable, and its open-loop frequency characteristics are shown
in Fig. 15.3.
It is observable that the uncorrected system is unstable. Now it comes to the design of the series
lead control link, and the
The system analysis result is:
Drawn from the empirical relationship formula corresponding to the open-loop frequency
response index and time domain index:
We conclude the stability margin and cutoff frequency after control based on the δp-
performance index overshot, and ts-regulation time. Simplify the formula, we obtain
Where, the phase overshoot refers to the compensation correction value used to compensate
the phase lag value due to shear frequency increased through lead correction. In general, if
the slope of the uncorrected system's open-loop frequency characteristic curve at the point of
shear frequency is -40db/dec, then the compensation value
And the corresponding open-loop frequency characteristic curve is shown as Fig. 15.4.
The system shear frequency is 22.8 rad, and stability margin 67 degree, and the system is stable.
Therefore, the structural diagram after compensation and correction is shown in Fig. 15.6:
And the step response curve (FreqR_Simulink.mdl) of the system is shown in Figure. 15.7:
Experiment Procedures
1) Switch on the power button on the electric cabinet of the inverted pendulum, then place the
inverted pendulum cart at the mid of the guide rail.
2) Open file “FreqR Control.mdl” in MATLAB/Current Folder then the real control page as
shown in Fig. 4.8 will pop up.
4) Click on icon to link the programs, when the buzzing generated from the motor after
servo would be heard.
5) Click on button to operate the program, then manually place the pendulum bar to the
straight up position, when the program would enter control state. Hold the pendulum bar and
maintain it at the mid of the guide rail.
6) Double click on the “Step Switch1”to stimulate the input signal to the 0.05m/s2 end, hold
the pendulum bar still for 10s, and then observe the motion with hands off.
7) Click on button to stop the program, and double click on the "Angle" and "Pos1"
oscilloscopes to observe the response of system output when the signal is switched into
0.05m/s2.
Experiment Records
Fill the values obtained from experiment into the table below:
At this moment, the simulation diagram for position output is shown as Fig. 10 (unit:
Abscissa axis is s, and the ordinate axis is m).
The cart is in accelerated movement to the other end, it will knock into the wall, and the
pendulum bar is unstable.
The inverted pendulum's motion will inevitably disturbed by various factors, and the angle
and position will fluctuate within certain range even under balanced state. Hence, a constant
tiny step signal may be added on the input end to compensate the disturbance upon the
inverted pendulum's stability, i.e. static compensation to have the inverted pendulum in static
stability state.
Note: The value of static compensation is dependent on the velocity, direction and guide rail's
friction of the holding of the inverted pendulum bar, which requires repeated trial as
deviations will occur each time.
2. Realization of static compensation
Linear Control Systems Laboratory Manual Page 152
The static compensation experiment requires two people's joint effort. And the procedures are
listed as below:
1) Switch on the power button on the electric cabinet of the inverted pendulum, then place the
inverted pendulum cart at the mid of the guide rail.
2) Open file “FreqR_Control.mdl” in MATLAB/Current Folder, then the real control page as
shown in Fig. 4.11 will pop up.
4) Click on icon to link the programs, when the buzzing generated from the motor after
servo would be heard. Then Click on button to operate the program.
5) Experimenter1 shall swiftly lift the pendulum bar to the straight up position, and release
it slowly after the program is under control. Hold the pendulum bar still at the same time.
6) Experimenter2 shall double click on the “Step Switch” to stimulate the input signal to the
0.05m/s2end.
7) Experimenter1 shall slowly release the pendulum bar. If the cart is unable to stand still,
then observe the motion direction and speed of the cart.
8) Experimenter2 shall adjust the input signal value at the software page as shown in Fig.
4.12. The method is to place the input signal reverse to the motion direction of the cart; if the
motion speed is too fast, and then reduce the input signal value appropriately.
9) Repeat procedures 8)-9) till the balance of the cart with hands off.
10) Record the static compensation value and fill it into the Experiment Records table.
3. Questions:
Beside lead control device, are there any other kinds of frequency response control devices?
What are their features and difference? How shall we select the right control device?
Objective: To select a suitable controller to get precise speed control, stable operation in
complete range of speed, good transient response (minimum percentage overshoot, less rise,
peak and settling time) and minimum (zero) steady state error.
Task to be performed:
1) Modelling of separately excited DC motor.
2) State space representation of model.
3) Selection of suitable controller.
4) Implementation and simulation results without controller.
5) Design PI and PID controller using root locus & frequency response techniques
6) Implementation and simulation results with controller (PI & PID).
Given Data:
A separately excited DC motor is given with the following specifications and parameters:
3 hp, 230 V, 11 A, 1500 rpm
Ra = 1 Ω for EA2, 2 Ω for EC2 and 3 Ω for EB1
La = 0.15 for EA2, 0.25 for EC2 and 0.35 for
EB1 Ja & Da = Consult with instructor
JL = Last two digits of your own reg. #
DL = Last digit of your own reg. #
Kb = 3.
Km = 1.
Taxonomy
CLO NO CLO STATEMENT PLO
LEVEL*
To follow the instructions and successfully perform
1 specified set of tasks on a control systems trainer 09 P3
hardware
* C – Cognitive ; A – Affective ; P – Psychomotor
Introduction
An RC circuit is a first order circuit that utilizes a capacitor as an energy storage element whereas a
resistor as an energy wastage element. RC circuits are building blocks of electronic devices and their
thorough understanding is important in comprehending advance engineering systems such as
transistors and transmission lines.
An RC circuit can be operated with both DC and AC sources. In this lab we study transient response
of RC circuits with a square wave as a DC source. During the DC operation of an RC circuit the
voltage across the capacitor or the resistor show energy storing (capacitor charging) and dissipating
(capacitor discharging via resistor) mechanisms of the circuit. The capacitor charging or discharging
curves then lead to determine time constant of the circuit where the time constant signifies time
required by the RC circuit to store or waste energy.
Objective:
Measurements:
The circuit used for the experiment is shown in Fig. 1. Both input (a square wave) and output (voltage
across capacitor) waveforms are monitored on an oscilloscope. The capacitor charging is observed
during "on" part of the square waveform whereas the capacitor discharging is observed during "off"
part of the square waveform (Fig. 2). We measure the time constant from the capacitor charging or
discharging curve. While keeping the capacitor value constant, we also measure time constants with
various resistor values (Table 1).
Issues:
Mention any issue(s) you encountered during the experiment and how they were resolved.
Conclusions:
Both of the above conclusions are also easily verifiable by solving differential equation for the RC
circuit.
Applications:
An RC circuit can be employed for a camera flash. The capacitor discharges through the flash light
during a picture taking event.
Resistance
270 Ω 330 Ω 470 Ω 1 kΩ 2.2 kΩ3.3 kΩ
(Nominal)
Resistance
(Measured)
Time constant
(Calculated)
Time constant
(Measured)
Capacitance
(Measured)
In all the Electrical Engineering (EE) labs, with an aim to prevent any unforeseen accidents
during conduct of lab experiments, following preventive measures and safe practices shall be
adopted:
• Remember that the voltage of the electricity and the available electrical current in EE
labs has enough power to cause death/injury by electrocution. It is around 50V/10 mA
that the “cannot let go” level is reached. “The key to survival is to decrease our
exposure to energized circuits.”
• If a person touches an energized bare wire or faulty equipment while grounded,
electricity will instantly pass through the body to the ground, causing a harmful,
potentially fatal, shock.
• Each circuit must be protected by a fuse or circuit breaker that will blow or “trip”
when its safe carrying capacity is surpassed. If a fuse blows or circuit breaker trips
repeatedly while in normal use (not overloaded), check for shorts and other faults in
the line or devices. Do not resume use until the trouble is fixed.
• It is hazardous to overload electrical circuits by using extension cords and multi-plug
outlets. Use extension cords only when necessary and make sure they are heavy
enough for the job. Avoid creating an “octopus” by inserting several plugs into a
multi-plug outlet connected to a single wall outlet. Extension cords should ONLY be
used on a temporary basis in situations where fixed wiring is not feasible.
• Dimmed lights, reduced output from heaters and poor monitor pictures are all
symptoms of an overloaded circuit. Keep the total load at any one time safely below
maximum capacity.
• If wires are exposed, they may cause a shock to a person who comes into contact with
them. Cords should not be hung on nails, run over or wrapped around objects, knotted
or twisted. This may break the wire or insulation. Short circuits are usually caused by
bare wires touching due to breakdown of insulation. Electrical tape or any other kind
of tape is not adequate for insulation!
• Electrical cords should be examined visually before use for external defects such as:
Fraying (worn out) and exposed wiring, loose parts, deformed or missing parts,
damage to outer jacket or insulation, evidence of internal damage such as pinched or
crushed outer jacket. If any defects are found the electric cords should be removed
from service immediately.
• Pull the plug not the cord. Pulling the cord could break a wire, causing a short circuit.
• Plug your heavy current consuming or any other large appliances into an outlet that is
not shared with other appliances. Do not tamper with fuses as this is a potential fire
hazard. Do not overload circuits as this may cause the wires to heat and ignite
insulation or other combustibles.
• Keep lab equipment properly cleaned and maintained.
• Ensure lamps are free from contact with flammable material. Always use lights bulbs
with the recommended wattage for your lamp and equipment.
• Be aware of the odor of burning plastic or wire.
Linear Control Systems Laboratory Manual Page 163
• ALWAYS follow the manufacturer recommendations when using or installing new
lab equipment. Wiring installations should always be made by a licensed electrician
or other qualified person. All electrical lab equipment should have the label of a
testing laboratory.
• Be aware of missing ground prong and outlet cover, pinched wires, damaged casings
on electrical outlets.
• Inform Lab engineer / Lab assistant of any failure of safety preventive measures and
safe practices as soon you notice it. Be alert and proceed with caution at all times in
the laboratory.
• Conduct yourself in a responsible manner at all times in the EE Labs.
• Follow all written and verbal instructions carefully. If you do not understand a
direction or part of a procedure, ASK YOUR LAB ENGINEER / LAB ASSISTANT
BEFORE PROCEEDING WITH THE ACTIVITY.
• Never work alone in the laboratory. No student may work in EE Labs without the
presence of the Lab engineer / Lab assistant.
• Perform only those experiments authorized by your teacher. Carefully follow all
instructions, both written and oral. Unauthorized experiments are not allowed.
• Be prepared for your work in the EE Labs. Read all procedures thoroughly before
entering the laboratory. Never fool around in the laboratory. Horseplay, practical
jokes, and pranks are dangerous and prohibited.
• Always work in a well-ventilated area.
• Observe good housekeeping practices. Work areas should be kept clean and tidy at all
times.
• Experiments must be personally monitored at all times. Do not wander around the
room, distract other students, startle other students or interfere with the laboratory
experiments of others.
• Dress properly during a laboratory activity. Long hair, dangling jewelry, and loose or
baggy clothing are a hazard in the laboratory. Long hair must be tied back, and dangling
jewelry and baggy clothing must be secured. Shoes must completely cover the foot.
• Know the locations and operating procedures of all safety equipment including fire
extinguisher. Know what to do if there is a fire during a lab period; “Turn off
equipment, if possible and exit EE lab immediately.”