Lab11 - Autotuning
Lab11 - Autotuning
Lab11 - Autotuning
MT311
Faculty of Engineering
Mechatronics Department
Lab11:
PID Controller and Auto-Tuning
Eng Mohammed Daba
Quiz-3
Questions:
For the transfer function that shown in the figure, using root-
locus method, design the controller with the following design
criteria:
- Overshoot less than 10%
- Rise time less than 2 seconds
- Settling time less than 10 seconds
- Steady-state error less than 2%
Note:
- Use a lead-lag Compensator
- Or use PID Controller (pole , two zeros)
PID Controller and Auto-Tuning
PID Control
A PID controller continuously calculates an error value e(t) as the difference between a
desired setpoint (SP) and a measured process variable (PV) and applies a correction
based on proportional, integral, and derivative terms (denoted P, I, and D respectively)
which give the controller its name.
A PID controller is a control loop feedback mechanism widely used in industrial control
systems and a variety of other applications requiring continuously modulated control.
PID Control in MATLAB
This method applies if the response to a step input exhibits an S-shaped curve.
The S-shaped curve may be characterized by two constants, delay time (L) and time
constant (T).
Ziegler-Nichols Rules for Tuning PID Controllers
First Method
The delay time and time constant are determined by drawing a tangent line at the
inflection point of the S-shaped curve and determining the intersections of the tangent line
with the time axis and line c(t)=K
Ziegler-Nichols Rules for Tuning PID Controllers - MATLAB
First Method
- Example
Ziegler-Nichols Rules for Tuning PID Controllers
Second Method
In the second method, we first set Ti = oo and Td = 0. Using the proportional control action
only increase K, from 0 to a critical value Kcr at which the output first exhibits sustained
oscillations.
If the output does not exhibit sustained oscillations for whatever value K, may take, then this
method does not apply.
Ziegler-Nichols Rules for Tuning PID Controllers
Second Method
The critical gain Kcr, and the corresponding period Pcr, are experimentally determined.
Ziegler and Nichols suggested that we set the values of the parameters K,Ti and Td
according to the formula shown in Table.
Ziegler-Nichols Rules for Tuning PID Controllers - MATLAB
Second Method
- Example
Control System Designer App
PWM output.
Low pass filter.
Hardware in Loop - LABVIEW
ARDUINO library in LABVIEW
Arduino
PID library in Arduino
Arduino PID Autotune Library
References
References:
- https://www.mathworks.com/help/index.html
- http://ctms.engin.umich.edu/CTMS/index.php
- Modern Control Engineering, Katsuhiko Ogata
Any Questions ?!