LabManualControlSystems 0-2
LabManualControlSystems 0-2
IIT-Jammu
3
Contents 4
Appendix 47
10.0.1 Introduction to Lab Instruments . . . . . . . . . . . . . . . . . . . 47
10.0.2 Oscilloscope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
10.0.3 Function Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
10.0.4 Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
• 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)
y(t) + b = ax(t) (1.1.3)
dt
Here, a and b, are constants representing properties of the system.
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) = (1.1.5)
a 1−e −t/b 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.
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
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ω)
= tan−1 (−bω) (1.2.2)
X(jω) 2
1+b ω 2 X(jω)
Figure 1.2.1: Magnitude and Phase of the transfer function plotted against frequency on
log-log scales
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
= [T2 (t) − T1 (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.