ControlSystemsLabManual v0.6
ControlSystemsLabManual v0.6
IIT-Jammu
November 8, 2021
The Experiments for the Control Systems Laboratory Practicals were designed, fabri-
cated and tested by the following team:
Instructors Contact Department
Suresh Devasahayam [email protected] Electrical Engineering
Subudhi Badri [email protected] Electrical Engineering
Amit Kumar Singh [email protected] Electrical Engineering
Sahil Kalra [email protected] Mechanical Engineering
Vijayan Pallipattu [email protected] Chemical Engineering
Ashutosh Yadav [email protected] Chemical Engineering
3
Contents 4
• Please leave your lab table clean and tidy when you finish. Put away all instruments
and components in the correct places.
• Students should read the lab handout for the week before entering the lab.
• All labs have a preliminary report which must be completed before coming for the
lab practical. If you have not completed the preliminary report you will not be
allowed to do the lab.
• After the lab practical is completed the student must complete the final report
which must be submitted by the next week - before the next lab.
7
Introduction to the Control Systems Lab 8
0.2.2 Oscilloscope
The oscilloscope is an important test instrument that can be used to display, and also
store, time-dependent voltage signals. You should become familiar with the oscilloscope
controls. When using the oscilloscope for accurate measurement we will regard it as the
combination of an ideal voltage measuring instrument and an input impedance across it.
Here is a short list of the main functions of the oscilloscope:
3. The trigger or initiation of the horizontal sweep – there are many accessory controls
for the trigger
a) Auto Trigger Mode is what you will use a lot. In this mode, the horizontal
sweep re-starts automatically, giving a repeated sweep of time from left-to-
right
b) Single Sweep Mode or single-sweep-capture is very important to capture tran-
sient signals. Using this requires good understanding of the trigger functions
c) Roll Mode is not found in many oscilloscopes. This is convenient for looking
at fairly slow and long-duration phenomena
4. A very big advantage of digital oscilloscope are the data storing and transfer func-
tions; they allow storage of signals in digital form, and then transfer to a computer
for analysis and plotting.
In digital oscilloscopes the sampling rate can be inferred from the samples/screen and
sweep time.
Understand how to make amplitude and time measurements using cursors on the os-
cilloscope.
The signals stored in the oscilloscope can be copied to a USB-pendrive and transferred
to a computer.
Understand the concept of ground in all measurements, and the idea of isolated chan-
nels in the oscilloscopes in our laboratory.
The oscilloscopes in the lab are Tektronix, model number TBS1000 series. The wave-
forms on the screen can be saved and transferred to a USB drive for further analysis.
regulated so that regardless of the load, the voltage is fixed. Poor quality power supplies
will deviate substantially from this ideal.
The power supplies in the lab have both adjustable voltage and controllable current
limit.
Connect an adjustable resistance (or use several fixed resistors) and understand how
voltage adjustment works with different current settings. Can you set the power supply
to deliver a constant current regardless of the load? What are the conditions?
Figure 0.3.1: Representation of a system with one input and one output
An example of such a system is a public address system, where the input is the time-
varying sound given to a microphone, and the output is the time-varying amplified pres-
sure waves generated by the loudspeakers. This system consists of many sub-systems,
namely, the microphone, the amplifier and the loudspeaker.
It is mathematically convenient to analyze systems in the Laplace or Fourier transform
domain, as the output then becomes the product of the input and the system transfer
function, Y (s) = X(s) · H(s) as represented in Fig.0.3.2
Figure 0.3.2: The system Transfer Function is the ratio of the output to the input in the
Laplace Transform (or Fourier transform) domain
Bode Plots
The magnitude of the system transfer function plotted against the frequency on a log-log
plot, and the phase plotted against the frequency in a linear-log plot are the Bode plots
of the system. The logarithm of the magnitude is expressed in Bel, and the commonly
used unit is a tenth of a Bel, or deciBel, written dB.
The value of the output-input ratio
magnitude in dB is calculated as: Gain = 20log10 outputinput
2
0.3.1 Properties
General properties of systems
1. Cascade of systems - Transfer functions can be multiplied
3. Inverse Laplace transform of the transfer function is called the impulse response
2. Cascading and commutation of systems must take into account saturation effects
and offset effects in real systems
Frequency Response In this method, the response of the system to sinusoidal inputs
of different frequencies is determined. The input-output amplitude gain and phase shift
are measured. This gives us the Fourier transform values, and therefore, the Transfer
Function of the system under test.
2
The gain is the ratio of output power to input power, and since Power ∝ Amplitude2 , the additional
factor of 2 is introduced
Step Response It is not possible to apply sinusoidally varying input signals in many
cases. In such situations it is usually possible to apply a sudden abrupt change in input,
called a step-change of input, or simply step-input. Using the step response, we can
determine the characterstics of the system, by estimating or assuming the order of the
system. The order of the system corresponds to the order of the differential equations
required to describe it.
4. Using a 25 kHz sinusoidal signal from the function generator, observe it with oscil-
loscope time settings of 100ms/div, 10ms/div, 1ms/div. Determine the apparent
frequency of the signal in each case.
5. If the power supply voltage is set to 30 volts, and the current limit set to 10mA,
then what will be voltage across a resistor that varies from 0 Ohms to 220 Ohms?
What is the current?
1.1 Introduction
All the systems we will discuss in this course are linear systems. In simple terms, a linear
system has the same response to a very small signal and to a very large signal.
First order systems are described by a first-order differential equation.
Non-Linearity
If the input-output relationship is non-linear then it is desirable to linearize it. The
linearization can be done using analog devices or after digitization.
Linearization in a modern digital system can be done either by using transformation
equations or by using look-up tables.
Dynamic Calibration
Dynamic calibration determines the input-output relationship that may be a function of
time. If the input-output relationship does not depend on the rate of change of any of the
quantities, then it is a zero order system, and such a system is completely characterized
by its static calibration. A zero order system has a perfect or ideal time response as the
output function is a purely scaled (and possibly amplitude shifted, or offset) version of
the input.
13
Lab 1: First Order Systems 14
The values a and c are constants that represent the properties of the system.
dy(t)
b + y(t) = ax(t) (1.1.3)
dt
Here, a and b, are constants representing properties of the system.
Mechanical System
B dx(t) 1
+ x(t) = F (t)
K dt K
Step Response
For this system, if a step change in input is given at time zero,
(
0 t<0
x(t) = (1.1.4)
1 t≥0
then the output is given by the function:
(
0 t<0
ys (t) = −t/b
(1.1.5)
a 1−e t≥0
This describes many commonly used systems like mercury in glass thermometers.
From eq.1.1.5 we can get:
ys (t) = a t→∞
We can next determine the value of b from eq.1.1.5.
In the case of the first order system above, we can take the Laplace transform of
eq.1.1.3 and write the input-output transfer ratio as:
Y (s) a
= (1.2.1)
X(s) 1 + bs
The Laplace transform is a purely mathematical tool and does not have any physical
meaning. A special case of the Laplace transform is the Fourier transform which can
be obtained
√ by replacing the Laplace variable s by the complex frequency jω. Here
j = −1 and ω is the angular frequency in radians/second (ω = 2πf , where f is the
frequency in cycles/second or Hertz). The Fourier transform obtained by substituting
s = jω yields the frequency domain representation of the system. The Laplace transform
(and implicitly the Fourier transform) of the input-output relation is referred to as the
transfer function of the system.
Applying the Fourier transform to a time function or signal, describes the time function
in terms of a set of sinusoids (with a specific set of amplitude and phase values) - this is
the frequency spectrum of the signal.
Applying the Fourier transform to a transfer function describes the frequency re-
sponse of the system (with a frequency dependent gain, and a frequency dependent
phase shift). Taking the Fourier transform of eq.1.2.1 and separating the real and imag-
inary parts using complex algebra, we have:
Y (jω) a abω
= 2 2
−j
X(jω) (1 + b ω ) (1 + b2 ω 2 )
we can now get the magnitude and phase:
Y (jω) a Y (jω)
X(jω) = √1 + b2 ω 2 ,
∠ = tan−1 (−bω) (1.2.2)
X(jω)
Figure 1.2.1: Magnitude and Phase of the transfer function plotted against frequency as
semi-log plots
1.4 Experiments
1.4.1 Material Required
1. Oscilloscope
2. Function Generator
3. Power Supply
2. Using rectangular pulses of duration 500ms and amplitude 1V, obtain the step
response of the system.
2. For the circuit of Fig.1.2.2 write the equation relating the output voltage to the
input voltage in the form of eq.1.1.3
3. For a massless mechanical system comprising a dashpot and spring in parallel, what
is the relation between the force and displacement. Write the differential equation
and the transfer function. Add a mass to the system and write the equation for
force-displacement transfer function.
2. Determine the corner frequency (the frequency where the gain is 3dB less than that
at very low frequencies).
2.1 Introduction
Any sub-system which may be a sensor, actuator or even a mathematical operation can
be characterized in terms of their input-output relation. In this lab practical we will use
an electronic temperature sensor and determine its system characteristics.
LM35 is a single chip integrated circuit temperature sensor. The temperature sen-
sor is a silicon bandgap temperature sensor, in which the forward junction voltage of
a PN junction varies as a function of temperature and current through the junction.
The IC LM35 has additional electronic circuitry to convert the temperature sensitive
semiconductor junction voltage into an output proportional to the temperature in o C.
The semiconductor temperature sensor is encased in a plastic package for field use. This
casing conducts the temperature on the outside of the casing and the sensor and this
involves a time dependence of the temperature change of the semiconductor sensor.
Fig.2.1.1 shows a representation of the semiconductor sensor inside the plastic casing. In
LM35 used in this lab, 3 electrical leads are provided for connection. Two leads are for
the power supply to bias the electronics. A supply voltage of 5V may be given - be very
careful to observe the polarity of the supply voltage. The centre lead is the output volt-
age, and the output is given by the equation: Vo = 0.01 · T where T is the temperature
in o C.
19
Lab 2: Temperature Sensor 20
Thermal conduction
If the temperature at the surface of the casing is T1 , the temperature of the sensor, T2 ,
depends on the properties and dimensions of the intervening material and is given by the
equation:
dT2 (t) kA
= [T1 (t) − T2 (t)] (2.1.1)
dt mcd
2.1.2 LM35
Fig.2.1.2 shows the functional block schematic of the temperature sensing IC, LM35.
The supply voltage can be up to 30V. Note that both the supply and the output voltage
are with reference to the terminal labelled Gnd.
2.2 Aims:
1. To characterize the temperature sensor LM35
2. Power Supply
3. LM35
The response of the LM35 to the step change in temperature will be a first-order
response based on eq.2.1.1, and as shown in Fig.2.3.2. From this the time constant of the
system response can be determined. Using the time constant and assuming the system to
be a first order system based on the physics given by eq.2.1.1, we can write the transfer
function and draw the frequency response.
You can either make measurements on the oscilloscope itself or you can transfer the
waveform to a computer and perform the calculations.
Figure 2.3.2: Step change in temperature shown in the upper graph results in the response
shown in the lower graph
the sensor inside is made of silicon and has a mass of 5mg. Using eq.2.1.1 calculate
the theoretical time constant of the system.
The torque generated by the motor is proportional to the current through the coil, with
a proportionality constant, km , that depends on the physical parameters of the motor
and the magnet:
Vi (t) = L dI(t)
dt + RI(t) + eb
dI(t) (3.1.2)
= L dt + RI(t) + ke φ̇(t)
The moment of inertia, of the motor is Jm ,and the motor shaft frictional resistance
coefficient is bm . The gears provide a reduction ratio of n, so that the rotation of the
gear-output shaft, θ(t) and the braking torque at the output shaft, To (t) is:
1
θ(t) = n φ(t)
θ(t)To (t) = φ(t)Tm (t) (3.1.3)
To (t) = nTm (t)
23
Lab 3: DC motor control 24
The moment of inertia, of all the gears is Jg ,and the gears total frictional resistance
coefficient is bg ; any load or perturbation on the gear-output
shaft is, TL .
The gears and
1
external load referred to the motor shaft is, Tc = n Jg θ̈(t) + bm θ̇(t) + TL . The torque
developed by the motor can be written as:
Tm (t) = Jm φ̈(t) + bm φ̇(t) + n1 Jg θ̈(t) + bm θ̇(t) + TL
km I(t) = n Jm θ̈(t) + bm θ̇(t) + n1 Jg θ̈(t) + bm θ̇(t) + TL
(3.1.4)
nkm I(t) = n2 Jm + θ̈(t) + bm θ̇(t) + Jg θ̈(t) + bm θ̇(t) + TL
n2 Jm + Jg θ̈(t) + n2 bm + bg θ̇(t) + TL
=
= Jo θ̈(t) + bo θ̇(t) + TL
DC motors produce continuous rotation, and therefore, we shall consider the speed of
the motor, ρ(t) = θ̇(t) as the output quantity. Note that from eq.3.1.3 To (t) = nTm (t) =
nkm I(t).
The relation between the motor speed and motor current is a first order system.
3.2 Aims
1. To characterize a geared DC motor
Apply a sinusoidal current to the motor of amplitude 500mA, and frequency (a) 0.1Hz,
(b) 1Hz, (c) 10Hz. In each case note the angular displacement, θ(t) and calculate the
angular velocity.
Use these data to determine the motor characteristics.
2. Function Generator
3. Oscilloscope
5. Geared DC motor
6. Rotary potentiometer
The feedback control system works by taking the difference between the input, and
the actual output - this difference is called the error signal. In Fig.4.1.1 the input is
denoted by X(s), the output by Y (s), and the error signal by E(s). The output is
passed through a system H(s) which represents the sensor that measures the output to
provide the feedback.
Combination of system blocks is easier to analyze in the Laplace or Fourier domain
than in the time-domain. We can obtain the overall transfer function of the feedback
control system as follows:
29
Lab 4: Feedback Control 30
Feedback Control
A feedback control system as shown in Fig.4.1.1 has many advantages and also some
disadvantages:
1. Feedback control can make the speed of response of a system much faster.
4. Feedback control increases the order of a system and therefore can render the system
more unstable. The design of the feedback control should be such that instability
is avoided.
Controller Design
The goal of controller design is to make the overall system faster, more accurate in
producing the desired output and also to avoid instability in the system behaviour.
2. Controller: This takes the error signal and provides a driving signal to the sys-
tem that is being controlled. A common type of controller that will be used in
this lab is the Proportional-Integral-Derivative (PID) controller. The proportional
component provides suitable amplification of the error signal, the derivative com-
ponent provides specific amplification of change in the error signal, and the integral
component provides amplification of long-term or persistent error in the system.
Summing Block
The summing block, Fig.4.1.2, gives the difference between the input signal and the
feedback from the output.
Fig.4.1.3(i), shows a difference amplifier which gives the difference between two signals.
This performs the function of the “summing block” in a control system to estimate the
error between the desired function and the feedback function.
R4 (R1 + R2 ) R2
Vo (t) = V1 − V2 (4.1.2)
R1 (R3 + R4 ) R1
Using, R1 = R3 and R2 = R4
R2
Vo (t) = [V1 (t) − V2 (t)] (4.1.3)
R1
PID controller
Fig.4.1.5 shows the block schematic of a Proportional-Integral-Derivative controller. The
input-output relation of this controller is:
Z
dx(t)
y(t) = Kx(t) + KI x(t)dt + KD (4.1.4)
dt
Taking the Laplace Transform, we get:
Y (s) 1
G1 (s) = = KP + KI + KD s (4.1.5)
X(s) s
2. Increase the proportional gain as long as the system remains stable and free of
oscillations.
3. If there is any steady state error in the output, then increase the integral gain to
minize the long-term error.
4. Finally, increase the derivative gain so that the system becomes faster.
5. The values for the P-I-D coefficients can be checked theoretically to ensure that the
overall system transfer function is stable, and has fast response. However, steady
state error is usually due to slight variations in system parameters in practical
implementation - therefore, final tuning often requires experimental adjustment.
Note: If the system-under-control has a time delay, this method of manual tuning will
not
ko e−to s
G2 (s) = (4.1.7)
(1 + τo s)
In such a case, the time delay makes the system more prone to instability. Ziegler-
Nichols proposed a method for tuning a PID controller to control such a system. First,
the values of the time constant, τ , and the time delay, to are measured from the step-
response of the system-under-control, i.e., the plant. Since, the starting point of the
exponential function is difficult to estimate in the curve shown in Fig.4.1.6, the slope is
estimated at the point of maximum steepness.
Using these parameters, ko ,the steady state value, to ,the time delay, and To ,as shown
in Fig. 4.1.6, the Ziegler-Nichols method gives an empirical way of calculating the coeffi-
cients, kP , kI , kD as given in the table. One can choose to use , “P”, a Proportional only
controller, or, “PI”, a Proportional-Integral controller, or a full “PID” controller.
Controller Type kP kI kD
To
P to 0 0
To 3
PI 0.9 to to 0
To 2
PID 1.2 to to 0.5to
ko 1
Figure 4.1.6: General first order response with time delay. The slope m = To ≈ τ
4.2 Aims
1. To understand the components of feedback control
2. To use a PID controller to improve the time response of a first order system.
4. Power supply, oscilloscope, arbitrary function generator, and cables and probes
2. If H(s) = 0.5, and KP = 20, what is the control system’s overall transfer ?
5.1 Introduction
In the first two labs we saw that first order systems are described by a first order differ-
ential equation, and we saw examples of an electrical first order system and a thermal
second order system. Second order systems are described by a second order differential
equation. The discussion in this lab is only about underdamped second order systems
where the damping is between 0 and 1.
With the usual notation, if the system input is x(t) and the output is y(t) a general
second-order system is described by eq.5.1.1, with system parameters g, ωn , and ζ. These
constants represent commonly recognized physical properties called sensitivity, natural
frequency and damping.
2
y(t) + ω2ζn dy(t) + ω12 d dty(t)
2 = gx(t)
2 dt n
2 gωn2 X(s)
Y (s) ωn + 2ζωn s + s =
Y (s) gωn2
H(s) = X(s) = 2 +2ζω s+s2
(5.1.1)
ωn n
Y (s) g
X(s) =
2
1+ 2ζs
ω
+ s2
n ωn
Figure 5.1.1: Second order systems, (i) electrical and (ii) mechanical
Vi (t) = L dI(t)
dt + RI(t) + Vo (t), I(t) = C dVdt
o (t)
2 (5.1.2)
Vi (t) = LC d dt
Vo (t)
2 + RC dVdt
o (t)
+ Vo (t)
37
Lab 5: Second Order Systems 38
p = 1
ωn = √1
LC
q (5.1.4)
R C
ζ = 2 L
2
F (t) = m d dty(t)
2 + B dy(t)
dt + Ky(t)
(5.1.5)
1
p = qK
K
ωn = (5.1.7)
qm
B 1
ζ = 2 Km
With second order systems the Laplace transforms are more elaborate and Table 5.1 can
be used to obtain the inverse Laplace transform for the time functions. Time functions are
what we can see in the physical world or real world, and the Laplace transform domain is
a mathematically useful way of analyzing the functions. Therefore, the Laplace transform
is useful for analysis and the time functions illustrate real world behaviour. The Fourier
transform which may be regarded as a special case of the Laplace transform also gives
us a way of viewing time functions and time characteristics, by separating them into
frequency components.
1
X(s) =
s
1
2
ωn
Y (s) = p s 2 +2ζω s+s2
ωn n
(5.1.8)
Using partial fraction for separation of the terms to have only first order and second
order terms:
1
ωn2
Y (s) = p s 2 +2ζω s+s2
ωn n
h i
A Bs+C
= p s + (s+ζωn )2 +ωn2 (1−ζ 2 )
" #
A Bs+C
(5.1.9)
= p s + √
2
2
(s+ζωn ) + ωn (1−ζ 2 )
h i
A Bs+C
= p s + (s+ζωn )2 +ωd2
p
We find: A = 1, B = −1, C = −2ςωn . The term ωd = ωn 1 − ζ 2 is called the damped
frequency. We also write the denominator as the sum of two squares so that we can use
the Laplace transform table.
Using
h i
1 s+2ζωn
Y (s) = p s − (s+ζω 2 2
n ) +ω
d
= p 1
− s+ζωn
− √ζ ωd (5.1.10)
s (s+ζωn )2 +ωd2 1−ζ 2 (s+ζωn )2 +ωd2
=
Taking the inverse Laplace transform using Table 5.1
−ζω t ζ
y(t) = p 1−e n cos(ωd t) + √ 2 sin(ωd t) u(t)
1−ζ
h i (5.1.11)
e−ζωn t
p
= p 1− √ 2
( 1 − ζ 2 )cos(ω t) + (ζ)sin(ω t)
d d u(t)
1−ζ
Note that u(t) represents the unit step function which is equal to one for t ≥ 0 and is
zero for t < 0
The sine and cosine terms can be put in the form: sinAcosB + cosAsinB = sin(A + B),
and we get a convenient closed form:
√
e−ζωn t −1 1−ζ 2
y(t) = p 1− √ sin ωd t + tan ζ u(t)
1−ζ 2
√ (5.1.12)
e−ζωn t −1 1−ζ 2
=p 1− √ [sin (ωd t + φ)] u(t) where φ = tan ζ
21−ζ
5.1.2 Determining the Second Order system parameters from the time
response
In the step response of Fig.5.1.3, p = ys (t∞ ) = ys (t → ∞).
pMaxima of the step response occur when the sine term is -1, i.e., when: ωd t =
1 − ζ 2 ωn t = (4q−1)π/2 where q = 0, 1, 2, 3, .... The period of the damped step response
can be measured as t3 − t1 . Therefore,
2π
ωd = (5.1.13)
(t3 − t1 )
To calculate the damping coefficient we decay of the oscillation. If ∆y(t1 ) = y(t1 ) −
y(t∞ ) and ∆y(t3 ) = y(t3 ) − y(t∞ ), then:
−ζωn t1
e√
∆y(t1 ) =
1−ζ 2
∆y(t3 ) −ζω (t3 −t1 )
= e n
∆y(t1 ) (5.1.14)
∆y(t1 )
ln ∆y(t3 ) = ζωn ω2πd
= 2π √ ζ
1−ζ 2
∆y(t1 )
Let α = ln ∆y(t3 ) , then rearranging eq.5.1.14 we calculate
α
ζ=√ (5.1.15)
4π 2 + α2
Y (jω) 1
=h i (5.1.16)
X(jω) (jω)2
1 + jω ω2ζn + ωn2
Y (s) bo + b1 s + b2 s2 + ...
=
X(s) ao + a1 s + a2 s2 + ...
For analysis, the polynomials can be factorized in the following form:
2ζs s2
1+ + 2 =0 (5.1.19)
ωn ωn
The roots of this quadratic equation are:
p
s = −ζωn ± ωp 2
n ζ −1
= −ζωn ± j 1 − ζ 2 ωn (5.1.20)
= −ζωn ± jωd
In eq.5.1.20 we have used the fact that ζ < 1. When s takes the value of the roots, the
transfer function becomes infinite.
We see that the Laplace variable is necessarily a complex quantity of the form, s =
σ + jω . The transfer function can be plotted in the complex-s plane with the poles and
zeros represented by circles and crosses. For the second order system discussed here, the
transfer function, eq.5.1.2 can be written as:
Y (s) gωn 2
From fig.5.1.5 we see that as the damping coefficient,ζ , becomes smaller, the poles
move closer to the imaginary axis. When ζ = 0, the poles lie on the imaginary axis. We
know that replacing s = jω in the Laplace transform of a system (or a signal) gives us
the Fourier transform. Therefore, the transfer function taken along the imaginary axis
of the complex plane is the Fourier transform. When the poles lie on the imaginary axis,
they represent impulses in the Fourier transform. From our study of Fourier transforms,
we know (or should know) that the inverse transform of a pair of impulses gives us a
sinusoidal time-function - the frequency of the sinusoid is ωn or the natural frequency. In
the case of a system transfer function, this represents sustained oscillation at the natural
frequency - regardless of the input. The system oscillates at the natural frequency or
resonant frequency.
When the poles are on the left of the imaginary axis, the oscillation is damped until they
fall on the real axis, and the damped frequency becomes zero. When the poles lie on the
right of the imaginary axis, the oscillation grows exponentially - this represents instability.
This instability is what is defined by the Bounded-Input Bounded-Output condition for
stability - i.e., a system is stable when a Bounded-Input produces an Bounded-Output,
and when a Bounded-Input produces an unBounded-Output, the system is said to be
unstable.
5.2 Aims
1. To determine the parameters of a second order system, namely the natural fre-
quency and the damping coefficient
2. To obtain the frequency response of a second order system
Step response
Apply a square wave, say, repetition period of 1s, and amplitude of 1V, to the input of
the second order system. Capture the response on the oscilloscope. Measure the time
and amplitude of the maxima as shown in fig.5.1.3. Calculate the natural frequency, ωn
and the damping coefficient, ζ .
Frequency Response
Using sine waves, of frequency 1Hz to 1kHz, measure the gain and phase shift of the
second order system.
6.1 Introduction
6.1.1 Plant Model - Geared DC motor
The permanent magnet electric motor comprises a current carrying conductor wound in
an armature placed in a magnetic field. The force on the conductor is proportional to, (a)
magnetic flux density, (b) the current, and (c) the length of the conductor. The magnetic
flux density is constants, and the length of the conductor is also constant. The torque
on the motor shaft is proportional to the applied current with proportionality constant
km , i.e., eq.3.1.1 which is reproduced here for convenience:
Tm (t) = km I(t)
Considering the net moment of inertia of the rotor and gears, Jo , the instantaneous
angular displacement of the output shaft, θ(t), net coefficient of frictional damping is bo ,
and negligible load torque on the motor shaft, we have eq.3.1.5 which is also reproduced
here for convenience:
The transfer function of the motor angular displacement with motor current as the
input is:
θ(s) nkm
Gm (s) = I(s) = Jo s2 +bo s
nkm /bo (6.1.1)
= s[(Jo /bo )s+1]
Compare eq.3.1.7 with eq.6.1.1. In Lab:3 we only considered the angular velocity of
the motor for system identification of the motor since when the motor is freely running,
the speed is related to the armature current. When the motor was freely running, in-
stantaneous angular displacement was not related to any input quantity, except as an
integral over time of the speed that was controlled by the armature current.
47
Lab 6: Position Control System 48
V
Vθ (t) = θ(t) 360po = kθ θ(t)
Vθ (s) = kθ θ(s) (6.1.2)
H(s) = Vθ(s)
θ (s)
= kθ
The overall closed loop system transfer function can be written using eq.4.1.1:
θ(s) Gc (s)GA (s)Gm (s)
Vi (s) = 1+H(s)Gc (s)GA (s)Gm (s)
kp km
(Jo s+bo )s
= k kp km
1+ (J θ s+b (6.1.3)
o o )s
kp km
= Jo s2 +bo s+kθ kp km
kp km /Jo
= s2 +(bo /Jo )s+(kθ kp km /Jo )
This is a second order system as seen in Lab.5, and it can have a stable step response
if the poles are on the left side of the complex s-plane. Comparing eq.6.1.3 to the general
form for a second order system given in eq.5.1.1, we can write:
s s
Jo bo 1
ωn = , ζ= (6.1.4)
kθ kp km 2 Jo kθ kp km
The poles are at:
s = −ζωn ± jωd
As noted in fig.5.1.5, when ζ is large and close to unity, the system is stable. But when
ζ is large the system is also sluggish. The damping coefficient ζ is inversely related to
the value of kp .
6.2 Aims
1. To show position control using a DC motor and angular position sensor in a feed-
back control system
3. PID controller board, Summing amplifier board, power amplifier board (transcon-
ductance amplifier)
7.1 Introduction
In this lab we will use a feedback control system to control the temperature of a heated
tank of water.
dT (t) 1 q
dt = mc P (t) − m T (t)
(7.1.1)
51
Lab 7: Temperature controller 52
The power at zero current is zero, therefore our linear function must go through the
P |. I 2
Imax R
origin. The slope of the linear function is taken as Imax
max
= Imax = Imax R. Therefore,
the linear relation between power and current is:
To (s) (q/c)(Imax R)
GP (s) = = (7.1.5)
I(s) 1 + (m/q)s
Putting this equation in standard form:
To (s) K
GP (s) = = (7.1.6)
I(s) 1 + τs
with K = (qImax R)/c and τ = m/q
7.2 Aims
3. PID controller
4. Summing amplifier
6. Heating element
8.1 Introduction
55
Lab 8: Inverted Pendulum 56
For notational simplicity, x and θ mean x(t) and θ(t). From this we can solve for the
relation between applied force and pendulum angle using the Euler-Lagrange equation
for applied horizontal force and applied angular torque (which is zero):
d ∂L ∂L
− =F (8.1.1)
dt ∂ ẋ ∂x
d ∂L ∂L
− =0 (8.1.2)
dt ∂ θ̇ ∂θ
Solving eq.8.1.1:
h i
(M + m)ẍ + KB ẋ + ml θ̈cosθ − θ̇2 sinθ = F (t) (8.1.3)
Solving eq.8.1.2:
force applied on the belt by the motor = force due to movement of belt and carriage+force due to ho
The force due to movement of belt and carriage has a component due to acceleration,
and a component due to friction and damping. The pendulum pivot has negligible friction
and therefore the force due to the pendulum has only an acceleration component; since
the pendulum swings, its centre changes with change in the angle, and the displacement
in the x direction is [x(t) + lsin (θ(t))].
h 2
i h 2 i
F (t) = M d dtx(t)
2 + K dx(t)
B dt + m d (x+lsinθ)
dt2
h i (8.1.5)
F (t) = (M + m)ẍ + KB ẋ + ml θ̈cosθ − θ̇2 sinθ
which is the same as eq.8.1.3
Next, considering the forces normal to the pendulum, we equate the forces due to
gravity and the carriage: with the forces due to motion:
J + ml2 θ̈ + mlẍ = 0
(8.1.10)
Taking the Laplace transform of eq.8.1.9 and eq.8.1.10:
J + ml2
X(s) = θ(s) (8.1.12)
ml
Substituting eq.8.1.12 into eq.8.1.11 and re-arranging:
θ(s) 1
= MJ
+ (M + 2m)l + Jl s + J
F (s) s ml ml +l
8.2 Aims
4. Summing amplifier
59
Lab 9: Magnetic Levitation Control 60
Linearization
Around an operating point, Io , we approximate eq.9.1.3 by a linear function as shown in
Fig.9.1.2.
dy
Fa (t) = −b (9.1.5)
dt
For simple non-turbulent motion, Stokes formula can be used to calculate the damping
coefficient, b = 6πηr where η = 18 × 10−6 Pa· s is the density and r is the radius of the
ball.
The external forces are balanced by the force due to acceleration of the mass by
displacement, Fd (t). The force due to gravity and the force due to acceleration are not
dependent on the distance of the ball from the electromagnet, y, and are only functions
of time, t.
Therefore, the force balance equation is:
Y (s) −k1
= (9.1.7)
Ic (s) s(ms + b)
Actuator model
The electromagnetic coil, is actuated by a transconductance amplifier whose input is
the controller output, Vc (t) and output is the proportional current, Ic (t) . By using
the transconductance amplifier, the voltage across the coil is automatically adjusted to
ensure that the coil current is proportional to the voltage Vc (t).
9.2 Aim
To characterize the displacement sensor.
To characterize the electromagnet.
To connect the blocks to form the closed loop feedback system for levitation.
To observe the behaviour of the system to perturbation. To observe the variation in
displacement and the signals in the different blocks.