AAS LLC USA: Explain how PI controllers are tuned

uning a PI controller is the process of finding the optimal values for the proportional gain (Kp​) and the integral gain (Ki​) to achieve a desired system response. The goal is to get a fast response without excessive overshoot or instability, while also eliminating any steady-state error.

There are several methods for tuning PI controllers, ranging from simple trial-and-error to more systematic, model-based approaches.


1. Manual Tuning (Trial-and-Error)

This is a common method, especially for those with experience, because it relies on an intuitive understanding of what each term does. The general process is:

  1. Start with the Integral Term at Zero: Begin with a P-only controller by setting the integral gain (Ki​) to zero or a very small value.
  2. Tune the Proportional Term: Gradually increase the proportional gain (Kp​) until the system’s response is fast and aggressive, but not to the point where it becomes unstable and starts to oscillate continuously. If the system oscillates, back off on the Kp​ value.
  3. Tune the Integral Term: With a suitable Kp​ value, introduce and gradually increase the integral gain (Ki​). The goal is to find a Ki​ value that eliminates the steady-state error without causing excessive overshoot or oscillations.

2. The Ziegler-Nichols Method

This is a more systematic, rule-based method that provides a good starting point for tuning. It involves two main steps:

  1. Find the Ultimate Gain (Ku​) and Period (Pu​): With the integral term set to zero, increase the proportional gain (Kp​) until the system’s output starts to oscillate continuously with a constant amplitude. The gain at which this happens is called the ultimate gain (Ku​), and the period of the oscillations is the ultimate period (Pu​).
  2. Apply the Tuning Rules: Once you have Ku​ and Pu​, you can use the Ziegler-Nichols tuning rules to calculate the initial values for your PI controller:
    • Kp​=0.45∗Ku​
    • Ki​=Kp​/(Pu​/1.2)

While this method provides a quick way to get a functional controller, the resulting performance may not be optimal and often requires further fine-tuning.


3. Model-Based Methods

For more complex systems, engineers often use a mathematical model of the process to analytically calculate the optimal PI gains.

  • Process Reaction Curve: This method involves introducing a “step” change to the system’s input (e.g., a sudden increase in motor voltage) and recording the output’s response over time. The data from this “process reaction curve” can then be used to calculate a mathematical model of the system.
  • Internal Model Control (IMC): Once a process model is created, methods like IMC can be used to derive the PI tuning parameters. This approach allows for a more robust controller that is less sensitive to model inaccuracies.
  • Software Tools: Many engineering software packages (e.g., MATLAB/Simulink) have built-in auto-tuning tools.These tools can automatically identify a model for a system and then calculate and suggest optimal PI gains based on the desired performance characteristics.

The specific method used depends on the application, whether the system can be taken offline for testing, and the level of precision required.

This video provides a practical explanation of how to tune a PID (Proportional-Integral-Derivative) controller, which is very similar to a PI controller. How to Tune a PID Controller – YouTube

How to Tune a PID Controller – YouTube

RealPars · 899K views

Fediverse Reactions

Leave a comment