Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Designing and Implementing a Proportional Controller with OP AMP Circuits - Prof. Carl J. , Lab Reports of Engineering

Theoretical background and practical instructions for designing and implementing a proportional controller using op amp circuits in the context of a laboratory experiment (lab38a2r) for the et 438a continuous and digital control course. It covers the concept of proportional control, the design of a proportional controller using an op amp circuit, and the measurement and analysis of the steady-state and transient response of the controller.

Typology: Lab Reports

2009/2010

Uploaded on 02/24/2010

koofers-user-rbi-1
koofers-user-rbi-1 🇺🇸

10 documents

1 / 13

Toggle sidebar

Related documents


Partial preview of the text

Download Designing and Implementing a Proportional Controller with OP AMP Circuits - Prof. Carl J. and more Lab Reports Engineering in PDF only on Docsity! Fall 2007 Lab38a2r.doc ET 438a Continuous and Digital Control Laboratory 2 Proportional Control Action Objective: Construct a proportional controller using OP AMP circuits and measure its steady-state and transient response. View the response of a first order process to proportional control action. Theoretical Background Automatic control has two principle functions: to maintain control output as close as possible to the desired setpoint value while the system is subject to outside disturbances (regulator action), and to respond as quickly as possible to changes in the setpoint value. Figure 1. Feedback Control System. Figure 1 shows block diagram of a typical control system. This is a negative feedback control system because the error signal is produced by subtracting the output from the setpoint value at the summing node. Another characteristic of this type of feedback is that the output is measured after the changes are made in the system under control, also called the plant. Sensors and signal conditioning may be used to transform a mechanical variable (e.g. flow, speed, pressure, temperature) into electrical signals. In some cases such as OP AMPs, the signals may already be electrical quantities such as voltage or current. An error signal is produced by taking the difference between the desired value and the measured value. This is the control error signal. Ideally this signal should be zero after the setpoint has been changed or an external disturbance has occurred on the process. If the control was initially in a balanced state the system will come into a new balanced condition after the changes. The controller block takes the error signal and modifies it to produce an output signal called the manipulated variable. This output signal is used Fall 2007 Lab38a2r.doc 2 to control some element in the final process. The final control element is the actual apparatus that modifies the process. An example of this is a dc motor speed controller where: Control variable = motor speed Sensor/signal conditioning = speed transducer Set-point = desired speed Final control element = variable dc power supply Control variable = motor terminal voltage Manipulated variable = power supply voltage The controller can take several forms. The simplest mode of control is to amplify the error signal with a constant gain, Kp, and use this as the manipulated variable. This is called proportional control. Figure 2 shows the input output response of a practical proportional controller. All practical devices have maximum and minimum limits on output. The final control elements, such as valves and heaters, have limits on flow and temperature. The proportional controller will also have limited output. The controllable range will be between these limits. This range is called the proportional band. An OP AMP circuit will be used to design the proportional controller for this lab. For OP AMPs, controller limits will be the saturation voltage of the IC used in circuit construction. The proportional control band is inversely proportional to the gain of the proportional controller. The gain of the controller is defined as tMeasuremen - SP Output = Kp ∆ ( 1) Figure 2. Proportional Controller Input/Output characteristic. Fall 2007 Lab38a2r.doc 5 multiplied by the proportional gain, Kp. The result is then added to the bias signal Cb to form the output Co. Kp e + + Cb Co Figure 5. Block Diagram Equivalent of a Proportional Controller. An inverting summing amplifier can implement this relationship. Figure 6 shows a schematic for an OP AMP implementation of a proportional controller. The performance of this circuit was investigated in Lab 1. The input/output relationships for the inverting summing amplifier are given by: eV C = V R R K = R R C + e K = C V R R + V R R - = V 1 bb 2 f p 1 f bpo b 2 f 1 1 f c = • •       •• In this formulation, the bias value is determined by a constant input voltage and a gain set by the values of the resistors Rf and R2. The proportional gain is set by the ratio of Rf and R1. Selecting values for Rf and Vb gives the control designer the ability to compute the values of R1 and R2 for the desired values of Kp and Cb. R2 R1 Rf Rin Rf1 Vc Vb V1 U1 U2 Vo Figure 6. Proportional Controller Implementation Using OP AMP Circuits. Fall 2007 Lab38a2r.doc 6 When the inverting summing amplifier is used to implement proportional control, the output will be the negative of the desired control response. To produce the correct sign on the control output, an inverting OP AMP circuit should be added to the controller design To simplify the design process, let Rf=R2. This gives the gain value on Vb a value of -1. This will make the bias voltage value, Vb, equal to the value of Cb in the proportional control equation and simplify the calibration of the circuit. The gain of U2 should be set to -1 by making Rf1=Rin. A voltage divider circuit or a potentiometer makes an excellent source for the bias voltage. Process Modeling For this lab, the process will be represented by a first order RC circuit. Figure 7 shows this schematic for the simulated process or plant response. The input to this circuit will be the voltage of a proportional controller and the output is the control variable. The RC circuit responds to a change in voltage input with an exponential output response. The speed at which the circuit responds is determined by the RC time constant. Figure 7. Process Plant for Lab 2. First Order Low Pass Filter. The mathematical model of this circuit is shown below. b e V = V a )e - (1 V = V /t- c /-t c τ τ ( 7) Equation 7a is the response to an instantaneous increase to Vin and equation 7b is the response to an instantaneous decrease. Where τ = RC t = time Fall 2007 Lab38a2r.doc 7 This response is shown graphically in Figure 8. When a rapid change in the input to a control system is made the control output will respond in a manner that is determined by the time response of the plant under control and the controller. For proportional control, the response of the OP AMPs is many times faster than the processes under control, so the response to rapid changes, also know as step-response, is determined by the time constant of the plant. Figure 8 . Control Response to Step Changes in the Setpoint Value. Control System Performance Measures The following terms are used to describe the operation and performance of control systems. Process Lag -The time it takes for a process to reach a new value after the input changes. This is related to the time constants of the controller and the plant under control. Process Load - The amount of control output needed to keep the process in balance. Steady-state error - The difference between the setpoint value and the actual control output after the controller output has stabilized. In a proportional only controller, the steady-state error of the controller is inversely related to the controller gain, Kp. As the value of Kp is increase, the value of steady- state error decreases. The value of steady-state error can never reach zero in proportional only control, because this would require and infinite gain. This is a limitation of proportional control. Fall 2007 Lab38a2r.doc 10 Design Project- Proportional Control 1.) Design the appropriate circuits to implement the proportional controller shown in the block diagram below. The time constant of the plant should be initially set for 2 seconds. Use a 100 kΩ resistor and an appropriately sized capacitor to set this value. Set the bias value of the control to 6 Vdc by grounding the other controller input. Set the initial proportional gain such that the controller has a proportional band of 100%. With the feedback signal from the scaling voltage divider disconnected, the following values should be found for a correctly operating system. Vsp (Vdc) Vd (Vdc) 1 Ve (Vdc) Vc (Vdc) Vo (Vdc) 5.0 5.0 0.0 6.0 .6.0 0.0 2.5 -2.5 3.5 .3.5 2.5 0.0 2.5 8.5 .8.5 5.0 0.0 5.0 11.0 3 .11.0 2,3 1.This is the input to the inverting input of the difference amp with the feedback disconnected. Use a 5 volt supply to simulate this. 2.Note: if an electrolytic capacitor is used to make the RC circuit, a negative voltage could cause it to fail dramatically.(It will explode!) Connect a 1k resistor in series with a diode (1N4001) to the output of the proportional controller to prevent this. See sketch below 3. these values will be zero if the circuit above is used on the controller output. Fall 2007 Lab38a2r.doc 11 Close the control loop by connecting the scaling circuit output to the difference amplifier inverting input. Test the controller by changing the setpoint and measuring the Vsp, Ve, Vc, Vd, and Vo for each value of the setpoint. The output should track the feedback signal, Vd, with a difference between the two values. With Kp = 1 record the voltage values in Table 1 and save the data for the report. Compute the theoretical value of voltages Ve and Vd for each value of Vsp in the table using the equations from the previous section. Compare the difference between the theoretical error voltage and the measured error voltage. Repeat this procedure for Kp = 100. Enter the results in Table 2 for future use. Make two graphs that plot the setpoint voltage on the x-axis and the error voltage on the y-axis. Each graph should have two plots: the theoretical and measured error voltage. Include these in the report. Comment on the performance of the controller compared to the theoretical performance. 2.) Fix the value of the setpoint to 5 volts and change the proportional gain of the controller to these values: Kp = 1, 2, 5, 10, 20, 50, 100, 200. Measure the values of Ve for each value of gain. Enter these values into Table 3. Plot these values on a semilog graph with the values of Kp on the log x-axis and the error on the y-axis. Comment on the effects of changing the gain of steady-state error in the report. Use the equations from the previous section to compute the theoretical values of error voltage at each value of Kp and include them in the report. Construct a graph the plots the theoretical values and the measured values on the same semilog graph. 3.) Change the time constant of the plant to 0.002 seconds by changing the size of the capacitor. Set the proportional gain to 5 and use a TTL pulse set to 50 Hz instead of the setpoint input. View the input and Vo with a duel channel scope and note the response. Measure the time constant of the plant and the steady-state error using the scope. Include this information in the lab report. Fall 2007 Lab38a2r.doc 12 Table 1 - Proportional Controller Voltage Readings Kp = 1 Vsp (Vdc) Vd (Vdc) Ve (Vdc) Vc (Vdc) Vo (Vdc) 5.0 V 4.5 V 4.0 V 3.5 V 3.0 V 2.5 V 2.0 V 1.5 V 1.0 V 0.5 V 0.0 V Table 2 - Proportional Controller Voltage Readings Kp = 100 Vsp (Vdc) Vd (Vdc) Ve (Vdc) Vc (Vdc) Vo (Vdc) 5.0 V 4.5 V 4.0 V 3.5 V 3.0 V 2.5 V 2.0 V 1.5 V 1.0 V 0.5 V 0.0 V
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved