Lab Description
Lab Description
Grading
This lab will count for 10% of your grade. Reports will be graded for accuracy and professionalism.
Problem Statement
1. Perform a doublet test on the system, varying the control output in manual mode. Make a
graph to turn in with the report.
2. From the manual-mode test calculate FOPDT constants (p, Kp, p) fitting the data to the
𝑑𝑥
equation 𝜏𝑝 𝑑𝑡 = −𝑥 + 𝐾𝑝 𝑢(𝑡 − 𝜃𝑝 ).
3. Perform a stability analysis to determine the range of Kc values for which a P-only
controller is expected to go unstable.
4. Obtain PI or PID tuning constants from ITAE and IMC correlations.
5. Use those tuning constants for PI or PID control on the temperature controller, and observe
behavior for step changes in set point above and below the steady-state value.
6. Comment on the performance of the controllers using the calculated constants.
7. Tune the controller by adjusting the constants to improve performance.
8. Derive the form of a first principles model for the relationship between input voltage and
output temperature. There is no need to directly measure all parameters in the model; engineering
judgement is sufficient. A tutorial help session is recorded http://youtu.be/dhV6yGh-iwU?t=4m
9. Simulate the first principles model and compare the results to the data that were collected
during the doublet test. Adjust the parameters in your model to align the model and measured
values.
10. Linearize the adjusted first principles model and compare it to the empirical model.
Comment on the similarities or differences between the two.
1
Setup for the Temperature Control Device
1. Plug in power supply to electrical outlet and USB connection to UO Lab computer
2. Download required files from course website and extract files from zipped archive
3. Open PID_GUI.m from extracted folder (not zipped folder)
4. Input manual values of output voltage to implement either a step, doublet, or PRBS input
signal to the Arduino device. The Enter key is required to implement a change.
6. Retrieve data from the Folder Collected Data. If multiple tests were performed, the data files are
named according to the test time stamp.
2
While it is not necessary to modify the columns that calculate the model mismatch, it may be
necessary to fill down the equations in these columns if the number of data points exceeds the
template default.
Values of 𝐾𝑝 , 𝜏𝑝 , and 𝜃𝑝 can be obtained by either manually changing the values in the
parameters section or using Excel Solver to find the values that minimize either the Sum of
Squared Errors or else the Sum of Absolute Errors.