P, PI, and PID Controllers: Course - Control Engineering
P, PI, and PID Controllers: Course - Control Engineering
1.P (Proportional) controller adjusts output based on the current error, providing
faster response but leaving steady-state error.
The P controller generates an output signal that is proportional to the error e(t),
which is the difference between the desired setpoint and the actual process
variable.
• Control Law:
Laplace transform-
where:
• u(t) is the controller output (control signal).
• Kp is the proportional gain.
• e(t)= setpoint−process variable is the error.
Behavior:
A higher Kp results in a more aggressive response but can lead to oscillations or instability.
A pure P controller often leaves a steady-state error, especially in systems with disturbances or
non-linearities.
Advantages:
1.Simple and Easy to Implement
2.Fast reaction to changes in error
Disadvantages:
Steady-State Error:
A major drawback of the P controller is that it cannot eliminate steady-state error completely. As
the proportional gain increases, the system might reduce the error, but it cannot drive the error to
zero unless the gain is extremely high (which can cause other issues).
Oscillations at High Gain:
Increasing the proportional gain to reduce steady-state error can cause oscillations or even
instability in the system, leading to undesirable performance or system damage.
2. PI Controller (Proportional-Integral Controller)
The PI controller combines the proportional control with integral action. The integral
component sums up the past errors over time to eliminate steady-state error.
Control Law:
Laplace transform-
where:
Ki is the integral gain.
Ti is integral time
Behavior:
• The integral term eliminates the steady-state error by adjusting the output based on
the accumulated error over time.
• PI controllers are often used where precision is important, but excessive oscillation is
undesirable.
Advantages:
Disadvantages:
1.May lead to slower response and overshoot if not tuned properly.
2.Can lead to instability if the integral term is too strong.
overshoot - when the output of a system exceeds its final value or target.
3. PID Controller (Proportional-Integral-Derivative Controller)
The PID controller combines proportional, integral, and derivative actions. The
derivative term provides a damping effect and anticipates future errors, improving
system stability and response time.
Control Law:
where:
• Kd is the derivative gain.
Behavior:
• The proportional term corrects the present error.
• The integral term eliminates the past error.
• The derivative term predicts future error and helps reduce overshoot and
oscillations.
Advantages:
•Most versatile controller, providing fast response, reducing steady-state error, and damping oscillations.
Disadvantages:
•If not tuned properly, it can lead to excessive noise sensitivity (especially in the derivative term).
Controller Control Action Advantages Disadvantages
Eliminates steady-state
PI Controller Proportional + Integral Slower, risk of overshoot
error
PI Controller is used where steady-state accuracy is critical, like in temperature or pressure control
systems.
PID Controller is widely used in complex systems like robotics, motor speed control, and process
industries where precision and stability are vital.
Determine the stability of a control system using a Proportional (P) controller
with this plant transfer function.
transfer function: P(s) = 1 / (s - 1)
has a pole at s = 1. This indicates that the system is inherently unstable without a
controller.
C(s) = Kp
G(s) = Kp / (s - 1 + Kp)
A system is stable if all poles of its closed-loop transfer function have negative real
parts.
The pole of G(s) is at
s = 1 - Kp.
Interpretation:
Stability:
The system is stable if both poles have negative real parts.
The condition Kp > 1 ensures that the real part of both poles is negative, making
the system stable.
This means the controller must have a proportional gain greater than 1 to stabilize
the system.
Damping:
The damping behavior of the system is determined by the relationship between Kp and Ki.
Underdamped: The system will oscillate before settling to the desired setpoint.
Critically Damped: The system will return to the desired setpoint as quickly as possible without
oscillating.
Overdamped: The system will return to the desired setpoint slowly and without oscillations.