How to Correctly Calculate the Integral and Derivative Gains in Pid Settings

Properly calculating the integral and derivative gains in PID settings is essential for optimal control system performance. Accurate tuning ensures stability, responsiveness, and minimal oscillation. This article provides a straightforward approach to determine these gains effectively.

Understanding PID Components

The PID controller consists of three main components: proportional, integral, and derivative. The proportional gain (Kp) addresses the current error, the integral gain (Ki) accounts for accumulated errors over time, and the derivative gain (Kd) predicts future errors based on the current rate of change.

Calculating the Integral Gain (Ki)

The integral gain is calculated based on the desired response time and the proportional gain. A common method involves using the ultimate gain (Ku) and the oscillation period (Pu) obtained from system testing.

The formula is:

Ki = 0.1 × Ku / Pu

Adjust the factor (0.1) based on system response; smaller values result in less aggressive correction.

Calculating the Derivative Gain (Kd)

The derivative gain helps dampen oscillations and improve stability. It is often calculated using the same test data as Ku and Pu.

The typical formula is:

Kd = 0.1 × Ku × Pu

Again, adjust the factor (0.1) to fine-tune system response.

Summary of Tuning Steps

  • Determine the ultimate gain (Ku) and oscillation period (Pu) through system testing.
  • Calculate Ki using Ki = 0.1 × Ku / Pu.
  • Calculate Kd using Kd = 0.1 × Ku × Pu.
  • Implement the gains and observe system response.
  • Adjust the factors as needed for optimal performance.