Controller Design Basics
PID Control and Compensator Design
Overview of Basic Control Elements
The proportional (P), derivative (D), and integral (I) control actions are the fundamental building blocks of feedback controllers. Their combinations — PI, PD, and PID — shape the closed‑loop response in distinct ways.
Proportional control: simple to implement, reduces steady‑state error but cannot eliminate it completely; may not stabilize the system.
Derivative control: adds damping to the transient response, provides greater control over closed‑loop pole locations, improves relative stability.
Integral control: achieves perfect tracking of constant reference inputs and rejects constant disturbances (by adding a pole at the origin, increasing system type).
The choice of controller depends on the trade‑offs between steady‑state accuracy, transient behaviour, stability, and practical realizability.
Proportional Control and Steady‑State Error
Consider a first‑order plant G(s)=s+a0.5 with a>0 (stable). With only proportional gain Kp, the closed‑loop transfer function is:
The steady‑state value for a step reference R(s)=s1 is:
The steady‑state error is ess=1−yss=a+0.5Kpa, which approaches 0 only as Kp→∞.
Why Zero Steady‑State Error Is Impossible with P‑Only
If ess=0 were possible, the controller output u=Kpe would be zero. But to maintain the plant at a non‑zero output, the controller must supply a non‑zero input. This contradiction shows that a finite Kp cannot drive the error to zero for a step reference.
Key takeaway: Proportional control reduces steady‑state error but does not eliminate it. Increasing Kp reduces the error, but practical issues (noise amplification, actuator limits) prevent arbitrarily large gains.
Integral Control
Adding an integrator in the controller (i.e., C(s)=sKi) increases the system type. For a step reference, the type‑one system achieves zero steady‑state error. The controller output is the integral of the error:
Even when e(t)→0, the integral retains a non‑zero value, providing the necessary input to hold the output at the desired reference.
For constant disturbance rejection, the integrator accumulates the error caused by the disturbance and cancels its effect.
Practical Issues with Integral Control
Stability risk: A pole at the origin can make the closed‑loop system marginally stable or even unstable, especially for higher‑order plants.
Integral wind‑up: When the actuator saturates (e.g., limited voltage or force), the error persists, and the integrator continues to accumulate. This causes the controller output to grow very large, delaying recovery once the error direction reverses. The "winding‑up" degrades transient performance.
Sluggish response: For a first‑order plant, adding integral action pulls the dominant closed‑loop poles closer to the origin, making the response slower compared to proportional‑only control.
Example: A plant G(s)=s+31 with proportional control has a root locus that runs along the real axis to −∞. Adding an integrator introduces a pole at s=0; the root locus then becomes two branches that move into the complex plane, causing slower, oscillatory behaviour if the gain is chosen inappropriately.
Derivative Control
The ideal PD controller has the transfer function C(s)=Kp+Kds. In the time domain:
The derivative term anticipates the future error by reacting to its rate of change. This adds damping and pulls the root locus to the left, improving relative stability.
Effect on a second‑order system: Without derivative (just Kp), a plant G(s)=s21 has poles on the imaginary axis for any gain. Adding Kds introduces a zero and a damping term, making the system stabilizable (e.g., underdamped, critically damped, or overdamped).
Realizability and Noise Issues
Improper transfer function: Pure derivative Kds has more zeros than poles — it is non‑causal and cannot be built physically.
Noise amplification: High‑frequency noise (common in measurements) is differentiated, producing large, unwanted control signals. The derivative term is highly susceptible to noise.
Practical Approximation of PD: Lead Compensator
To address both causality and noise, a pole is added far to the left:
As p→∞, the original derivative is recovered. The term s/p+11 acts as a low‑pass filter, attenuating high‑frequency noise before differentiation. The resulting transfer function is causal (one pole, one zero) and realizable.
Lead and Lag Compensators as PID Approximations
Both lead and lag compensators share the same structure:
The classification depends on the relative locations of the pole and zero:
Lag compensator: z>p (zero is to the left of the pole). It approximates a PI controller.
Lead compensator: p>z (pole is to the left of the zero). It approximates a PD controller.
Lag Compensator (Approximation of PI)
Ideal PI controller: C(s)=Kp+sKi=sKps+Ki has a pole at s=0. The lag compensator replaces this pole with one very close to the origin (e.g., p=0.01) and a zero at z=Ki/Kp.
Stability: The controller itself is stable (pole in the left half‑plane).
Steady‑state error: For a first‑order plant, the closed‑loop steady‑state error becomes ess=1+Kpz1. With p≪1, this error can be made very small (but not zero).
Root locus: The presence of a pole very near the origin and a zero slightly to its left leaves the root locus pattern almost unchanged compared to the ideal PI case. The transient behaviour is preserved while steady‑state accuracy is greatly improved.
Lead Compensator (Approximation of PD)
Ideal PD controller is C(s)=Kp+Kds. The lead compensator adds a pole far to the left:
The zero pulls the root locus to the left (improves transient response), while the far‑away pole has minimal effect on the dominant dynamics.
Noise attenuation: The pole (acting as a low‑pass filter) reduces the amplification of high‑frequency noise that would otherwise be severe with a pure differentiator.
Causal and realizable: The number of poles equals the number of zeros.
PID as Cascade of Lead and Lag
A full PID controller can be approximated by cascading a lead and a lag compensator:
where one pair (p1≫z1) provides lead action, and the other (z2≫p2) provides lag action.
Performance Specifications: Time and Frequency Domains
Time‑Domain Specifications (for a second‑order system)
Peak overshoot Mp: depends only on damping ratio ζ.
Settling time ts≈ζωn4 (2% criterion).
Rise time tr: decreases as ωn increases.
Steady‑state error: determined by system type and error constants (Kp, Kv, Ka).
Frequency‑Domain Specifications
For the closed‑loop transfer function T(s)=s2+2ζωns+ωn2ωn2:
Resonant peak Mr: occurs at resonant frequency ωr=ωn1−2ζ2 for ζ<1/2.
Bandwidth ωb: the frequency at which ∣T(jω)∣ drops to 1/2 (‑3 dB) of its zero‑frequency value.
Relationship:
Mr=2ζ1−ζ21,ωb=ωn1−2ζ2+2−4ζ2+4ζ4
Correlations Between Domains
For second‑order systems (or systems with a dominant pair of poles):
Mr is directly related to ζ, and therefore to the time‑domain peak overshoot Mp. Larger Mr implies larger Mp.
Bandwidth ωb is determined by ωn and ζ. A larger ωb generally means a faster rise time (smaller tr).
Trade‑off: increasing bandwidth improves tracking speed but makes the system more susceptible to high‑frequency noise.
Important: These correlations are exact only for the ideal second‑order case. For higher‑order systems, they serve as approximate guidelines when a pair of dominant poles exists. Design is often verified through simulation.
Conclusion and Next Steps
The proportional, derivative, and integral actions each have strengths and practical limitations.
Purely derivative control is non‑causal and noise‑sensitive; purely integral control can cause wind‑up and instability.
Lead and lag compensators provide causal, realizable approximations to PD and PI controllers, preserving the essential benefits while mitigating practical issues.
Performance specifications expressed in the time domain (overshoot, settling time) have direct counterparts in the frequency domain (resonant peak, bandwidth). This interchangeability allows designers to use either the root‑locus method (time domain) or Bode‑plot techniques (frequency domain) for compensator design.
The next step is to develop systematic design procedures for lead and lag compensators using root‑locus and Bode‑plot methods, including the determination of gain K, zero location z, and pole location p to meet given specifications.

Ask anything
We've read this whole study set, so questions about it get the best answers.