Control System Lab Manual 1
Control System Lab Manual 1
for
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECTIVE
To study the performance characteristics of an a.c. servo motor angular position
control system, also referred to as a carrier control system.
2. EQUIPMENT DESCRIPTION
A major portion of any first course on automatic control system invariably revolves
around the study of position control systems using either d.c or a.c. motors. Experimental
work in this area has usually been confined to analog simulated systems, e.g. through our
'Linear System Simulator' or similar other units. Although the biggest advantage of this
approach is the unlimited flexibility and near perfect operation of the simulated systems
leading to a close correlation between theoretical and experimental results, the student is
denied the feel of a physical electromechanical system. The present unit and also our ‘d.c.
position control’ have been designed with the objective of working with a physical system.
Despite the constraints like friction, dead zone, nonlinearities due to amplifier saturation and
motor current limiting, and low speed of response associated with any mechanical system, the
student has been provided with enough opportunity for experimentation on a working system.
The schematic diagram in Fig. 1 shows a typical carrier control system using a pair of
synchros as angular error detector and a 2-phase a.c. servomotor as the driver, driving the
load through a gear train.
The present system, as shown in Fig. 2, uses a pair of servo potentiometers as error
detector. Synchros are avoided in the unit due to their high cost although the behaviour of the
overall system is independent of the type of error detector used. Synchros may however be
studied in our experiments ‘Synchro Error Detector’ separately.
ACP-01 Page 2
DISPLAY
0 11
CAPTURE
VO Y E X
Load
AC POSITION CONTROL
MODEL : ACP-01
REFERENCE
ERROR DETECTOR
Tx CT CONTROL
ac
REFERENCE Error
amplifier
Two-phase
servo motor
θm
θR Controlled
Reference output
input
Command
V
Continuous θR R
Error detector
+ Control
V
S + A.C. amplifier
Forward gain KA
Step - (Driver)
Reference
θO
Y
CRO Wave form
Response
X capture/display
All the above components, viz. the motor, potentiometer, load etc. are fitted inside
the 'motor unit'. Transparent panels provide a good view of the interior. The motor unit is
connected to the rest of the system through a 9-pin D-type connector and cables.
3. BACKGROUND SUMMARY
Second order systems are studies in great detail in any course on linear control system.
The reason for this is that a large number of higher order practical control systems may be
approximated as a second order system while neglecting less dominant modes, nonlinearities
like dead zone, saturation, hysteresis etc., assuming these to have little effect on the
performance. Also second order systems lend themselves to simple and accurate
mathematical analysis. In the following description we shall follow the above strategy. At the
end however, the imperfections due to nonlinearities shall be pointed out.
ACP-01 Page 3
REFERENCE
PHASE e1 (t)
θm (s )
CONTROL PHASE θm G(s) = e1(t) fixed
e2 (t) E 2 (s )
+ C(s)
R(s) K = Ke KA G(s)
ωn 2
G (s) =
s 2 + 2ζω n s + ω n 2
where ζ is called the damping ratio and ωn the undamped natural frequency.
Depending upon the value of ζ, the poles of the system may be real, repeated or complex
conjugate which is reflected in the nature of its step response. Results obtained for various
cases are :
(a) Under damped case (0 < ζ < 1)
2
e − ζω n t −1 (1 − ζ )
c( t ) = 1 − sin ωd t + tan (1)
(1 − ζ 2 ) ζ
ACP-01 Page 4
C(t)
ess
1
td
C(tp) C(∞ )
0.5
t
tr
tp
Fig. 5 (a) Unit step response of a normalized second order transfer function (Under Damped)
VO(t)
ess
DEAD
VS
ZONE
V PEAK
V0 ( ∞)
t
tr
tp
ωn e − s1 t e − s 2 t
c( t ) = 1 − − (3)
2 s1 s
2 (1 − ζ ) 2
A simpler way to calculate steady state error without actually computing the time
response is available in the complex frequency domain. Application of the final value
theorem of Laplace Transform to unity feedback system gives,
sR (s)
e ss = lim e( t ) = lim sE(s) = lim = 0,
t →∞ s→ 0 s→ 0 1 + G ( s)
1 KK m
for R(s) = and G (s) =
s s(sτ m + 1)
ACP-01 Page 5
Steady state error may be obtained for various inputs (step, ramp, parabolic) and
systems of various type numbers (number of poles of G(s) at origin). A summary of the
results of the above calculations may be seen in [1]. To facilitate the calculations, error
coefficients are defined as
Position error coefficient, Kp = lim G (s)
s→0
Velocity error coefficient, Kv = lim sG (s)
s→0
• The position control system has a second order transfer function in the standard form.
(normalized form)
• The system should not have any steady state error for step input.
• The transient response of the system is affected by the value of KA. A higher value of
KA should result in larger overshoot.
An accurate analysis taking into account the above mentioned imperfections would
certainly prove to be exceedingly complex. The experiments which follow therefore
consider the system as it is and study its performance. A qualitative comparison of the
result of experiment with the theoretical predictions for a second order linear system
should be of great interest.
ACP-01 Page 6
4. EXPERIMENTAL WORK
The experiments suggested below enable the reader to study the performance of the
closed loop system. Idea of dead zone and its effect on steady state error is also introduced. A
special provision has been made in the set-up to store and display a response of the system - a
need which occurs quite frequently. The operation of this waveform capture/display provision
is described first.
(e) The time scale of the display may be calibrated by feeding the X-output (sawtooth) of the
unit to the Y-input of the CRO and determining its time period and amplitude.
4.2 Closed loop study (Also see the Note at end, on page 9)
(a) Position control through CONTINUOUS command
• Ensure that the step command switch is OFF
• Starting from one end, move the COMMAND potentiometer in small steps and
observe the rotation of the response potentiometer.
• Record and plot θR, VR, θ0 and V0 for a few values of KA.
• Calculate ∆θR and ∆θ0 (taking initial readings as nominal values) and plot. Also
calculate the errors (∆θR-∆θ0), (∆VR-∆V0) at each step. Justify the presence of errors
and their variation with KA.
ACP-01 Page 7
5. TYPICAL RESULTS
Typical results obtained on a similar unit are next given for guidance.
(a) Manual operation of the position control
KA = 5
ACP-01 Page 8
The values of time in the above table relates to the display time as calculated in
(b) above. The physical system response is much slower. The two may be roughly
correlated using a stop watch.
NOTE: Due to various non-linearities in the system, viz., saturation of the amplifier, friction
and backlash in gear, and most important the non-linear torque-speed characteristics of the
motor, the usual behaviour expected in a linear position system may not be observed in all
cases above. Specifically, with increasing values of gain KA, the value of MP may not
increase or the values of δ and ess may not decrease in all the readings tabulated above.
Referring to Fig. 5,
ess = Vs - V0 (∞)
VPEAK − V0 (∞)
MP = × 100%
V0 (∞)
π (ln M p )2
ωn = = 222 rad / sec ζ= = 0.479
tp 1− ζ2 π 2 + (1nM p )2
1 ωn 2 1 4.9 ×10 4
open loop (excluding KA) : = ×
(
K A s(s + 2ζω n s) 4 s s + 2.12 ×10 2 s )
• The open loop transfer function (excluding KA) comes out to be different for different
readings - the system is not actually a second order function.
• The peaks of the response curves are flattened - the motor has dead zone.
• The peak overshoot does not increase significantly with KA - motor current saturates.
NOTE: Under certain operating conditions, the motor may start continuous uncontrolled rotation,
this is not system oscillation. The basic cause is the small gap (approx. 5°) in the response
potentiometer winding which is easily overshot by the motor, due to its inertia. In such a situation
normal operation may be restored by decreasing the gain or by changing the position of the
command potentiometer.
6. REFERENCES
[1] Control System Engineering - I. J. Nagrath and M. Gopal, Wiley Eastern Ltd.
[2] Modern Control Engineering - K. Ogata, Prentice Hall of India Pvt. Ltd.
[3] Automatic Control Systems - B.C. Kuo, Prentice Hall of India Pvt. Ltd.
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECTIVE
To study the characteristics of a small a.c. servomotor and determine its transfer
function.
2. SYSTEM DESCRIPTION
The unit in a self contained system for conducting the experiment except a measuring
CRO which should be available in the laboratory. The different components of the unit are
explained below.
(a) AC Servomotor – a 15W servomotor with identical reference and control phases
operating at 12V/ 50Hz. Necessary phase shifting capacitor is pre-wired to the
reference phase.
(b) Electrical load – in the form of a coupled dc generator and the required resistive
load is provided.
(c) Time Constant – a special circuit to display the time-constant directly in milli-
second.
(d) Metering – of all ac and dc voltage/currents is through built-in digital panel
meters.
(e) Power supply – for conducting all experiments are available in the unit, which
operates from a 220V/ 50Hz mains.
3. BACKGROUND SUMMARY
A.C. Servo Motors are basically two-phase, reversible, induction motors modified for
servo operation. A schematic diagram of the motor is shown in Fig.1. The two windings,
reference and control, may or may not have identical ratings. In the present unit both are rated
at 12 volts r.m.s. at 50Hz. A phase shifting capacitor of appropriate value must be connected
in series with one of the windings to produce a 90 degree phase shift.
These servo motors are used in applications requiring rapid and accurate response
characteristics. A typical torque-speed characteristics of an induction motor is shown in fig.2
for two values of rotor resistance. A servomotor however must have negative slope in its
torque-speed characteristics in order to ensure stable operation. To meet the above
requirements, these ac servo motors have small diameter, light weight, low inertia and high
resistance rotors. The motor’s small diameter provides low inertia for fast starts, stops, and
reversals. High resistance provides nearly linear torque-speed characteristics. A common
structure is a drag-cup rotor. The a.c. servomotors have distinct advantages over d.c.
servomotors. The commutator and brush assembly of a d.c. servomotor has limited
maintenance free life. These are absent in the a.c.servomotor.
An induction motor designed for servo use is wound with two phases physically at
right angles or in space quadrature . A fixed or reference winding is excited by a fixed voltage
source, while the control winding is exited by an adjustable or variable control voltage,
usually from a servo-amplifier. The servo motor windings are often designed with the same
voltage/turns ratio, so that power inputs at maximum fixed phases excitation, and at
maximum control phase signal, are in balance. In the present unit the input to the control
winding is adjustable (3-steps) and the motor can be switched ‘ON’ through a switch.
ACS - 01 Page 2
V
V
INPUT INPUT
AC VOLTS TIME CONSTANT DC VOLTS
MOTOR UNIT
s
Eo
ce
m
Ec ON CONTROL
X1 X10
2 MOTOR
1 3
ON
T TECHNO INSTRUMENTS, Roorkee
MOTOR UNIT
2
1 3
IL
LOAD STEP
12V
50Hz
PHASE SHIFTING
CAPACITOR
MOTOR
REFERENCE
ON
OFF
4-12V ROTOR
50Hz
CONTROL
TORQUE
(SERVOMOTOR)
Ns speed
TL(s)
- ω (s ) θ (s )
Ec(s)
1 1
K1
+ Js + B s
-
K2
The block diagram of an a.c. servomotor system is presented in Fig.3 This is a highly
simplified and linearized version of the actual behaviour of the motor and is valid at low
speed of operation only. Detailed description of the working and derivation of the block
diagram may be seen in any of the text books listed at the end of this document. Here Ec is
the voltage applied at the control phase which results in a proportional torque which however
is reduced by a factor related to the motor torque efficiency to generate the actual motor
torque as
Tm (s) = K1 Ec(s) - K2 ω(s), where ω is the shaft speed .
This torque, further reduced by the mechanical load torque, TL, drives the inertia, J
and the friction, B of the motor to result in the speed, ω and subsequently the angular
position, θ of the motor shaft.
From the block diagram of Fig.3 the transfer function of the motor may be written as
θ(s) Km
= for TL(s) ≡ 0 (1)
E c (s) s(τms + 1)
K1 J
where, Km = , and τm = ,
B + K2 B + K2
are the motor gain constant and the motor time constant respectively. As students of control
system, our interest is to evaluate the transfer function and the parameters of the ac
servomotor.
Again for Ec(s) ≡ 0 ,
1
θ(s) B + K2 Kn 1
=− =− , where K n =
TL (s) s(τms + 1) τ ms + 1 B + K2
ACS - 01 Page 3
Reference Voltage
(= 63.2% of Eo ) set manually
LOAD STEP
ER
1 DVM Input
Eo PANEL
2
DIGITAL
3 VOLTMETER
IL
COUPLED
GENERATOR
1Ω 15Ω
ω
1Ω
All the above results are strictly valid if the system is perfectly linear. This is true to a
great extent, especially at low speeds, and will form the basis of conducting the present
experiment. Another option, though cumbersome, is to determine experimentally the torque-
speed and torque-control phase voltage characteristics and then to linearize these graphically
to evaluate the motor parameters, K1 and K2, and then to calculate Km, τm, J and B.
4. EXPERIMENTAL WORK
The a.c. motor study is divided into groups (a) steady state – to determine Km and Kn,
and (b) transient – to determine τm. From these the transfer function and other constants are
calculated.
ACS - 01 Page 4
TABLE – 2
K + K m 2 + K m3
K m = m1 = 33.53 rad volt − sec
3
An average value for Km may be obtained from the three input voltage steps provided
although the three values of Km obtained are very different from each other due to the motor
non-linearity.
Similarly, operating at a constant Ec and two different load steps, one gets
ωss1 = K m E c − K n TL1
ωss 2 = K m E c − K n TL 2
ACS - 01 Page 5
6. REFERENCE
[1] M. Gopal, “Control Systems – Principle and Design”, Second Edition, Tata McGraw Hill
Publishing Co. Ltd., pp.168-174.
ACS - 01 Page 6
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECTIVE
To design, implement and study the effects of different cascade compensation
networks for a given system.
2. EQUIPMENT DESCRIPTION
The unit has been designed with the objective of exposing the students to the problem
of control system compensation. A simulated system of ‘unknown dynamics’ is available
which may be studied both in the time and frequency domains. In addition, the forward gain
is variable, thus the system dynamics is adjustable in a wide range as well. The closed-loop
system presents an ‘unsatisfactory’ performance. A set of performance specifications is to be
prescribed by the teacher, and the student would design a suitable compensator. Necessary
theoretical background and design steps are explained in section 3, covering the s-plane and ω
-plane designs of both lag and lead networks. Compensation network so designed may be
easily implemented in the unit, and its effect on the performance may be evaluated. All
necessary facilities are built-in in the system. Only a measuring CRO and a few passive
components are needed for conducting the experiment. Referring to the block diagram of Fig.
1, the various sections of the unit are described below in some detail.
(a) Plant: It is an active network simulation of a second order dynamic system. Its transfer
function is given by
K1
(sT + 1) 2
The values of K1 and T are not explicitly given but are determined through experimentation.
CD - 02 Page 2
LEVEL
5 7 AMPLIFIER
3 9
FREQ 5 7
1 11
3 9
NETWORK ON
1 11
T TECHNO INSTRUMENTS, Roorkee
R COMPENSATION C
GAIN PLANT
+
-
SIGNAL
COMPENSATION
SOURCE
(b) Error detector-cum-gain: This block has two inputs (e1,e2) and an output (eo) related by
the expression, eo = K (e1+e2), where K is a variable gain. The value of K may be varied from
1 to 11 and may be read on the dial.
3. BACKGROUND SUMMARY
Practical control systems use a range of mechanical, electrical, hydraulic, thermal and
other type of components for their operation. Examples include motors, gears, amplifiers,
control valves, heat exchangers etc. The design of these components is usually based upon
requirements other than those which might be prescribed by the control engineer - for
example a specified transfer function. As a result, the control engineer is constrained to make
the best possible choice out of the components offered by the manufacturer. The system so
constructed may not be entirely satisfactory. Compensation network is designed at this stage
to modify the system characteristics and to force it to meet the specifications. Although
compensation elements are used at the output (load compensation) and in the feedback path
(feedback compensation), the most common form of compensation is the cascade
compensation where the compensation acts on the error signal. The principal advantage of
this configuration is that the signal level of the error is very low and the error is more
commonly electrical in nature. Thus the compensation network needs to be a low power
electrical network which is very easy to implement. Basic theory of compensation is
discussed in the following pages. However, a thorough understanding of control system
analysis is a prerequisite for this experiment.
CD - 02 Page 3
TOLERANCE
Mp BAND
OUTPUT STEADY
C (t) STATE
1.0
ERROR
0.5
td tr tp ts
TIME t
ωg
0db
GAIN
ω
MARGIN
G PHASE
MARGIN
-180º
ωp ω
C (S)
R (S) 1
CUTOFF
0.707 BW RATE
Mr
ωr ω
(a) Time-domain performance criterion: These are indicative of the performance of the
close-loop system in terms of its time response, most commonly the unit step response. Since
a control system is almost always required to function in real time, time-domain performance
criterion is a direct way of evaluating the system. Due to one-to-one correlation between s-
plane pole location and the resulting step response, the time-domain performance criterion
finds application in the root locus method of analysis and design. Referring to the unit step
response shown in Fig. 2, the various time domain performance criterion are :
(i) Delay time td, defined as the time needed for the response to reach 50% of the final value
(ii) Rise time tr, the time needed for the response to reach 100% of the final value for the first
time
(iii) Peak time tp, the time taken for the response to reach the first peak of the overshoot
(iv) Maximum Overshoot MP, given by
(b) Frequency-domain performance criterion: These are specifications indicated on the open
loop frequency response curves of the system i.e. Bode plot, Nyquist diagram or Gain
magnitude - phase shift plot or the closed loop frequency response of the system. Unlike the
time-domain specification, a number of the frequency-domain criterion are defined on the
closed loop characteristics. Frequency-domain approach to design is easily applicable to
systems with unknown dynamics by experimentally determining the frequency response.
However, the correlation between time and frequency response is not direct.
Referring to Fig. 3(a) (open loop Bode plot) and Fig. 3(b) (closed-loop frequency
response), the various performance criterion in the frequency-domain are given below:
(i) Gain Margin, is the amount by which the open loop gain may be increased at the phase
cross over frequency, ωP, to bring it to 0 dB.
(ii) Phase Margin, is the amount by which the phase of the open loop transfer function at the
gain cross over frequency, ωg, may be increased in the negative direction to bring it to -
180°.
(iii) Mr, Peak value of closed loop frequency response.
CD - 02 Page 4
R1
INTPUT C OUTPUT
ei eo
R2
jω
X σ
1 1
− −
T βT
1 1
Gc
βT T
0db
20 Log β ω
Gc
0db
ω
Lag network: The lag network is shown in Fig. 4(a). Its transfer function may be expressed as
R 2 Cs + 1
G c (s) =
(R 1 + R 2 )Cs + 1
Substituting R2C = T, and (R1+R2)/R2 = β (>1), Gc(s) may be written in two alternative forms :
Ts + 1
G c (s) = …Form I
βTs + 1
1 (s + 1/T)
= . …Form II
β (s + 1/βT)
Form I is directly suitable for frequency-domain design while Form II with the 1/β factor
cancelled by an amplifier, is suitable for root locus design. Pole zero configuration and the
Bode diagram of the lag network are shown in Fig. 4(b) and (c) respectively. It may be noted
that the network exhibits a low pass character and introduces a negative phase angle.
Lead network: The lead network is shown in Fig. 5(a). Its transfer function may be expressed as
R2 R 1Cs + 1
G c (s) = .
R 1 + R 2 R 1R 2 Cs
+1
R1 + R 2
Substituting R1C = T, and R2/(R1+R2) = α (<1), Gc(s) may be written in two alternative forms:
α (sT + 1)
G c (s) = …Form I
(sαT + 1)
s + 1/T
= …Form II
s + 1/αT
CD - 02 Page 5
R1
OUTPUT
INPUT ei eo
R2
jω
X
0
1 1
−
αT T
Gc-WITH AMPLIFIER
Gc
-20 Log α
0db
1 ω
1
T −
αT
Gc
φm
0
ω
Form I with the factor α cancelled by an amplifier is suitable for frequency domain design,
while Form II is directly suitable for root locus design. Pole zero configuration and the Bode
diagram of the lead network are shown in Fig. 5(b) and (c) respectively. It may be noted that
the lead network exhibits a high pass character and has a positive phase angle. It may be
further shown that the maximum lead angle φm produced by this network is given by
1- α 1
sin φ m = , and is at the frequency, ωm =
1+ α αT
Using these networks, the design may be carried out either in the frequency domain or in the
s-plane as described below :
(a) Design in the frequency domain: The design here begins with the Bode diagram of the
open loop system where the forward path gain has been adjusted so as to satisfy steady-state
requirements in terms of ess or error coefficients. Transient specification, usually given in
terms of the phase margin, is now checked. An improvement in the phase margin can be
attempted by one of the following methods :
(i) If required phase margin is likely to be obtained at a lower frequency, the gain cross-over
frequency may be brought down by using the high frequency attenuation of the lag
network.
Note that the lag network does not disturb the low frequency gain set earlier. Care needs to be
exercised to ensure that the negative phase angle of the lag network does not affect the phase
margin substantially.
(ii) A positive phase angle may be added by inserting a phase lead network so that the phase
margin improves. This requires a phase lead network with amplifier so that the low
frequency gain of the system remains unaltered. Also, due to the high pass character of
this network, the gain cross-over frequency has a tendency to shift to higher frequencies
causing a lowering of the phase margin. This fact too needs to be taken care of in the
design.
(b) Design in the s-plane: The s-plane design starts with a root locus sketch of the system.
Thus the transfer function of the system must either be available or it should be computed
from the experimental frequency response data. For this design, specifications may include
steady-state error ess or error coefficients and a transient response specification in terms of
peak overshoot/damping ratio/settling time. Based on the transient response specifications,
the desired closed loop pole location in the s-plane is marked. Following two possibilities
now exist :
(i) If the root locus passes through the desired location determined above then the value of K
is selected so as to place the closed loop poles at the proper location. Next the factor by
which Kv, the velocity error coefficient, (or Kp, Ka etc. depending on the type number)
needs to be multiplied for steady state specifications to be met, is calculated. This
multiplication of Kv (by β) is effected by the lag compensator transfer function of Form II
when the 1/β factor is cancelled by an amplifier of gain β. The value of T is chosen so
that a very small shifting of the root locus diagram is caused by the negative phase angle
of the lag compensator.
(ii) If the root locus diagram does not pass through the desired location then a positive phase
angle must be added to force the root locus diagram to pass through it. This is achieved by
a lead network with appropriately chosen poles and zero. Finally the value of steady-state
error is evaluated and minor adjustment in the compensator pole/zero is made as
necessary.
CD - 02 Page 6
4. EXPERIMENTAL WORK
All the four compensation design problems outlined above may be attempted on the
present setup unless the performance specification chosen are outside the physical limitations
of the system. A substantial amount of experimentation and graphical design is involved in
each, which is rather time consuming. It is therefore recommended that only one network may
be designed and tested in a usual laboratory class. In the following pages experimental
procedure for frequency domain design is presented. A reader having adequate knowledge of
s-plane methods may however undertake root locus design as well.
CD - 02 Page 7
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
B
Y0
X0 A X
This step ensures that maximum phase lead shall be added at the new gain cross-over
frequency.
• The corner frequencies are now calculated from 1/T= α ωm and 1/αT=ωm/ α
• Implement Gc(s) with the help of a few passive components and the amplifier provided for
this purpose. The gain of the amplifier is to be set equal to 1/α.
• Insert the compensator and determine experimentally the phase margin of the plant with
compensator.
• Observe the step response of the compensated system. Obtain the values of MP, tP, ess and ζ.
In addition to the above experiments, the measurement of frequency response of
closed loop system, both before and after compensation, would provide further insight.
5. TYPICAL RESULTS
Following are the results obtained on a typical unit.
(a) Frequency response measurements :
Input = 1 Volt p-p, sine wave; CRO in x-y mode
All measurements are in volts p-p
fHz A B xo yo Gain dB Phase in
degrees
16 0.5 2.2 0.1 0.4 12.86 - 10.4
31 0.5 2.0 0.2 0.8 12.04 - 23.58
40 0.5 1.65 0.4 1.35 10.37 - 54.9
80 0.5 0.5 0.48 0.90 5.57 - 71.3
100 0.5 0.72 0.46 0.68 3.17 - 109.2
200 0.5 0.25 0.3 0.16 - 6.02 - 140.2
300 0.5 0.12 0.22 0.05 - 12.4 - 155.4
400 0.5 0.07 0.16 0.024 - 17.07 - 160.0
800 0.5 0.017 0.08 0.035 - 29.37 - 168.1
These measurements are carried out by the ellipse method (or by a double trace CRO).
If the input and output of a system, given as input x = Acos(ωt), and output y = Bcos(ωt-θ),
are fed to the x and y plates of the CRO respectively, the resulting trace is an ellipse (Fig. 6)
given by
y2 + (B2/A2)x2 - 2(B/A)xy cosθ = B2 sin2θ
Measurements of intercepts on x and y axes and peak values in these directions yield
Gain = B/A = yo/xo; or 20 log (B/A) dB, and
Phase θ = - sin-1(xo/A) = -sin-1(yo/B)
CD - 02 Page 8
30
26
22
-2 1 10 100 1000
90 Hz
-6
Frequency (Hz)
-10
-14
9
-18
-22
-26
-30
Frequency (Hz)
0
1 10 100 1000
Phase (degrees)
330 Hz
G(jω) 175 Hz
-90
45° 24°
-180
It is easy to see that for 90°<θ<180°, the major axis of the ellipse of Fig. 6 has a
negative slope and the phase angle is computed as θ = -180 + sin-1(xo/A).
(b) Bode plot: For the readings obtained above, the Bode plot is shown in Fig. 7. From it, the
approximate transfer function of the open loop system is obtained by drawing the low and
high frequency asymptotes and observing the values of low-frequency gain and corner
frequency. In the present set-up,
1
Corner frequency, f = 90 Hz, which gives T = = 0.00176
2π.90
1
13
and gain at low frequency = 13db, which gives K1= antilog = 4.466
20
Thus, Plant Transfer Function is obtained as,
4.466
(1 + 0.001768s) 2
9
(c) Design: (Lag network)
Let the design requirement be
ess = 0.05 (5%)
Phase margin = 40°
Required value of error coefficient KP to meet ess specification is 19. Thus gain K needs to be
increased by 19/4.466 = 5(say), i.e. by 20 log(5) = 14 dB (approx.). With this value of open
loop gain, step response of closed loop system {Fig. I(a) of Appemdix-I} gives
MP = 50 %
tp = 1.6 m sec.
ess = 4 %
The gain setting of 5 must not be changed throughout this experiment.
The magnitude plot is redrawn by shifting up by +14 dB. From this plot
Gain cross over frequency ωg = 2π (330)
Phase Margin = 24°
Now, phase margin needed = 40° + 5° (safety margin) = 45°
This is available naturally at ω = 2π(175) which may be chosen as ωg,new.
High frequency attenuation needed = 10dB = 20log β, so that the value of β is 3.16.
Compensation network is thus chosen as
*ωg,new = ωg/10 = 2π(175)/10 = 1/T
Zc = 1/T = 2π(17.5), Pc = 1/βT = 2π(17.5)/3.16
T = R2C = 0.009094; β = (R1+R2)/R2 = 3.16
Component values for implementation
R1 = 19.64 kΩ ≈ 20 kΩ
R2 = 9.09 kΩ ≈ 9.1 kΩ
C = 1µF
CD - 02 Page 9
* Note: The corner frequencies of the network are placed sufficiently lower than the desired
cross-over frequency, so that the phase lag contribution of the network at this cross over
frequency is made small. Usually the upper corner frequency of the network is placed 1/8 or
1/10 lower than the cross over frequency of the compensated system.
With the compensator inserted and compensator amplifier gain set to unity, step response Fig.
I(b) of Appendix-I gives
MP = 25 %
tp = 3 m sec.
ess = 3 %
It may be observed that compensation network has decreased the overshoot (smaller MP) of
the system while closely satisfying the ess requirements. Actual measurement of the phase
margin would confirm that compensation has brought it to 40° (approx.).
(d) Design: (Lead network)
Continuing with the same design requirement as before, viz.
ess = 0.05 (5%)
Phase margin = 40°
We now proceed with the lead network design. To satisfy the steady state specifications, the
open loop gain will need to be set to 5 as in the lag network example, leading to MP = 48 %,
ess = 5 %.
The gain setting of 5 must not be changed throughout this experiment.
The Phase Margin from Fig. 7 is read as 24°. Following the steps outlined in sec. 4.3,
Phase lead needed (φm) = 40° - 24° + 10° = 26°
1 − sin 26 1
α= = 0.39, = 2.56
1 + sin 26 α
10 log α = - 4.08 dB
ωm ( from Fig. 7) = 2π420 rad/sec = 2638.93 rad/sec
1 1 ω
= α ω m = 1648.0, and = m = 4225.6
T αT α
Time Constant T = R1 C
Choosing C = 0.01 µF, the resistances are computed as
T
R1 = = 60.67 kΩ ≈ 62 kΩ
C
α R1
R2 = = 38.78 kΩ ≈ 39 kΩ
(1 − α)
With the compensator inserted and its gain set to 1/α = 2.5, the response of the closed loop
system {Fig. I(c) of Appendix-I} yields:
MP = 25 %
tp = 1.3 m sec
ess = 3 %
CD - 02 Page 10
6. REFERENCES
[1] K. Ogata, ‘Modern Control Engineering’, Prentice Hall of India Pvt. Ltd.
[2] B.C. Kuo, ‘Automatic Control Systems’ Prentice Hall of India Pvt. Ltd.
[3] Nagrath, I.J. and M. Gopal, ‘Control System Engineering’, Wiley Eastern Limited, 1975
CD - 02 Page 11
APPENDIX – I
CD - 02 Page 12
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECT
To study the performance characteristics of a d.c. motor speed control system.
2. EQUIPMENT DESCRIPTION
Speed control is a very common requirement in many industrial applications such as
rolling mills, spinning mills, paper factories etc. The present unit is a low power d.c. motor
speed control system designed as a laboratory experiment. The various components and
subsystems have been carefully integrated, and the experiments are designed to illustrate the
important performance characteristics in a simple way. Figure 1 shows a schematic of the
system, different blocks and parts of which are described below :
(a) D.C. Motor : The 12 volt permanent magnet d.c. motor used in the system has the
following specifications :
Rated voltage : 12 volt d.c.
Rated current : 200 mA at no load, 290 mA at full load
Torque : 50 gm-cm
Maximum speed : 3000 rpm
A slotted aluminium disk is mounted on the motor shaft which generates signals for
speed measurement. Also, an adjustable eddy current brake is provided to enable the study of
the effects of external disturbance on the system performance.
(b) Speed measurement : The slotted disk attached to the motor shaft generates 12 pulses for
every revolution of the shaft through optical interruptions. After passing through signal
conditioning and frequency scaling circuits, these pulses are then fed to a built-in frequency
counter to display the shaft speed directly in rpm.
(c) Tachogenerator : A d.c. signal proportional to the shaft speed is obtained from an
'electronic tachogenerator' - a frequency to voltage converter circuit. The signal is brought to a
suitable level by signal conditioning to yield a tacho constant of about 0.5 V/1000 rpm.
(d) Error Detector and Forward Gain : The speed signal obtained from the tachogenerator is
compared with the reference (corresponding to a set speed) to obtain an error signal. The error
is amplified by a calibrated variable gain amplifier (0-100) and then fed to the driver circuit.
(e) Driver Circuit : The driver circuit is designed to deliver the necessary power to operate
the motor. It is a unity gain power amplifier and has all the necessary protection circuits
(f) Power and Signal Sources : A number of IC regulated supplies feed the electronic
circuits, reference potentiometer, DVM, speed displays and the motor. Also, a square wave
oscillator of 1 Hz (approx.) is included for time constant studies.
(g) DVM : A 19.99 Volt full-scale-deflection DVM mounted on the panel is available for the
measurement of various signals. One terminal of the DVM is internally connected to ground.
DCS-01 Page 2
V
P
R
M
VR +
+ ERROR
DRIVER DC MOTOR
AMPLIFIER
- BRAKE
REF GAIN
VF VT
0 10 0 10 TACHO
GENERATOR
O
TECHNO INSTRUMENTS, Roorkee
FEEDBACK N
T
VF
OPTO-
INTERRUPTER
KT
4-DIGIT SPEED
DISPLAY
3. BACKGROUND SUMMARY
A basic block diagram of the d.c. motor speed control system is shown in Fig. 2. In
order to evaluate the system performance, it is necessary to compute the overall transfer
function in terms of the transfer functions of the different blocks. To start with, the transfer
function of an armature controlled d.c. motor of Fig. 3 may be derived as [1, page nos. 30-
32],
θ(s) KM
=
V (s) s(sT + 1)
where KM is motor gain constant, and T is the mechanical time constant. Note that a
permanent magnet d.c. motor should behave similar to a shunt motor with constant field
excitation. Considering motor speed ω rad/sec (=dθ/dt) as the output variable, the forward
path transfer function may be written as,
ω(s) KM
G (s) = = KA. (1)
VE (s) (sT + 1)
where KA is the gain of amplifier. Again, the tachogenerator transfer function (or gain) may
be written as,
VT (s)
H (s) = = KT
ω(s)
This yields the closed loop transfer function of the complete system as
KAKM
ω(s) KAKM KAKMKT +1
= = (2)
VR (s) sT + K A K M K T + 1 T
s +1
K A K M K T + 1
In Eq. 2, the transfer function of the closed loop system is seen to be a first order type-0
function. Its transient and steady state response to step input may be easily studied as
described below.
the steady state error, ess , to step input R u(t), is given by,
R R
lim (VR − VT ) = lim (VR − VF ) = e ss = = (3)
s →∞ s →∞ 1+ K P 1+ K A K M K T
♦ The steady state error may be determined from a measurement of VR and VF, and
♦ The steady state error is expected to decrease as KA is increased.
DCS-01 Page 3
G (S)
~ 600 mV ERROR ωD
1Hz VS
AMPLIFIER MOTOR
+ +
VR VE VM KM SPEED,ω
REF KA +
0 TO 2V + 0 TO 10 sT + 1
-
VF H (s)
TACHO
VT
KT
Ra La If (CONSTANT)
For La → 0
E θ (s) KM
=
V (s) S (sτ + 1)
θ
The effective time constant may be determined from a recording of the step response
using either a pen recorder or a storage CRO. The step response for various values of KA
obtained through a storage oscilloscope, Tektronics, Model: TDS-210 is shown in Fig. 4 (a).
It may further be observed that for large gains (≥60) the speed of response becomes constant
due to saturation of amplifier and/or motor. The initial portion of the response is therefore a
straight line. Time constant may also be computed using an ordinary CRO as explained next.
Consider a general first order, type-0 transfer function of the form
C(s) K
=
R (s) sτ + 1
which may represent both open loop and closed loop speed control systems defined by Eqs.
(1) and (2). Its response to a step input, R u(t) may be seen to be
c(t) = R.K.(1-exp(-t/τ))
For a square wave of p-p value of R as input, refering to Fig. 4 (b) it is easy to see that
1 1
τ= ⋅ (6)
2f C( p − p ) 1
ln 1 − ⋅
R ( p − p) K
where f is the frequency of the squarewave. The above equation suggests a method for
computing the motor time constant T.
In the present electromechanical system, however, it is the shaft speed ω which will
go through a triangular wave type of variation in response to a square wave excitation, i.e.
C=ω(p-p). Since we are measuring the shaft speed using tachogenerator, ω(p-p), given by
VT(p-p)/KT, and VM(p-p), the motor input, the time constant may be found from the equation,
DCS-01 Page 4
Open Loop
1 1 1
T= . . , for open loop system 7 (a)
2f VT (p − p) K M K T
1n 1 −
VM (p − p)
Where VM (p-p) = KA-VS (p-p)
and
1 1
T= ⋅ , for closed loop system 7 (b)
2f VT (p − p) 1
1 − ⋅
VM (p − p) K M K T
where K includes only KMKT product from Eq. (1).
Thus, the steady state speed change caused by an external disturbance should reduce
as the gain KA is increased. Also, the performance should be much superior to the
open loop case, i.e. with feedback disconnected (KT=0)
In the experimental unit, the external disturbance is created by an eddy current brake.
The pole pieces of a permanent magnet are inserted to varying depths into the rotating
aluminium disk. The eddy currents induced in the disk result in power loss and thereby load
the motor.
4. EXPERIMENTAL WORK
The experiments suggested in this section start with a study of the open loop system
and its subsystems. This is followed by the performance evaluation of the closed loop system
for various operating conditions like forward path gain and disturbance.
DCS-01 Page 5
1/2f
R(p-p)
C(p-p) t
DCS-01 Page 6
5. RESULTS
Typical results obtained on an experimental unit are given below for guidance.
DCS-01 Page 7
DCS-01 Page 8
Observe that the numerical values of theoretical and experimentally obtained steady
state error do not match, though the pattern of variation is same i.e it decreases with increase
in forward gain. The mismatch is due to the fact that the motor gain constant KM does not
remain constant due to non-linearity of the motor.
(ii) System time constant
VR = 0.5 V d.c.
f = 0.82 Hz
KA = 5, VP = 480 mV (p-p), VT = 120 mV (p-p)
From equation 7(b)
KA KM KT 5 × 0.19
K eff = = = 0.487, and
1 + K A K M K T 1 + 5 × 0.19
1 1
Tef f = ⋅ = 846 msec
2 × 0.82 1 120
ln1 − ⋅
0.487 480
(iii) Disturbance rejection
Speed = 1200 rpm (approx.)
The table below shows the variation of speed under various conditions of feedback and thus
illustrates the effectiveness of speed control system in rejecting disturbance.
Brake Setting 0 1 2 3 4 5
Open Loop 1204 1200 1136 812 596 563
Speed, rpm
Closed Loop 1205 1203 1182 1023 910 886
(KA=5)
Closed Loop 1208 1205 1189 1107 1010 991
(KA=10)
Closed Loop 1186 1186 1183 1156 1134 1128
(KA=50)
Closed Loop 1196 1195 1192 1178 1167 1164
(KA=100)
6. REFERENCES
[1] Control system Engineering-I.J. Nagrath and M. Gopal, Wiley Eastern Limited.
[2] Modern Control Engineering - K. Ogata, Prentice Hall of India Pvt. Ltd.
[3] Automatic Control System - B.C. Kuo, Prentice Hall of India Pvt. Ltd.
DCS-01 Page 9
Prepared by
Manmohan Singh
Associate Professor, EIE
2. EQUIPMENT DESCRIPTION
D.C. motors are the most commonly used actuators in electro-mechanical control
systems or servomechanisms. Compared to actuators like 2-phase a.c. motor and stepper
motor, the d.c. motor has the advantage of higher torque and simpler driving circuit. However
the presence of a commutator and a set of brushes with the problems of sparking make the
d.c. motor somewhat less durable. This of course is not true for a present day well designed
d.c. servomotor.
The study of the dynamic characteristics of the d.c. motor is important because the
overall performance of the control system depends on it. A standard analysis procedure is to
model the various subsystems and then combine these to develop the model of the overall
system.
This experiment is designed to obtain the torque-speed characteristics, compute the
various parameter and finally determine the transfer function of a d.c. motor.
The various sections of the unit are described below in some detail.
(a) Mechanical Section : It comprises of the experimental permanent magnet d.c. motor
(approx. 8W) coupled to a small d.c. generator (approx. 2W), which serves the twin
purposes of,
• electrical loading of the motor, and
• transient response signal pick-up.
Further, a slotted disk mounted on the common shaft produces 6 pulses per revolution
through an opto- interrupter, which is used in a 4-digit speed display in r.p.m.
The specifications of the main experimental d.c. motor are:
• Operating Voltage :12Vdc
• No Load Current: 0.09A
• Full Load Current: 1.0A
• Torque: 30mN-m/ 300g-cm
(b) Motor Power Supply : The operating voltage of the motor is 12 volt d.c. while the current,
depending on loading, is around 120-650 mA. A built-in variable voltage source (2-
14Vd.c.) provides this power and two 3½ digit DPMs are available to monitor the
armature voltage and armature current of the motor.
(c) Transient Response Timing Section : When the power is suddenly switched ON, the
motor speed increases gradually and finally reaches a steady value. This process takes a
few tens of milliseconds and is therefore too slow for a CRO display with repeated
ON/OFF of the motor. Although a storage CRO could be used to freeze the transient
response and compute the time constant, an alternative using digital circuits is provided in
the unit. A 3-digit time count display enables the user to measure the time constant
without an expensive storage CRO. This is explained in section 3.3.
(d) Power Supplies : All the circuits are powered through built-in I.C. regulated power supply
of appropriate capacities.
DCM - 01 Page 2
MOTOR UNIT
TIME CONSTANT
SPEED Eg
(RPM) msec
Ea
MOTOR
ON
Es RESET
READY
ON
T TECHNO INSTRUMENTS, Roorkee
MOTOR UNIT
2 3
1 4
0 5
MOTOR SPEED
IL
Ra La
ia if
ea eb
ω
J, B
3. BACKGROUND SUMMARY
Upper case notations Ea, Ia, Eb, If are used for steady state values of the respective
variables ea, ia, eb and if
In the present set-up a permanent magnet d.c. motor is used, the field winding is thus
absent and the air gap flux is constant. The input drive may therefore be applied to the
armature only, that is, only armature controlled operation is possible.
The mathematical equations in this operating mode are,
TM = KT ia ; KT : torque constant
eb = Kbω ; Kb : back emf constant
di a
La + Ra ia+ eb = ea ; armature circuit model
dt
dω
J + Bω + TL = TM ; mechanical model
dt
Taking Laplace Transform and rearranging the terms,
ω (s) KT
=
E a (s) (sL a + R a )(sJ + B) + K T K b
Assuming the inductance of the armature circuit to be very small∗, the motor transfer
function may be written as,
∗
For the motor used Ra ≅ 4Ω and La ≅ 2.9mH. Thus even operating at 10 Hz, ωLa = 0.182,
which can be neglected in comparison to Ra.
DCM - 01 Page 3
Ea1
Motor Torque, TM
Ea2
Ea1 > Ea2 > Ea3
Ea3
Shaft Speed, ω
ω (s) KT Ra KM
G M (s) ∆ ≈ = ... (1)
E a (s) K K sτ m + 1
Js + B + T b
Ra
where,
KT
KM = : Motor gain constant
R aB + KTKb
RaJ
τm = : Motor time constant
RaB + KTKb
The armature controlled motor therefore has a first order type-0 transfer function as shown in
eqn. (1) and the two constant KM and τm depend upon motor parameters and external loading,
if any.
If the transfer function is defined with respect to shaft position (θ), rather than velocity
(ω=dθ/dt), the transfer function may be written as,
θ(s) KM
G ' M (s) ∆ =
E(s) s(sτ m + 1)
This form would be appropriate if one is interested in shaft position as the output, e.g.,
in a position control system like the D.C. Position Control, DCP-01 manufactured by M/s
Techno Instruments, Roorkee.
K 2b Kb
TM = − ⋅ω + ⋅ Ea ... (3)
Ra Ra
This equation may be obtained experimentally with ease since it is very simple to
determine Kb.
When the motor is loaded, the speed decreases which reduces the back emf. This
increases armature current ia so that the motor develops more torque in order to supply the
load. The operation for a constant voltage Ea is represented as in a straight line in Fig. 2.
At steady state (ω = constant) the load torque equation must read as
TM = Bω + TL , TL : load torque ... (4)
In the experimental work TL is increased in steps by loading the motor with the help of
the coupled generator and the values of TM and ω are recorded. While ω is computed from the
speed N, in rpm, as displayed on the motor unit, the following expression is used to compute
the motor torque TM at a constant value of Ea,
Eb E −I R
TM = KT Ia = Kb Ia = ⋅ Ia = a a a ⋅ Ia ... (5)
ω ω
This is essentially same as (3) while avoiding the explicit computation of Kb.
Note that equations (3) and (4) both give the variation of TM with ω for a constant
armature voltage and are therefore basically the same, subject to the assumption that KT = Kb.
In the experiment however eqn. (4) is not used since it involves measurement of load torque
TL.
The value of B, coefficient of viscous friction, may be seen as the negative of the
slope of torque speed curve eqn. (4) and Kb may be computed from the expression
Eb Ea − Ia R a
Kb = =
ω ω
Two motor parameters, B and Kb, may therefore be determined from the Torque-Speed
Characteristics obtained under steady state conditions or constant speed operation of the
motor
DCM - 01 Page 5
EKM
Motor Speed, ω(t)
0.632.EKM
τM
Time, t
where,
KT
KM = : Motor gain constant
R aB + KTKb
RaJ
τm = : Motor time constant
R aB + KTKb
1
In response to a step input, ea(t) = E.u(t), i.e. Ea(s) = ⋅ E , the motor speed will follow
s
the expression,
−
t
τm
ω( t ) = E . K M 1 − e , as shown in Fig. 3
The step response is very similar to that of an RC circuit charging from a step voltage
input. The parameters of interest, viz., EKM and τm are indicated in Fig. 3. One can easily
measure the steady state speed, N, and hence compute KM,
ω( t ) t →∞ = ωss = E K M
N πN rad/sec
or, KM = rpm/volt =
E 30E a volt
Measurement of τm, the time taken by the motor speed to rise from zero and attain
63.2% of ωss, is a little difficult because of the following facts:
(a) The motor being a mechanical system, takes a long time (approx. 500 msec.) to
reach near ωss. If a steady trace on the CRO is to be displayed, the motor must be
switched ON and OFF at around 1Hz. This is too low a frequency for convenient
viewing.
(b) Even if the above scheme was possible, the time constants during ON and OFF
would be different, since the back emf would be absent in the latter case (armature
circuit is disconnected). The switching frequency will then need to be still lower.
It is of course possible to use a storage CRO or pen recorder to freeze the transient and
make measurements at a later time. In the present unit, a class room experiment, a 3-digit
timer has been provided which gives the time elapsed in milli seconds between starting the
motor and reaching a preset speed, which would be set to 63.2% of the final speed. This then
directly gives the time constant value with a least count of 1 msec.
From the motor time constant τm obtained experimentally, the value of coefficient of
inertia (J) may be computed using eqn. (1) as,
DCM - 01 Page 6
K 2b
J = τm B + …(7)
Ra
Also an explicit expression for the motor transfer function may than be written.
The transient response study gives the value of KM and τm. All the motor parameters and its
transfer function may then be calculated using these and the parameters obtained in section
3.2.
4. EXPERIMENTAL WORK
This section deals with the details of the suggested experimental work, typical results
and calculations. It must be emphasized here that the typical results given below are based on
the measurements made on an unit randomly picked up from our assembly line. Although
these results are indicative of the general characteristics, they cannot be expected to be
exactly duplicated on other units.
DCM - 01 Page 7
Eg Load Steps
68Ω
0 1
Generator 2 22Ω
3
5 4
12Ω
IL 8.2Ω
5Ω
DCM - 01 Page 8
• Now switch the motor ‘ON’. Record the counter reading as time constant in
milliseconds.
• Repeat above with Ea = 10 V, Ea= 12 V and tabulate the results as shown below in
Table 3.
Table - 3
S.No. Ea, Eg, volts N, rpm Es= 0.632.Eg Time Constant Gain Constant,
volts volts πN
τm KM =
msec 30E a
1.
2.
3.
• Substitute the values of KM and τm in eqn. (6) and write down the motor transfer
function.
• Using the average values of τm, B, Kb and Ra, calculate the motor inertia from eq. (7),
K 2b
J = τm B +
Ra
DCM - 01 Page 9
6000
5000
4000
N (speed in rpm)
3000
2000
5504− 3984 1520
K = =
M 14 − 10 4
1000 = 380rpm/volt
0
0 2 4 6 8 10 12 14 16
Ea (Applied Voltage in volts)
12
10
Eg (Generator Voltage in volts)
0
0 1000 2000 3000 4000 5000 6000 7000
N (speed in rpm)
5. RESULTS
Results obtained on a typical unit are given in Table 4 below for guidance only.
Actual readings may vary from unit to unit.
(a) Armature Resistance, Ra = 4.42Ω, Armature Inductance = 2.21 mH
(b) Motor and Generator Characteristics
S.No. Ea, volts Ia, mA N, rpm Eg , volts
1. 2 145 601 1.13
2. 3 143 1036 1.96
3. 4 138 1469 2.788
4. 5 137 1893 3.59
5. 6 135 2328 4.42
6. 7 136 2747 5.21
7. 8 139 3159 6.00
8. 9 141 3583 6.80
9. 10 143 3984 7.55
10. 11 146 4373 8.28
11. 12 150 4738 8.96
12. 13 153 5133 9.69
13. 14. 158 5504 10.37
14. 14.58 161 5728 10.77
From the plots of Fig 5(a) and 5(b), average values of motor and generator constants
are:
KM = 380 rpm/volt
KG = 0.00186 V/ rpm
DCM - 01 Page 10
2.29
T (0.006248 − 0.002934)
2.28 B= m =
ω (3083 − 2849) × 2π
2.27
60
0.003314 × 60 Newton × meter
= = 94.75 × 10 − 6
2.26 334 × 2π rad/sec
2.25
2.24
2.23
2.22
2.21
2700 2750 2800 2850 2900 2950 3000 3050 3100 3150 3200 3250
N (speed in rpm)
volts
Average Kb = 22.53 x 10 −3
rad / sec
(From the slope of the curve) Fig. 6, coefficient of viscous friction,
newton − m
B = 94.75 x 10 −6
rad / sec
(d) Step response study Ea= 8V, Eg = 6.04 volts, and, τm = 77 msec
S.No. Ea, Eg, volts N, rpm Es= 0.632.Eg Time Constant Gain Constant,
volts volts πN
τm msec KM =
30E a
1. 8 6.04V 3186 3.817V 77 msec 41.70
2. 10
3. 12
π N π 3186
Es = 0.632 x 6.04 = 3.817 V and KM = . = . = 41.70 rad/sec.
30 E a 30 8
K2
Thus, J = τm B + b
Ra
(22.53 x 10 -3 ) 2
= 0.077 94.75 × 10 -6 +
4.42
N. m
= 16.14 x 10 −6
rad / sec 2
6. REFERENCES
[1] Control system Engineering - I.J. Nagrath and M. Gopal, Wiley Eastern Limited.
[2] Modern Control Engineering - K. Ogata, Prentice Hall of India Pvt. Ltd.
DCM - 01 Page 11
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECT
To study the performance characteristics of a d.c. motor angular position control
system.
2. EQUIPMENT DESCRIPTION
A major portion of any first course on automatic control system invariably revolves
around the study of d.c. position control systems. Experimental work in this area has however
been confined to analog simulated systems, e.g. through our 'Linear System Simulator' or
similar other units. The biggest advantage of this approach is the unlimited flexibility and
near perfect operation of the simulated systems leading to a close correlation between
theoretical and experimental results, however, the student is denied the feel of a physical
electromechanical system. The present unit has been designed with this objective in mind.
Despite the constraints like friction, dead zone, nonlinearities due to amplifier saturation and
motor current limiting, and low speed of response associated with any mechanical system, the
student has been provided with enough opportunity for experimentation on a working system.
The panel diagram in Fig. 1 shows the various built-in subsystems which are now described.
TACHO CAPTURE
VO Y E X
0 1
MOTOR UNIT
Dial 20 30 40
DC POSITION CONTROL
MODEL : DCP-01
TACHO FEEDBACK
POSITIVE NEGATIVE
(a) Command: Two operating modes have been provided in the system. When a continuous
command is given by the rotation of a potentiometer through a certain angle, the closed loop
system responds by an identical rotation of the motor shaft. Alternatively, a step command
equivalent to about 150 degrees may be given by a switch. This is used for quantitative
studies of the step response.
(b) Error detector: This is a 4-input 1-output block. Two of the inputs are meant for
command signals and the remaining two inputs, having 180° phase shift, are used for position
and velocity feedback signals.
(c) Gain blocks: The forward path gain is adjustable from 0 to 10 and the tachogenerator
channel gain may be varied from 0 to 1. The gains may be read from the markings on the
panel.
(d) Driver: The driver is a unity gain complementary symmetry power amplifier suitable for
running the motor upto full power in either direction. A current limiting circuit ensures safety
of the power transistors during motor starting and direction reversal.
(e) Waveform Capture/Display unit: The time response of a mechanical system like the
present one is usually too slow for a CRO display, except on a storage oscilloscope.
Alternatively an X-Y recorder could be used to get a hard copy which may subsequently be
studied quantitatively. Both these options are quite expensive for a usual undergraduate
laboratory. The waveform capture/display unit is a microprocessor based card which can
'capture' the motor response and then 'display' the same on any ordinary X-Y oscilloscope for
a detailed study. The stored waveform is erased whenever another waveform is captured, or
the unit is reset.
3. BACKGROUND SUMMARY
Second order systems are studies in great detail in any course on linear control
system. The reason for this is that a large number of higher order practical control systems
may be approximated as a second order system while neglecting less dominant modes,
nonlinearities like dead zone, saturation, hysteresis etc., assuming these to have little effect
on the performance. Also second order systems lend themselves to a simple and accurate
mathematical analysis. In the following description we shall follow the above strategy. At the
end however, the imperfections due to nonlinearities shall be pointed out.
L R
LOAD
θ
J, f
θ (s) Km
≈
E (s) s (sT + 1)
R (s) C (s)
+
KA G(s)
-
-
s. KD
Tacho Feed Back
C (t)
ess
1.0
td
C (tp)
0.5 C (∞)
tr
tp
e − ζω n t −1 (1 − ζ 2 )
c( t ) = 1 − sin(ωd t + tan ) (1)
(1 − ζ 2 ) ζ
where, ωd=ωn (1 − ζ 2 ) is termed the damped natural frequency. A sketch of the unit
step response for various values of ζ is available in the text books.
(b) Critically damped case (ζ=1)
c(t) = 1 − e − ω n t (1 + ω n t ) (2)
(c) Overdamped case (ζ>1)
ωn e − s1 t e − s 2 t
c( t ) = 1 − − (3)
2 s1 s
2 (1 − ζ ) 2
DCP - 01 Page 4
A simpler way to calculate steady state error without actually computing the time
response is available in the complex frequency domain. Application of the final value
theorem of Laplace Transform to unity feedback system gives,
sR (s)
e ss = lim e( t ) = lim sE (s) = lim
t →∞ s→ 0 s→0 1 + G ( s)
Steady state error may be obtained for various inputs (step, ramp, parabolic) and
systems of various type numbers (number of poles at origin). A summary of the results of the
above calculations may be seen in [11]. To facilitate the calculations, error coefficients are
defined as
Position error coefficient, Kp = lim G (s)
s→0
Velocity error coefficient, Kv = lim sG (s)
s→0
Acceleration error coefficient, Ka = lim s 2 G (s)
s→0
• The position control system has a second order transfer function in the standard
form.
• The system should not have any steady state error for step input.
• The transient response of the system is affected by the value of KA. A higher value
of KA should result in larger overshoot.
DCP - 01 Page 5
It is easily seen that the steady state error to unit ramp is given by
ess = 1/KAKm, and the damping ratio by
ζ = (1+KAKmKD)/2√(TKAKD)
Thus the specification of ess and ζ may be met simultaneously by a proper choice of
KA and KD.
An accurate analysis taking into account the above mentioned imperfections would
certainly prove to be exceedingly complex. The experiments which follow therefore
consider the system as it is, study the response and the effect of tachogenerator
feedback on the response. A qualitative comparison of the result of experiment with the
theoretical predictions for a second order linear system should be of great interest.
4. EXPERIMENTAL WORK
The experiments suggested below enable the reader to study the performance of the
closed loop system with proportional feedback and closed loop system with combined
proportional and techogenerator feedback. Idea of dead zone and its effect on steady state
error is also introduced. A special provision has been made in the set-up to store and display a
response of the system - a need which occurs quite frequently. The operation of this
waveform capture/display provision is described first.
DCP - 01 Page 6
(c) Applying step input now starts the storage. At the end of the capture cycle, the mode
automatically shifts to DISPLAY and the response waveform is seen on the CRO.
(d) Storage of a new response or pressing the RESET switch erases the current waveform.
(e) The time scale of the display may be calibrated by feeding the X-output (sawtooth) of the
unit to the Y-input of the CRO and determining its time period and amplitude.
4.2 Closed loop study (Also see the Note at end, on page 10)
(a) Position control through CONTINUOUS command
• Ensure that the step command switch is OFF
• Starting from one end, move the COMMAND potentiometer in small steps and
observe the rotation of the response potentiometer.
• Record and plot θR, VR, θ0 and V0 for a few values of KA.
• Calculate ∆θR and ∆θ0 (taking initial readings as nominal values) and plot. Also
calculate the errors (∆θR-∆θ0), (∆VR-∆V0) at each step. Justify the presence of errors
and their variation with KA.
(b) Position control through STEP command
• Ensure that the tachogenerator feedback switch on the MOTOR UNIT is set to
NEGATIVE.
• Adjust the reference potentiometer to get VR=0.
• Set KA to 2.
• Connect the CRO, calibrate the time scale, sec. 4.1(e), and switch to CAPTURE
mode.
• Apply STEP input. Wait till storage is complete and the response is displayed. Trace
the waveform from CRO.
• Compute Mp, ζ, tp, tr and the steady state error.
• Repeat for KA = 3,4,....
• Now set KA=6, and choose various values of KD=0.1, 0.2... and repeat the above
observations.
• Tabulate the results as shown in the next section and discuss :
◊ variation of maximum overshoot, rise time and steady state error with forward
gain.
◊ effect of tachogenerator feedback on maximum overshoot, rise time and stability.
◊ effect of dead zone and saturation on step response.
• Compare your results with theoretical predictions assuming a second order system.
• A set of observations with POSITIVE tachogenerator feedback may also be taken in
the same manner as above.
DCP - 01 Page 7
5. TYPICAL RESULTS
Typical results obtained on a similar unit are next given for guidance. The reading and
result have all been obtained using the waveform capture and other built-in facilities of the
unit. However, a set of step response recording obtained through TEKTRONIX Storage CRO
Type TDS-210 and its PC interface are shown on the facing pages of 8 & 9, purely for
general information
(a) Manual operation of the position control
KD = 0, Tachogenerator channel disabled
KA = 5
1. 0 - 5 - - 0 0 0
2. 30 30 31 26 4 0.20 0.13 0.07
3. 60 60 62 57 3 0.87 0.90 -0.03
4. 90 90 95 90 0 1.43 1.48 -0.05
.
.
.
The measured values of VR have negative signs which have not been inverted in the internal
circuitry for technical reasons. These may however be read as positive and calculation
should be made with positive values
(b) Calibration of X-output
In the DISPLAY mode with X-output connected to the Y-input of CRO, a sawtooth
waveform is seen. On measurement,
Amplitude of sawtooth = 5.6 volts.
Time duration of the main linear part = 39 msec.
X-output scale factor is thus 6.96 msec/volt
The X-output waveform above consists of axis display part and waveform display
part. The latter is identified by a much longer time duration which has been measured above.
(c) Step response of the position control without tachogenerator feedback
Set KD=0
Vs=2.5 V (internally set)
S. No. KA Mp tp tr ζ ess ωn
% msec msec volt rad/sec
1. 5 16.8 10.5 4.2 0.493 0.12 343.9
2.
3. 7 20.8 6.96 3.48 0.447 0.0 504.6
.
.
.
DCP - 01 Page 8
Vo(t)
ess
VS Dead
Zone
VPEAK
Vo (∞)
t
tr
tp
Referring to Fig. 5,
ess=Vs-V0, where Vs and V0 may be measured by DVM
VPEAK − V0 ( ∞)
MP = × 100%
V0 ( ∞)
Mp = exp (-πζ/ (1 − ζ 2 ) )
ωn 2 2.54 × 10 5
Closed loop : =
s 2 + 2ζω n s + ωn 2 s 2 + 4.51 × 10 2 s + 2.54 × 10 5
1 ωn 2 2.54 × 10 5
open loop (excluding KA) : =
K A s(s + 2ζω n s) 7 × s(s + 4.51 × 10 2 s)
• The open loop transfer function (excluding KA) comes out to be different for
different readings - the system is not actually a second order function.
• The peaks of the response curves are flattened - the motor has dead zone.
• The peak overshoot does not increase significantly with KA - motor armature
currents is restricted.
S. No. KP Mp tp tr ζ ess ωn
% msec msec volt rad/sec
DCP - 01 Page 9
NOTE: Under certain operating conditions, the motor may start continuous uncontrolled
rotation. This is due to a very small gap (approx. 5°) in the response potentiometer which is
easily overshot by the motor, due to its inertia. In such a situation normal operation may be
restored by decreasing the gain or by changing the position of the command potentiometer.
6. REFERENCES
[1] Control System Engineering - I. J. Nagrath and M. Gopal, Wiley Eastern Ltd.
[2] Modern Control Engineering - K. Ogata, Prentice Hall of India Pvt. Ltd.
[3] Automatic Control System - B.C. Kuo, Prentice Hall of India Pvt. Ltd.
DCP - 01 Page 10
Prepared by
Manmohan Singh
Associate Professor, EIE
1. OBJECTIVE
Theoretical and experimental study of a magnetic levitation setup, an inherently
unstable system.
2. BACKGROUND SUMMARY
The magnetic levitation system consists of an electromagnet which pulls an object (a
magnetic material) in an upward direction, in the presence of downward gravitational force on
it (Fig.1). If the magnet current i is adjusted to satisfy the condition, f = mg, the object should,
at least theoretically, remain suspended in air. In a practical situation, however, even the
smallest disturbance would dislocate the balance and the object would either stick to the
magnet or fall down to ground. Logically therefore the current i needs to be continuously
adjusted to keep the object freely suspended in air. This task is impossible to be achieved
manually , and therefore needs a feedback control loop.
The basic feedback control scheme is shown in Fig.2. The idea here is to monitor the
position of the object continuously and adjust magnet current automatically to ensure the
upward force, f, exactly balances the weight of the object, mg, at all times. It will however be
seen later that due to the unstable dynamics of the object, the automatic control scheme of
Fig.2 is not workable and hence a more elaborate controller is required. A linearized model of
the system is developed next.
ML - 01 Page 2
V
MAGNET CURRENT SENSOR VOLTAGE
MAGNET UNIT
POWER
CONTROLLER GAIN ELECTRO
AMPLIFIER
+ MAGNET
-
OBJECT
REFERENCE 1 11 SENSOR
SENSOR
T TECHNO INSTRUMENTS, Roorkee ON
80 80
70 70
60 60
50 50
40 40
30 30
20 20
10 10
Electromagnet
f
x
Object
mg
Magnet
Currrent Force Object
Desired Position
position of Power i Electromagn f Object
the object + Amplifier et Dynamics
χ
Vref
-
VS Position
Sensor
Measured position
of the object
~
where, ~ x (t ) and i (t ) are the incremental displacement and incremental magnet current around
their nominal values, x 0 and i 0 . Since the object is assumed to be at rest at x = x 0 with
i = i0 ,
2
i
c 0 = mg , which leads to
x0
2
2 i0 c ~ 2i c
m &~
x&(t ) = − 2
⋅ i (t ) + 0 3 ~
x (t )
x0 x0
Taking Laplace transform and neglecting initial condition,
− 2 ci0
~
X (s )
2
m x0
~ = , ….(4)
I (s ) 2 2ci0
2
s − 3
m x0
is obtained as the dynamics of the object.
The current – voltage relation of the magnet is given by
~
~v (t ) = R ~i (t ) + L d i (t ) , where ~v (t ) and ~i (t ) are the incremental values of
dt
voltage applied to and the current flowing into the electromagnet, and R, L are the coil
parameters. Taking Laplace transform and neglecting initial conditions,
~ ~
V (s ) = (R + s L ) I (s ) , and
combining the above equations, the system dynamics is given by the transfer function
2 c i0
~ −
X(s )
2
m L x0 K0
~ = G (s ) = =− ….(5)
V(s ) R 2 2 c i 0
2
(
(s + α ) s 2 − β 2 )
s + s −
m x 0
3
L
ML - 01 Page 3
jω
−β β σ
−α
jω
−α − β -Td β σ
2 ci0 2ci02
K0 = 2
and β =
3
mL x0 m x0
3. SYSTEM DESCRIPTION
The hardware involved in the various blocks of Fig.2 are described in this section.
3.2 Electromagnet
A powerful electromagnet is mounted on the top of the guide rod. It exerts variable
attraction force on M1 depending on the current supplied to it. The second magnet M2, being
farther away, is assumed to have a negligible effect on the force. The electromagnet is
characterised by its winding resistance R and inductance L.
ML - 01 Page 4
Electromagnet
Magnet, M
x0
M1
Transparent
Cylinder
M2
y0
Hall Sensor
Sensor, S
Vref
- R1 = 10K
Vsense -
+
+
C1
ML - 01 Page 5
Root Locus
500
400
300
200
Imag Axis
100
0 x x x
-100
-200
-300
-400
-500
-800 -700 -600 -500 -400 -300 -200 -100 0 100 200
Real Axis
K.3922
G(s) =
(s + 569 ) (s2 - 242 )
Fig. 8 Root Locus Diagram of the Uncompensated System
Impulse Response
0.3
0.2
0.1
0
Image Axis
-0.1
-0.2
-0.3
-0.4
0
0.02 0.04 0.6 0.08 0.1 0.12 0.14 0.16 0.18 0.2
Time (sec)
C
(s) = G(s)
R 1 + G(s )
2 2
x
= 10 ×10 −3 × 9.8 ×
0.034 −5
c = mg 0 = 8.56 × 10
i0 1.15
Step.4 Compute K0 and β ( Ref to sec. 2.3) as,
2c i 0 2g 2 × 9. 8
K0 = = = = 1961
m L x0 2 L i0 8.69 × 10 −3 × 1.15
2 c i02 2g 2 × 9. 8
β = = = = 24.00
m x 03 x0 0.034
Step.5 The transfer function of the system at the nominal position is now written
explicitly as
2 × 1961
G (s ) = (Internal gain of power amplifier = 2)
(s + 569 ) (s 2 - 24.00 2 )
The forward path transfer function may therefore be written as
K × 3922
K.G (s ) = −
(
(s + 569) s 2 − 24.00 2 )
Where K is adjustable between 1 and 11 as explained in section 3.3
Step.6 Feedback path gain (sensor gain) at the nominal position is found by
displacing the object slightly around the nominal position (say ±3mm) and
monitoring the change in sensor output.
(i) y 0 = 5 mm Sensor output, Vs = 3.62 V
(iii) y - ∆ y = 2 mm
0
Sensor output, Vs - ∆Vs = 4.63 V
2∆Vs
Average Sensor gain Ks = = 230 V/m
2∆ y
0
ML - 01 Page 6
500
100
0 x x x
-100
-200
-300
-400
-500
-800 -700 -600 -500 -400 -300 -200 -100 0 100 200
Real Axis
K (1 + 0.02s )× 0.3922.230
GG c =
(s + 569) s 2 − 24 2 ( )
Fig. 10 Root Locus Diagram of the Compensated System
0.4
0.35
0.3
0.25
0.2
Amplitude
0.15
0.1
0.05
-0.05
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Time (sec)
Fig. 11 Impulse Response of the closed Loop Compensated
system with K=3
s=tf(`s’)
g=(3922)/((s+569)*(s∧2-24∧2));
h=230;
gh=g*h
rlocus(gh)
impulse(((g)/(1+gh)), .2)
Step.8 Choose a suitable closed loop pole location (P) and design a PD controller. A
good choice may be a zero at S = - 50. The compensator transfer function. GC
= (1+0.02s) = 0.02(s+50). With R1 = 10KΩ (internal), the value of
compensator capacitance is C1 = 2µF. A revised root locus diagram may be
drawn as shown in Fig. 10. Note that the system is now stable for K>1.5.
Impulse response plot for K = 3 is shown in Fig. 11
MATLAB command:
gc=((1/50)*(s+50))
rlocus(gh*gc)
implus(((3*g*gc)/(1+3*gh*gc)), .0:.0001:.5)
Calculate and connect the designed value of capacitor on the panel and operate
the system with the computed value of the forward path gain.
A careful observation of the root locus of Fig.10 would show that the system
could be stabilized by using a wide range of capacitors. This may be verified
experimentally.
Also it might appear that large values of K would be preferred in all cases.
This however is not true in the practical situation due to the saturation of the
amplifier.
5. FURTHER WORK
The experimental unit provides the user with an interesting platform to conduct
further experimental work. This however is most conveniently done with the support of
MATLAB. Some suggestions are:
(a) Simulate different PD controllers on MATLAB check the root locus diagram
impulse response their effect on the unit.
(b) Attempt lead compensator design and implement it.
Note: Do not expect the experimental performance to match exactly with theoretical
prediction. While the theoretical work is valid for linear system only, the experimental system
is a non-linear one, which has been approximated as a linear system for small variation
around the operating point.
6. REFERENCES
[1] Franklin GF, JD Powell and Michael Workman, “Digital Control of Dynamic
System”, Addison Wesley, 2000.
[2] Shiao YS, “Design and Implementation of a controller for a Magnetic Leviation
System”, Proc. Natl. Sci.Comc. ROC(D), Vol. II, No. 2, 2001, pp. 88-94.
ML - 01 Page 7
Prepared by
Manmohan Singh
Associate Professor, EIE
OBJECT
To study the linear and nonlinear applications of a 741 operational amplifier as
(i) Integrator
(ii) Differentiator
(iii) Summer
(iv) Difference Amplifier
(v) Voltage to Current Converter
(vi) Current to Voltage Converter
(vii) Astable Mode of operation
(viii) Precision Rectifier
THEORY
An operational amplifier (OP-AMP) is a high gain direct-coupled amplifier having low
output impedance and high input impedance. The first stage of an op-amp consists of a
differential amplifier resulting in two input terminals called 'inverting' and 'Non-inverting'
inputs. These are characterised by a -ve and +ve sign respectively. Since the amplifying stages
are direct coupled and the nominal output is required to be at the ground potential, an op-amp
operates from two power supplied, viz. +Vcc and -Vcc. The input applied at 'Non inverting'
terminal is amplified by the amplifier without any phase change whereas an input applied at
'Inverting' terminal undergoes a 180° phase change.
The operational Amplifier is a versatile device that can be used to amplify dc as well ac
input signals and was originally designed for computing such mathematical functions as
addition, subtraction, multiplication and integration. Thus the name operational amplifier stems
from original use for these mathematical operations. With the addition of suitable external
feedback components, the modern day op-amp can be used for a variety of applications such as
integrator, differentiator, summer, subtractor, oscillators and others.
(a) Integrator: A circuit in which the output voltage waveform is the integral of the input
voltage waveform is the integrator or the integration amplifier. Such a circuit is obtained by
using a basic inverting amplifier configuration if the feedback resistor Rf is replaced by a
capacitor Cf.
The expression for the output voltage Vo can be obtained by writing Kirchhoff’s current
equation at node V2:
I1=Ib + If …a(i)
R1 V2 CF
i1 IB iF + V CC
-
+ IC 7 4 1 Vo
V in V1
- +
-V E E
IB RL
RF
R1 CF
+V C C
-
+ IC 741 Vo
V in
- +
-V E E
RL
R oM = R 1
1
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
C1 V2 RF
ic I B2 ≅ 0 iF +VCC
-
+ dVin
IC 7 41 υ o = − R F C1
V in V1 dt
- +
-V E E
RL
R O M -R F
I B1 ≅ 0
CF
0.005 )
R1 C1
RF
+12V
-
+ IC 7 4 1 Vo
V in
- +
-1 2 V RL
ROM 10KΩ
1.5KΩ
3
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
Vi n − V2
= CF (V2 − Vo )
d
Therefore,
R1 dt
Vi n dV
= − CF o
R1 dt
The output voltage can be obtained by integrating both sides with respect to time:
t V t d
∫ R dt = ∫ C F (−Vo ) dt
in
0 1 0 dt
= C F (−Vo ) + Vo t =0
Therefore,
1 t
Vo = − V dt + C
R 1C F ∫ in
…a(ii)
0
Where C is the integration constant and is proportional to the value of the output voltage
Vo at time t=0 seconds. When Vin = 0, the integrator of fig. (1) works as an open loop amplifier,
this is because the capacitor CF acts as an open circuit (XCF = ∞) to the input offset voltage Vio.
In other words the input offset voltage Vio and the parts of the input current charging capacitor
CF produce the error voltage at the output of the integrator. Therefore, in the practical integrator
shown in figure 2, to reduce the error voltage at the output, a resistor RF is connected across the
feedback capacitor CF. Thus RF limits the low frequency gain & hence minimizes the variation
in the output voltage.
(b) Differentiator: As its name implies, the circuit performs the mathematical operation of
differentiation; that is, the output waveform is derivative of the input waveform. The
differentiator may be constructed from a basic inverting amplifier if an input resistor R 1 is
replaced by capacitors C1.
The expression for the output voltage can be obtained from Kirchhoff’s current equation
written at node V2 as follows:
iC = IB + iF …b(i)
Since IB= 0, i C = iF
V − Vo
C1
d
dt
(Vin − V2 ) = 2
Rf
4
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
Ra V2 RF
+Va
Rb +C
Ia IF
VC
+Vb -
Ib I B 2 ≅0
RF RF
IC 741 Vo = - Va + Vb
V1 Ra Rb
I B 1 ≅0 +
-E
VE RL
R O M = (R a || R b || R F )
R R
+V a
+V C C
-
IC 741 Vo
R
+V b +
-V E E
RL
R
5
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
Thus the output Vo is equal to the RFC1 times the negative instantaneous rate of-change
of the input voltage Vin with time. Since the differentiator performs the reverse of the integrator's
function, a cosine wave input will produce a sine wave output, or a triangular input will produce
a square wave output. However, the differentiator of Figure 3 will not do this because it has
some practical problems. The gain of the circuit (RFC1) increases with increase in frequency at a
rate of 20 dB/decade. This makes the circuit unstable. Also, the input impedance Xc1 decreases
with increase in frequency, which makes the circuit very susceptible to high-frequency noise.
When amplified, this noise can completely override the differentiated output signal.
Both the stability and the high-frequency noise problems can be corrected by the addition
of two components R1 and CF, as shown in Figure 4. This circuit is a practical differentiator.
Summing amplifier. If in the circuit of Figure 5, Ra = Rb = R, for example, then Equation c(ii)
can be rewritten as
Vo = −
RF
(V + Vb )
Ra a
…c(iii)
This means that the output voltage is equal to the negative sum of all the inputs times the
gain of the circuit RF/R; hence the circuit is called a summing amplifier. Obviously, when the
gain of the circuit is 1, that is, Ra = Rb = RF, the output voltage is equal to the negative sum of all
input voltages. Thus
Vo = -(Va + Vb) …c(iv)
(d) Difference Amplifier: A basic differential amplifier can be used as a subtracter as shown in
Figure 6. In this figure, input signals can be scaled to the desired values by selecting appropriate
values for the external resistors; when this is done, the circuit is referred to as scaling amplifier.
However, in Figure 6, all external resistors are equal in value, so the gain of the amplifier is
equal to 1.
From this figure, the output voltage of the differential amplifier with a gain of 1 is,
Vo = −
R
(V − Vb )
R a
6
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
R V2 R
I B ≅0
+ VC C
-
IC 7 4 1 Vo
+
I B ≅0 -V E E
R V1 R
+ - - +
I1 I2
V in
+ +
Load
-
-
IL
R V2 RF
I in I in I in +VC C
V in
+
I B2 ≅0 -
-
IC 7 41 Vo
V1
C urre nt S ou rce + -
-V EE
I B1 ≅0 RL
7
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
That is, Vo= Vb -Va …d(i)
Thus the output voltage Vo is equal to the voltage Vb, applied to the noninverting terminal
minus the voltage Va applied to the inverting terminal; hence the circuit is called a subtracter.
(e) Voltage to current converter: The voltage-to-current converter is shown in Figure 7. In this
circuit, one terminal of the load is grounded, and an input voltage controls load current. The
analysis of the circuit is accomplished by first determining the voltage V1 at the noninverting
input terminal and then establishing the relationship between V 1 and the load current.
Writing Kirchhoff’s current equation at node V1,
I1 + I2 = IL
Vin − V1 Vo − V1
+ = IL
R R
Vin + Vo- 2V1 = IL R
Vin + Vo − I L R
Therefore, V1= …e(i)
2
Since the op-amp is connected in the noninverting mode, the gain of the circuit in figure
7 is 1+R/R=2. Then the output voltage is
Vo = 2V1 …e(ii)
= Vin + Vo - ILR
That is, Vin = ILR
or IL = Vin / R …e(iii)
This means that the load current depends on the input voltage Vin and resistor R and is
independent of the ‘Load’. Notice that all resistors must be equal in value.
(f) Current to Voltage converter: Let us consider the ideal voltage-gain equation of the
inverting amplifier,
Vo R
=− F
Vin R1
Therefore,
V
Vo = − in R
F
R1
and Vo = −i in R F …f(i)
This means that if we replace the Vin and R1 combination by a current source Iin as shown
in Figure 8, the output voltage Vo becomes proportional to the input current Iin. In other words,
the circuit of Figure 8 converts the input current into a proportional output voltage.
One of the most common uses of the current-to-voltage converter is in sensing current
from photo detectors and in digital-to-analog converter applications.
8
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
R V olta ge
C V2 O utput
across
V olta ge
capacitor
Vo
V2
Rs + V CC + Vset ≈ Vcc
-
Vo
V id IC 741 +V 1
R1
V1
+ 0 t
Rs -V EE
-V 1
- Vset ≈ Vcc
R2
FIG. 9(a) Square Wave Generator FIG. 9(b) Waveform of output voltage Vo
and voltage across capacitor V2.
9
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
(g) Astable Mode of operation or square wave generator: In contrast to sine wave oscillators,
square wave outputs are generated when the op-amp is forced to operate in the saturated region.
That is, the output of the op-amp is forced to swing repetitively between positive saturation +V sat
(≅ +Vcc) and negative saturation -Vsat (≅ -VEE), resulting in the square-wave output. One such
circuit is shown in Figure 9(a). This square wave generator is also called a free running or
astable multivibrator. The output of the op-amp in this circuit will be in positive or negative
saturation, depending on whether the differential voltage Vid is negative or positive, respectively.
Assume that the voltage across capacitor C is zero volts at the instant the dc supply
voltages +Vcc and -VEE are applied. This means that the voltage at the inverting terminal is zero
initially. At the same instant, however, the voltage V1 at the noninverting terminal is a very
small finite value that is a function of the output-offset voltage VooT and the values of R1 and R2
resistors. Thus the differential input voltage Vid is equal to the voltage V1 at the noninverting
terminal. Although very small, voltage V1 will start to drive the op-amp into saturation. For
example, suppose that the output offset voltage VooT is also positive and that, therefore, voltage
V1 is also positive. Since initially the capacitor C acts as a short circuit, the gain of the op-amp is
very large (A); hence V1 drives the output of the op-amp to its positive saturation + Vsat. With
the output voltage of the op-amp at +Vsat, the capacitor C starts charging toward + Vsat through
resistor R. However, as soon as the voltage v2 across capacitor C is slightly more positive than
V1, the output of the op-amp is forced to switch to a negative saturation, -Vsat. With the op-amp's
output voltage at negative saturation, -Vsat. The voltage v1 across R1is also negative, since
R1
VLO = (− Vsat ) …g(i)
R1 + R 2
Thus the net differential voltage Vid = V1-V2 is negative, which holds the output of the
op-amp in negative saturation. The output remains in negative saturation until the capacitor C
discharges and then recharges to a negative voltage slightly higher than –V1. [See Figure 9(b).]
Now, as soon as the capacitor's voltage V2 becomes more negative than –V1, the net differential
voltage Vid becomes positive and hence drives the output of the op-amp back to its positive
saturation +Vsat. This completes one cycle. With output at +Vsat voltage V1 at the noninverting
input is
R1
V1 = (+ Vsat ) …g(ii)
R1 + R 2
2R
T= 2RC ln 1 +R 2 …g(iii)
R 2
1
fo =
2RC ln[(2R 1 + R 2 )/ R 2 ]
or …g(iv)
10
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
V in
+ 100m V
+ VC C
- D1 0V t
Vo
IC 7 4 1
- 100m V
+
D1 ON
-V E E Vo
+ RL
V in
+ 100m V
-
0V t
D1 OFF
FIG. 10(a) Positive small signal half wave rectifier. FIG. 10(b) Its output and input waveform
V in
+ 100m V
+ VC C
-
D1 0V t
Vo
IC 7 4 1
+ - 100m V
-V EE
Vo
RL
+
V in
+ 100m V
-
0V t
- 100m V
FIG. 11(a) Negative small signal half wave rectifier. FIG. 11(b) Its output and input waveform
11
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
Equation g(iv) indicates that the frequency of the output fo is not only a function of the
RC time constant but also of the relationship between R1 and R2. For example, if R2= l.l6R1,
Equation g(iv) becomes
1
fo = …g(v)
2RC
Equation g(v) shows that the smaller the RC time constant, the higher the output
frequency fo, and vice versa. As with sine wave oscillators, the highest frequency generated by
the square wave generator is also set by the slew rate of the op-amp. An attempt to operate the
circuit at relatively higher frequencies causes the oscillator's output to become triangular. In
practice, each inverting and noninverting terminal needs a series resistance Rs to prevent
excessive differential current flow because the inputs of the op-amp are subjected to large
differential voltages. The resistance Rs used should be 100 kΩ or higher. A reduced peak-to-
peak output voltage swing can be obtained in the square wave generator of figure 9(a) by using
back to back zeners at the output terminal.
(h) Precision Rectifier: The circuit of Figure 10(a) can be used as a positive small-signal half-
wave rectifier provided that -Vref = 0 V. The resultant circuit can rectify signals with peak values
down to a few millivolts, unlike conventional diodes. This is possible because the high open-
loop gain of the op-amp automatically adjusts the voltage drive to the diode D 1, so that the
rectified output peak is the same as the input [see Figure 10(b)]. In fact, the diode acts as an
ideal diode (switch), since the voltage drop across the on diode is divided by the open-loop gain
of the op-amp. As Vin starts increasing in the positive direction, the Vo' also starts increasing
positively until diode D1 is forward biased. When D1 is forward biased, it closes a feedback loop
and the op-amp works as a voltage follower. Therefore, the output voltage Vo follows the input
voltage Vin during the positive half-cycle, as shown in Figure 10(b). However, when Vin starts
increasing in the negative direction, Vo' , also increases negatively until it is equal to the negative
saturation voltage (= -VEE). This reverse biases diode D1 and opens the feedback loop.
Therefore, during the negative half-cycle of the input signal, Vo is 0 V.
The op-amp in the circuit of Figure 10(a) must be a high-speed op-amp since it alternates
between open-loop and closed-loop operations. µA318, HA2500, and LM310 are typical
examples of high-speed op-amps. However, in the present set-up 741 is used instead although at
low frequencies.
Figure 11(a) shows a negative small-signal half-wave rectifier. During the positive
alternation of Vin, D1 is reverse biased; therefore, Vo = 0V. On the other hand, during the
negative alternation, D1 is forward biased; hence Vo follows Vin.
Yet another negative half-wave rectifier is shown in Figure 12. In this circuit two diodes
are used so that the output Vo' of the op-amp does not saturate. This minimizes the response
time and increases the operating frequency range of the op-amp. However, notice that the op-
amp is used in the inverting configuration, and the output is measured at the anode of diode D1
with respect to ground.
12
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
R1 R F =R 1
Vo
+
V in +
D1
-
+VCC -
-
IC 741 Vo
+
-V E E +
D2
ROM -
13
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
PROCEDURE
(a) Integrator:
(i) Make the connections as shown in figure 2.
(ii) Set R1=10KΩ, RF= 10KΩ, Rom=10 KΩ, CF=0.1µF.
(iii) Apply the square wave input voltage Vin (in-built) and observe its amplitude and
frequency on CRO.
(iv) Switch ON the unit and observe the output (triangular wave) amplitude and
frequency on CRO.
(v) Tabulate the amplitude and frequency of input and output by varying the frequency
of the input by frequency pot.
(vi) Verify the results with the help of equation a(ii).
(b) Differentiator:
(i) Make the connections as shown in figure 4.
(ii) Set R1=270Ω, RF= 100KΩ, Rom=10 KΩ, C1=0.1µF.
(iii) Apply the triangular wave input voltage Vin (in-built) and observe its amplitude and
frequency on CRO. (Ensure that switch S1 is on triangular position)
(iv) Switch ON the unit and observe the output (square wave) amplitude and frequency
on CRO.
(v) Tabulate the amplitude and frequency of input and output by varying the frequency
of the input by frequency pot.
(vi) Verify the results with the help of equation b(ii).
14
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
D1
Vo
+
V in 1K
-
V in
+ 100m V
0V t
- 100m V
Vo D1 ON
+ 100m V
0V t
D 1 O FF
15
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
(h) Precision Rectifier: In that experiment first of all we will see the response of normal
rectifier as follows:
(i) Make the connections as shown in figure 13(a).
(ii) Apply the sine wave input Vin ≈ 1V (p-p) (in-built) and observe that wave form on
CRO. (Ensure that the switch S1 is on sine wave position)
(iii) Switch ON the unit and observe the output wave form on CRO and trace it.
NOTE: Overflow in the DVM is indicated by a steady reading of '1' In such case either switch
the meter to the higher range or decrease the input.
16
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
TYPICAL RESULTS
a) INTEGRATOR:
Input Vin (Square wave) = 5.0 V(p-p), 1KHz
Output Vo (Triangular) = 1.25 V(p-p), 1KHz
1 t
Calculations:- Vo = -
R1 C F ∫ Vin dt
0
0.5 x 10−3
1
=- ∫ 2.5 dt
10 x 103 x 0.1 x 10 −6 0
=-
1 2.5 0.5 x 10 −3 − 0
10 −3
1
=-
2.5 x 0.5 x 10 − 3 = - 1.25 V
10 − 3
Result: Equation a(ii) is verified and the slope of the integrator is 2.5 x 10 3 V/sec
b) Differentiator:
Input Vin (Triangular wave) = 2.5 V(p-p), 1KHz
Output Vo (Square wave) = 10 V(p-p), 1KHz
dVin
Calculations:- Vo = - Rf C1
dt
2.5
= - 10 x 10 3 x 0.1 x 10 −6
0.25 x 10 −3
= - 10 V
Result: Equation b(ii) is verified
17
and Vo = 2 V1
Result: Equation e(ii) is verified.
18
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual for Control System Lab
1
fo(Measured) = KHz ≅ 909 Hz
1.1
1
( )
fo(Theoritical) =
2R 1 + R 2
2RC ln
R2
1
=
2 x 10.120 + 10.133
2 x 10.083 x 103 x 0.049 x 10 −6 ln
10.133
1
=
0.988 x 10 −3 ln[2.997]
= 921 Hz
Result: fo(Measured) ≅ fo(Theoritical)
h) Precision Rectifier:
Vin = 1.2V(p-p) [+ 0.6V to –0.6V]
With Normal Rectifier:
Vout max = 0.3V
Result: We can observe that the precision rectifier rectifies more precisely with respect to the
normal rectifier.
NOTE: All the values of capacitors mounted on panel are with in ± 5%. So far accurate results,
measure these values by 4½ digit LC meter.
19
Prepared by Manmohan Singh, Associate Professor, EIE
Laboratory Manual
for
Prepared by
Manmohan Singh
Associate Professor, EIE
STROBOSCOPE STB-01
1. OVERVIEW
The STROBOSCOPE is an instrument designed for the visually stopping the motion
in rotating shaft for diagnostic inspection purposes and for measurement of shaft speed in
revolutions per minute (RPM). The instrument has applications in a variety of applications in
industrial and laboratory environment. A principal feature of the STROBOSCOPE is its non-
contact nature, which enables the user to monitor the shaft speed from a distance. Also, the
speed of very small motors may be measured without any loading errors. The speed is
displayed on a 4-digit readout from 500-9900rpm (guaranteed range). A 10-turn
potentiometer is used to span the whole range of speed very conveniently. The instrument
operates from the 220V, 50 Hz line while all internal supplies are IC regulated.
4 Digit Speed
Display
Variable
Frequency
Frequency Flasher Unit
Scalar
Source
3. PRINCIPLE OF OPERATION
In a stroboscope high intensity light flashes are directed towards a rotating shaft on
which a distinct marking has already been drawn or pasted. The period of the flashes may be
varied manually. The marking would appear stationary when the time for one shaft revolution
equals the flash period. This is the fundamental period. Also single stationary images will be
seen if the flash period is an integral multiple of the above value. However for sub multiple
flash periods multiple stationary images will be seen. The fundamental period is used for
speed measurement and this is identified as the smallest period (highest frequency) for which
a single stationary image is seen.
Referring to the circuit diagram shown, a variable frequency square wave oscillator
supplies the timing pulses. These are used to periodically trigger a flash tube after suitable
scaling, so as to correspond to speed reading in r.p.m. The power supply unit supplies power
to various subsystems. Speed is read on a 4-digit display of the r.p.m. counter having a crystal
controlled window for greater accuracy.
STB-01 Page 2
A PRODUCT OF AN
ISO 9001 : 2008
STROBOSCOPE CERTIFIED COMPANY
Model STB-01
RPM
ON
T TECHNO INSTRUMENTS, Roorkee
Stopped Image 1/4 times 1/2 times 1 times 2 times 3 times 4 times
Flash Rate (FPM) 500 1000 2000 4000 6000 8000
Lamp Tube
Reflector Glass
Focusing Level
Connector Mounting
Bracket Reflector Glass
Clamp
1. Read and follow all instructions in this manual carefully, and retain this manual for
future reference.
2. Do not use this instrument in any manner inconsistent with these operating
instructions or under any conditions that exceed the environmental specifications
stated.
3. Use of this product may induce and epileptic seizure in person prone to this type of
attack.
4. Objects viewed with this product may appear to be stationary when in fact they are
moving at high speeds. Always keep a safe distance from moving machinery and do
no touch the target.
5. There are lethal voltages present inside this product. Refer to the section on Lamp
Replacement before attempting to open this product.
6. Do not allow liquids or metallic objects to enter the ventilation holes on the
stroboscope as this may cause permanent damage and void the warranty.
7. Do not allow cables extending from unit to come into contact with rotating machinery,
as serious damage to the equipment, or severe personal injury or death may occur as a
result.
8. Do not direct strobe flash toward certain data collectors, as it may temporarily
interrupt data collector operation, and could result in loss of stored data.
9. This instrument is not user serviceable. For technical assistance, contact the sales
organization from which you purchased the product or Techno Instruments Instrument
directly.
4. OPERATING PROCEDURE
4.2 Given below are the steps for reading the speed of a rotating shaft.
(a) While the shaft is stationary, put a mark or a sticker on it.
(b) Allow the shaft to rotate.
(c) Connect the connector of lamp unit to the socket given at the back of main unit
(d) Switch ‘ON’ the STROBOSCOPE and direct the flashes at the mark on the shaft.
(e) If focusing is required, unscrew slightly the screw given on top of focusing lever,
given at the side of Lamp. Adjust the lever to obtain best focus of the light on the
object. Once the desired focus is achieved tighten the screw.
(f) For measurement, starting from the high speed end (extreme clock wise) turn the
‘SPEED’ potentiometer down to lower speed till a single stationary image is
observed.
(g) The reading on the display of Stroboscope directly gives speed in r.p.m.
(h) To confirm the true speed, note the reading and adjust the stroboscope to exactly
half of this reading. You should again see a single image (which may be phase
shifted with respect to the first image)
(i) If the speed is outside the full rage of the stroboscope (9900 rpm), it can be
measured using the method of harmonics and multipoint calculation. Start at the
highest rate and adjust the flash rate down. Be aware that you will encounter
multiple images. Note the flash rate of the first SINGLE image you encounter and
call this speed “A”. Continue decreasing the flash rate until you encounter a second
SINGLE image; note this speed as “B”. Continue decreasing the speed until you
reach a third SINGLE image at speed “C”.
For a two point calculation the actual speed is given by
RPM = AB/ (A+B)
For a three point calculation
RPM = 2XY(X+Y)/ (X-Y)2 where
X = (A-B) and
Y = (B-C)
STB-01 Page 3
Technical specifications
(i) Speed Range: 300 - 9900 r.p.m.
(ii) Normal Flash Energy for high FPS shot : 0.02 Joule/Sec
(iii) Average Power Input Max. of the lamp: 5 watt
(iv) Average Flash Life of the lamp tube: 100Hrs.
(v) Reading accuracy : better than ± 0.02% ± 1 digit
(vi) Viewing distance : 0.5 - 5m depending on ambient light
(vii) Operation : Continuous
(viii) Power : 220V, 50 Hz (nominal)
STB-01 Page 4
Prepared by
Manmohan Singh
Associate Professor, EIE
List of Equipment/Software
Following equipment/software is required:
MATLAB
Category Soft-Experiment
Deliverables
A complete lab report including the following:
x(t)
Fs(x) Fs(x)
M Fa(t) Fa(t)
M
Ff( 𝑣)
Ff( 𝑣)
The differential equation for the above Mass-Spring system can be derived as follows
( ) ( )
( ) ( )
Transfer Function:
Applying the Laplace transformation while assuming the initial conditions are zeros, we get
( ) ( ) ( )
>>num = [1 0];
>>den = [1 2 1];
>>sys = tf(num,den)
Transfer function:
s
-------------
s^2 + 2 s + 1
A useful trick is to create the Laplace variable, s. That way, you can specify polynomials
using s as the polynomial variable.
>>s=tf('s');
>>sys= s/(s^2 + 2*s + 1)
Transfer function:
s
-------------
s^2 + 2 s + 1
Zero/pole/gain:
s
-------
(s+1)^2
produces the same transfer function built in the TF example, but the representation is now
ZPK. This example shows a more complicated ZPK model.
Zero/pole/gain:
0.776 s (s-1)
--------------------
(s+1) (s+3) (s+0.28)
pzmap
Compute pole-zero map of LTI models
pzmap(sys)
pzmap(sys1,sys2,...,sysN)
[p,z] = pzmap(sys)
Description:
pzmap(sys) plots the pole-zero map of the
continuous- or discrete-time LTI model sys. For
SISO systems, pzmap plots the transfer function
poles and zeros. The poles are plotted as x's and the
zeros are plotted as o's.
pzmap(sys1,sys2,...,sysN) plots the pole-zero map
of several LTI models on a single figure. The LTI
models can have different numbers of inputs and
outputs. When invoked with left-hand arguments,
[p,z] = pzmap(sys) returns the system poles and zeros in the column vectors p and z. No plot
is drawn on the screen. You can use the functions sgrid or zgrid to plot lines of constant
damping ratio and natural frequency in the s- or z- plane.
Example
Plot the poles and zeros of the continuous-time system.
( )
Time-interval specification:
To contain the response of the system you can also
specify the time interval to simulate the system to.
For example,
>> t = 0:0.01:10;
>> impulse(H,t)
Or
>> step(H,t)
‘lsim’. When invoked without left-hand arguments, ‘lsim’ plots the response on the screen.
lsim(sys,u,t) produces a plot of the time response of the LTI model sys to the input time
history ‘t’,’u’. The vector ‘t’ specifies the time samples for the simulation and consists of
regularly spaced time samples.
T = 0:dt:Tfinal
( )
First generate the square wave with gensig. Sample every 0.1 second during 10 seconds:
>>[u,t] = gensig(‘square’,4,10,0.1);
Transfer function:
2 s^2 + 5 s + 1
s^2 + 2 s + 3
>> lsim(H,u,t)
Exercise 1:
Using MATLAB plot the pole zero map of the above system
Exercise 2:
( )
( )
( )
( )
Exercise 3:
A system has a transfer function
( ) ( ⁄ )( )
( )
Plot the response of the system when R(s) is a unit impulse and unit step for the
parameter z=3, 6 and 12.
Exercise 4:
Consider the differential equation ̈ ̇ where ( ) ̇( ) and
( ) is a unit step. Determine the solution analytically and verify by co-plotting the
analytical solution and the step response obtained with ‘step’ function.
Prepared by
Manmohan Singh
Associate Professor, EIE
Objective: The objective of this exercise will be to learn commands in MATLAB that
would be used to reduce linear systems block diagram using series, parallel and feedback
configuration.
List of Equipment/Software
Following equipment/software is required:
MATLAB
Category Soft-Experiment
Deliverables
A complete lab report including the following:
Series configuration: If the two blocks are connected as shown below then the blocks are
said to be in series. It would like multiplying two transfer functions. The MATLAB
command for the such configuration is “series”.
Example 1: Given the transfer functions of individual blocks generate the system transfer
function of the block combinations.
Parallel configuration: If the two blocks are connected as shown below then the blocks
are said to be in parallel. It would like adding two transfer functions.
Example 2: For the previous systems defined, modify the MATLAB commands to obtain the
overall transfer function when the two blocks are in parallel.
Feedback configuration: If the blocks are connected as shown below then the blocks are
said to be in feedback. Notice that in the feedback there is no transfer function H(s) defined.
When not specified, H(s) is unity. Such a system is said to be a unity feedback system.
The MATLAB command for implementing a feedback system is “feedback” as shown below:
When H(s) is non-unity or specified, such a system is said to be a non-unity feedback system
as shown below:
Example 3: Given a unity feedback system as shown in the figure, obtain the overall transfer
function using MATLAB:
Poles and Zeros of System: To obtain the poles and zeros of the system use the MATLAB
command “pole” and “zero” respectively as shown in example 5. You can also use MATLAB
command “pzmap” to obtain the same.
Example 5: Given a system transfer function plot the location of the system zeros and poles
using the MATLAB pole-zero map command.
For example:
1 1 s2 1 s 1 s 1
Given G1 ; G2 ; G3 2 ; G4 ; H1 ; H2 2
( s 10) ( s 1) ( s 4s 4) ( s 6) ( s 2)
; H 3 1 (Reference: Page 113, Chapter 2, Text: Dorf.)
MATLAB solution:
Instruction: Please refer to Section 2.6 and Section 2.2 in Text by Dorf.
Exercise 3: A satellite single-axis altitude control system can be represented by the block
diagram in the figure given. The variables ‘k’, ‘a’ and ‘b’ are controller parameters, and ‘J’ is
the spacecraft moment of inertia. Suppose the nominal moment of inertia is ‘J’ = 10.8E8, and
the controller parameters are k=10.8E8, a=1, and b=8.
a. Develop an m-file script to compute the closed-loop transfer function
( ) ( ) ( ).
b. Compute and plot the step response to a 10o step input.
c. The exact moment of inertia is generally unknown and may change slowly with time.
Compare the step response performance of the spacecraft when J is reduced by 20%
and 50%. Discuss your results.
R(s)
+ G(s)
Y(s)
-
H(s)
Prepared by
Manmohan Singh
Associate Professor, EIE
𝑑𝑇 1
𝜃=𝐶 + ( × 𝑇)
𝑑𝑡 𝑅
with the initial condition T(t = 0) = 𝑇𝑎𝑚𝑏 . Now, taking the Laplace transform with zero initial
condition
𝑇(𝑠) 𝑅
=
𝜃(𝑠) 1 + 𝑠𝐶𝑅
An analogous electrical network and block diagram may be drawn as in fig. 2 defined by the
equation
𝑑𝑉 𝑉
𝐼=𝐶 +
𝑑𝑡 𝑅
Eq. 1 is an extremely simplified representation of the thermal system under consideration and it
gives rise to transfer function of the first order and type zero. Such a system should be easily
controlled in the closed loop. Difficulties are however faced in the system due to the following
reasons:
a) The temperature rise in response to the heat input is not instantaneous. A certain amount
of time is needed to transfer the heat by convection and conduction inside the oven. This
requires a delay or transportation lag term, exp(-sT1), to be included in the transfer function,
where T1 is the time lag in seconds.
b) Unlike the equivalent electrical circuit of Fig. 2, the heat input in the thermal system cannot
have a negative sign. This means that although the rate of temperature rise would depend
on the heat input, the rate of temperature fall would depend on thermal resistance R. The
conventional analysis methods then become inapplicable.
c) Referring to the closed loop oven control system of fig. 3, it may be seen that in the steady
state the error 𝑒𝑠𝑠 is given as
𝑇𝑟𝑒𝑓
𝑒𝑠𝑠 = lim (𝑇𝑟𝑒𝑓 − 𝑇) =
𝑡→∞ (1 + 𝐴𝑅)
3.2 Controller
Basic control actions commonly used in temperature control systems are
• ON-OFF or relay
• Proportional
• Proportional-Integral
• Proportional-Integral-Derivative
These are described below in detail.
a) ON-OFF or relay type controllers, also referred to as two position controllers, consist of a
simple and inexpensive switch/relay and are, therefore, used very commonly in both
industrial and domestic control systems. Typical applications include air-conditioner and
refrigerators, ovens, heaters with thermostat. Solenoid operated two position valves are
commonly used in hydraulic and pneumatic systems. The basic input-output behavior of
this controller is shown in Fig. 4. The two positions of the controller are M1 and M2, and
H is the hysteresis or differential gap.
The hysteresis is necessary, as it enables the controller output to remain at its present value
till the input or error has increased a little beyond zero. Hysteresis helps in avoiding too
frequent switching of the controller, although a large value results in greater errors. The
response of a system with ON-OFF controller is shown Fig. 5. Describing function
technique is a standard method for the analysis of non-linear systems, for instance, one
with an ON-OFF controller.
b) Proportional controller is simply an amplifier of gain Kp which amplifies the error signal
and passes it to actuator. The noise, drift and bias currents of this amplifier set the lower
limit of the input signal which may be handled reliably and therefore decide the minimum
possible value of the error between the input signal and output. Also, the saturation
characteristics of this amplifier sets the linear and non-linear regions of its operation. A
typical proportional controller may have an input-output characteristic as in Fig. 6. Such
controller gives non-zero steady state error to step input for a type-0 system as indicates
earlier. The proportional (P) block in the system consists of a variable gain amplifier having
a maximum value, Kpmax of 20.
The integral (I) block in the present system is realised with the circuit shown in
fig. 8 and has a transfer function
1 𝐾
𝐺𝑟 (𝑠) = = 𝐼
41𝑠 𝑠
The integral gain is therefore adjustable in the range 0 to 0.024 (approx.). Due to the
tolerance of large capacitance’s, the value of KI is approximate.
d) Proportional-Integral-Derivative (PID) controller: Mathematical equations governing the
operation of this controller is as
𝑡
𝑑𝑒(𝑡)
𝑚(𝑡) = 𝐾𝑝 𝑒(𝑡) + 𝐾𝐼 ∫ 𝑒(𝑡)𝑑𝑡 + 𝐾𝐷
0 𝑑𝑡
𝑡
1 𝑑𝑒(𝑡)
= 𝐾𝑝 𝑒(𝑡) + ∫ 𝑒(𝑡)𝑑𝑡 + 𝑇𝐷
𝑇𝐼 0 𝑑𝑡
So that in the Laplace transform domain,
𝑀(𝑠) 1
= (𝐾𝑝 + 𝑇𝐷 𝑠 + )
𝐸(𝑠) 𝑇𝐼 𝑠
A simple analysis would show that the derivative block essentially increases the damping ratio of
the system and therefore improves the dynamic performance by reducing overshoot. The PID
controller therefore helps in reducing the steady state error with an improvement in the transient
response.
The derivative (D) block in this system is realized with the circuit of fig. 9. This has a transfer
function
𝐺𝐷 (𝑠) = 19.97𝑠 (𝑎𝑝𝑝𝑟𝑜𝑥. )
The derivative gain is therefore adjustable in the range 0 to 20 approximately. Again, the
approximation is due to the higher tolerance in the values of large capacitances.
PID controller is one of the most widely used controller because of its simplicity. By adjusting
its coefficients 𝐾𝑝 , 𝐾𝐷 (or 𝑇𝐷 ) 𝑎𝑛𝑑 KI (or T1) the controller can be used with a variety of systems.
The process of setting the controller coefficients to suit a given plant is known as tuning. There
are many methods of ‘tuning’ a PID controller. In the present experiment, the method of Ziegler-
Nichol has been introduced which is suitable for the oven control system, although better methods
are available and may be attempted.
Temperature Measurement
The oven temperature can be sensed by a verity of transducers like thermistor, thermocouple, RTD
and IC temperature sensors. In the present setup, the maximum oven temperature is around 90°c
which is well within the operating range of IC temperature sensor like AD590. Further, these
sensors are linear and have a good sensitivity. The time constant of the sensor has however been
neglected in the analysis since it is insignificant compared with the oven time constant.
Procedure
A variety of experiments may be conducted with the help of this unit. The principal advantage of
the unit is that all power sources and metering are built-in and needs only a watch to be able to
note down the temperature readings at precise time instants. After each run the oven must be cooled
to nearly the room temperature, which may take about 15-20 minutes. This would limit the number
of runs to about four in a usual laboratory class. The experiments suggested could be completed in
about 6-8 hours.
Identification of oven parameters
Plant identification is the first step before an attempt can be made to control it. In the present case,
the oven equations are obtained experimentally from its step response as outlined below:
In the open loop testing, the oven is driven through P- amplifier set to a gain of 10. The input to
this amplifier is adjustable through reference potentiometer. This input can be seen on digital
display, so that when you set 5.0°C, the input to proportional amplifier is 50mV and its output is
0.5V.
• Keep switch S1 to ‘WAIT’, S2 to ‘SET’ and open ‘FEEDBACK’ terminals.
• Connect P output to the driver input and switch ON the unit.
• Set P potentiometer to 0.5 which gives KP=10. Adjust reference potentiometer to read 5.0
on the DVM. This provides an input of 0.5V to the driver.
• Put switch S2 to the ‘MEASURE’ position and note temperature readings every 15 sec, till
the temperature becomes almost constant.
• Plot the temperature-time curve on a graph paper. Calculate T1 and T2 and hence write the
transfer function of the oven including its driver.
ON-OFF controller
• Keep switch S1 to ‘WAIT’ position and allow the oven to cool to room temperature. Short
‘FEEDBACK’ terminals.
• Keep switch S2 to the ‘SET’ position and adjust reference potentiometer to the desired
output temperature, say 60.0°C, by seeing on the digital display.
• Connect R output to the driver input. Outputs of P, D and I must be disconnected from
driver input. Select ‘HI’ or ‘LO’ value of hysteresis. (First keep the hysteresis switch to
‘LO’)
• Switch S2 to ‘MEASURE’ and S1 to ‘RUN’ position. Read and record oven temperature
every 15/30 sec., for about 20 minutes.
• Plot a graph between temperature and time and observe the oscillations in the steady state.
Note down the magnitude of oscillations.
• Repeat above steps with the ‘HI’ setting for hysteresis and observe the rise time, steady -
state error and percent overshoot.
Proportional controller
Ziegler and Nichols suggest the value of KP for P-Controller as:
1 𝑇
𝐾𝑃 = (𝐾) × 𝑇1
2
• Starting with a cool oven, keep switch S1 to ‘WAIT’ position and connect P output to the
driver input. Keep R, D and I outputs disconnected. Short ‘FEEDBACK’ terminals.
• Set P potentiometer to the above calculated value of KP, keeping in mind that the maximum
gain is 10.
• Plot the observations on a linear graph paper and observe the rise time, steady-state error
and percent overshoot.
Proportional-Integral controller
Ziegler and Nichols suggested the value of KP and K1 for P-I controller as
0.9 𝑇1 1 1
𝐾𝑃 = ( ) × ; 𝑇1 = = 3.3𝑇2 ; 𝑔𝑖𝑣𝑖𝑛𝑔 𝐾1 =
𝐾 𝑇2 𝐾1 3.3𝑇2
• Starting with a cool oven, keep switch S1 to ‘WAIT’ connect P and I outputs to driver input
and disconnected R and D outputs. Short feedback terminals.
• Set P and I potentiometers to the above values of KP and K1 respectively, keeping in mind
that the maximum value of KP is 20 and that of K1 is 0.024.
• Select and set the desired temperature to say 60.0°C.
• Keep switch S1 to ‘RUN’ position and record temperature readings as before.
• Plot the response on a graph paper and observe the steady state error and percent overshoot.
Proportional-Integral-Derivative controller
Ziegler and Nichols suggested the value of KP and KD and K1 for tis controller as
0.9 𝑇1 1 1
𝐾𝑃 = ( ) × ; 𝑇1 = = 3.3𝑇2 ; 𝑔𝑖𝑣𝑖𝑛𝑔 𝐾1 =
𝐾 𝑇2 𝐾1 3.3𝑇2
• Starting with a cool oven, keep switch S1 to ‘WAIT’ connect P, D and I outputs to driver
input. Keep R output disconnected. Short feedback terminals.
• Set P, I and D potentiometers according to the above calculated values of KP, K1 KD
keeping in mind that the maximum value for these are 20, KP is 20, 0.024 and 23.5
respectively.
• Select and set the desired temperature, say 60.0°C.
• Switch S1 to ‘RUN’ and record temperature readings.
• Plot the response on a linear graph paper and observe the rise time, steady state error and
percent overshoot.
• Compare the results of the various controller options.
Further experimentation
The controller settings suggested by Ziegler and Nichols are not optimum. It is therefore possible
to experiment with other methods available in the literature or to attempt trial and error settings.
Students at the master’s level may attempt to calculate theoretically the optimum values of KP ,
KD and K1 based on some performance criterion and then verify the results on the setup. It may be
convenient to use a pen recorder or X-Y recorder for such experiments. A terminal has been
provided at the back of the unit for this purpose with a sensitivity of 10mV/°C.
Additional laboratory work may involve modification of the oven parameters and then repeating
the basic experiments. This may be done simply by putting thermal load into the oven, thus
increasing its thermal capacitance or by providing insulation to the oven thus increasing its thermal
resistance. These may also act as disturbance inputs to the oven while it is operating under steady-
state conditions, and their effect may be studied.
Results
a) Open loop measurement:
b) Calculation of KP, KI, KD:
1. P Control: KP
2. PI Control: KI
3. PID Control: KD
c) Results:
Typical Readings:
Time Temp. (degree c) Set point = Time (secs) Temp. (degree c) Set point =
(secs) 30.0 room temp=23.0 30.0 room temp=23.0
0 23
15 25.2
30 26.6
45 28.1
60 29.1
75 29.6
90 29.9
105 30.0
120 30.0
135 29.9
150 29.8
165 29.7
180 29.5
195 29.3
210 29.2
225 29.0
240 28.8
255 28.7
270 28.7
285 28.6
300 28.6
315 28.6
330 28.6
345 28.6
360 28.6
375 28.6
390 28.6
405 28.6
420 28.6
435 28.6
450 28.6