(Rev) Lab Activity 3
(Rev) Lab Activity 3
1 Introduction
A proportionalintegralderivative controller (PID controller) is a generic control loop feedback
mechanism (controller) widely used in industrial control systems. A PID controller attempts to correct
the error between a measured process variable and a desired set point by calculating and then
outputting a corrective action that can adjust the process accordingly and rapidly, to keep the error
minimal.[1]
2 Pre-Laboratory Activities
Figure 1 shows the complete circuit diagram of the PID controller. The circuit makes use of op amps to
implement the three main elements of the PID controller, namely, the proportional, integral, and
derivative controllers. Likewise, op amps are used for the buffers, inverter, summer, and error detector
circuits.
2. Suppose that the proportional, integral, and derivative (plus inverter) controllers have the
same input Vin, derive a single equation for the transfer function of the PID controller after the
effect of the three elements have been summed up.
3. What is the general form of the PID control law? Compare it with the equations you have just
derived.
3 Materials
The following components will be used for this activity:
8 LM741 operational amplifiers
1 4.7-k resistor
3 100-k potentiometers
1 220- resistor
2 1-M potentiometers
1 10-F capacitor
10 100-k resistors
1 1-F capacitor
Other materials and equipment to be used are the following:
breadboard
oscilloscope
digital multimeter
power supply
wires & probes
4 Set Point and Process Variable Voltage
Construct the circuit shown in Fig. 2 twice, one for the set point voltage and another for the process
variable. Place +15-V and -15-V power supplies, respectively, to the positive and negative voltage
supplies of the op amp. (The same goes for all the other op amps in this activity.) Mind the placement
of the circuits (and the succeeding ones) on the breadboard to anticipate the construction of the
complete circuit, as shown in Fig. 1.
The voltage at the output of the op amps should go to zero as the adjustment knob is turned
counterclockwise. On the other hand, the voltage should go to +15 V if the adjustment knob is turned
clockwise.
7 Derivative Controller
Assemble the derivative controller as shown in Fig. 6. Unlike the proportional and integral control elements,
the derivative controller must have its input inverted first before being fed to the circuit. Connect the
potentiometer such that its resistance increases as you turn the knob clockwise.
9 Post-Lab Questions
1. What type of op amp configuration does the error op amp implement? How about the
proportional circuit?
2. What are the theoretical and actual values of the closed-loop voltage gain in Part 5 of the
experiment? How do you account for the discrepancies in the theoretical and experimental
values, especially approaching the high theoretical gains?
3. Why does increasing the integral resistance decrease the gain of the integral element? How
does the value of the integral resistance affect the behavior of the integral output?
4. Why do you need to invert the signal before it is input to the derivative controller?
5. How does the rate of varying the process variable affect the differentiator output?
6. From the basic operation of the proportional, integral, and derivative elements, explain their
primary role in maintaining the function of the PID controller. How does each of them
contribute to achieving the desired set point?
10 References
[1]
[2]
J.P. Thrower, S. Kiefer, K. Kelmer, and L. Silverberg. Basic Experiments in PID Control for Nonelectrical Engineers. May 1998.