1. Home
  2. Explore
  3. Engineering
  4. Controller Design Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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)=0.5s+aG(s) = \frac{0.5}{s + a}G(s)=s+a0.5​ with a>0a > 0a>0 (stable). With only proportional gain KpK_pKp​, the closed‑loop transfer function is:

T(s)=KpG(s)1+KpG(s)=0.5Kps+a+0.5KpT(s) = \frac{K_p G(s)}{1 + K_p G(s)} = \frac{0.5 K_p}{s + a + 0.5 K_p}T(s)=1+Kp​G(s)Kp​G(s)​=s+a+0.5Kp​0.5Kp​​

The steady‑state value for a step reference R(s)=1sR(s) = \frac{1}{s}R(s)=s1​ is:

yss=lim⁡s→0sT(s)1s=0.5Kpa+0.5Kpy_{ss} = \lim_{s \to 0} s T(s) \frac{1}{s} = \frac{0.5 K_p}{a + 0.5 K_p}yss​=lims→0​sT(s)s1​=a+0.5Kp​0.5Kp​​

The steady‑state error is ess=1−yss=aa+0.5Kpe_{ss} = 1 - y_{ss} = \frac{a}{a + 0.5 K_p}ess​=1−yss​=a+0.5Kp​a​, which approaches 0 only as Kp→∞K_p \to \inftyKp​→∞.

Why Zero Steady‑State Error Is Impossible with P‑Only

If ess=0e_{ss} = 0ess​=0 were possible, the controller output u=Kpeu = K_p eu=Kp​e 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 KpK_pKp​ cannot drive the error to zero for a step reference.

Key takeaway: Proportional control reduces steady‑state error but does not eliminate it. Increasing KpK_pKp​ 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)=KisC(s) = \frac{K_i}{s}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:

u(t)=Ki∫0te(τ)dτu(t) = K_i \int_0^t e(\tau) d\tauu(t)=Ki​∫0t​e(τ)dτ
  • Even when e(t)→0e(t) \to 0e(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)=1s+3G(s) = \frac{1}{s+3}G(s)=s+31​ with proportional control has a root locus that runs along the real axis to −∞-\infty−∞. Adding an integrator introduces a pole at s=0s=0s=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+KdsC(s) = K_p + K_d sC(s)=Kp​+Kd​s. In the time domain:

u(t)=Kpe(t)+Kde˙(t)u(t) = K_p e(t) + K_d \dot{e}(t)u(t)=Kp​e(t)+Kd​e˙(t)

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 KpK_pKp​), a plant G(s)=1s2G(s) = \frac{1}{s^2}G(s)=s21​ has poles on the imaginary axis for any gain. Adding KdsK_d sKd​s 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 KdsK_d sKd​s 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:

C(s)=Kds⋅1sp+1=Kdssp+1C(s) = K_d s \cdot \frac{1}{\frac{s}{p} + 1} = \frac{K_d s}{\frac{s}{p} + 1}C(s)=Kd​s⋅ps​+11​=ps​+1Kd​s​

As p→∞p \to \inftyp→∞, the original derivative is recovered. The term 1s/p+1\frac{1}{s/p + 1}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:

C(s)=Ks+zs+p,with z,p>0C(s) = K \frac{s + z}{s + p}, \quad \text{with } z, p > 0C(s)=Ks+ps+z​,with z,p>0

The classification depends on the relative locations of the pole and zero:

  • Lag compensator: z>pz > pz>p (zero is to the left of the pole). It approximates a PI controller.

  • Lead compensator: p>zp > zp>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+Kis=Kps+KisC(s) = K_p + \frac{K_i}{s} = \frac{K_p s + K_i}{s}C(s)=Kp​+sKi​​=sKp​s+Ki​​ has a pole at s=0s=0s=0. The lag compensator replaces this pole with one very close to the origin (e.g., p=0.01p = 0.01p=0.01) and a zero at z=Ki/Kpz = K_i / K_pz=Ki​/Kp​.

Clag(s)=Ks+zs+p,p very smallC_{\text{lag}}(s) = K \frac{s + z}{s + p}, \qquad p \text{ very small}Clag​(s)=Ks+ps+z​,p very small
  • 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=11+Kzpe_{ss} = \frac{1}{1 + K \frac{z}{p}}ess​=1+Kpz​1​. With p≪1p \ll 1p≪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+KdsC(s) = K_p + K_d sC(s)=Kp​+Kd​s. The lead compensator adds a pole far to the left:

Clead(s)=Ks+zs+p,p≫zC_{\text{lead}}(s) = K \frac{s + z}{s + p}, \qquad p \gg zClead​(s)=Ks+ps+z​,p≫z
  • 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:

C(s)=Ks+z1s+p1⋅s+z2s+p2C(s) = K \frac{s + z_1}{s + p_1} \cdot \frac{s + z_2}{s + p_2}C(s)=Ks+p1​s+z1​​⋅s+p2​s+z2​​

where one pair (p1≫z1p_1 \gg z_1p1​≫z1​) provides lead action, and the other (z2≫p2z_2 \gg p_2z2​≫p2​) provides lag action.


Performance Specifications: Time and Frequency Domains

Time‑Domain Specifications (for a second‑order system)

  • Peak overshoot MpM_pMp​: depends only on damping ratio ζ\zetaζ.

  • Settling time ts≈4ζωnt_s \approx \frac{4}{\zeta \omega_n}ts​≈ζωn​4​ (2% criterion).

  • Rise time trt_rtr​: decreases as ωn\omega_nωn​ increases.

  • Steady‑state error: determined by system type and error constants (KpK_pKp​, KvK_vKv​, KaK_aKa​).

Frequency‑Domain Specifications

For the closed‑loop transfer function T(s)=ωn2s2+2ζωns+ωn2T(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2}T(s)=s2+2ζωn​s+ωn2​ωn2​​:

  • Resonant peak MrM_rMr​: occurs at resonant frequency ωr=ωn1−2ζ2\omega_r = \omega_n \sqrt{1 - 2\zeta^2}ωr​=ωn​1−2ζ2​ for ζ<1/2\zeta < 1/\sqrt{2}ζ<1/2​.

  • Bandwidth ωb\omega_bωb​: the frequency at which ∣T(jω)∣|T(j\omega)|∣T(jω)∣ drops to 1/21/\sqrt{2}1/2​ (‑3 dB) of its zero‑frequency value.

  • Relationship:

    Mr=12ζ1−ζ2,ωb=ωn1−2ζ2+2−4ζ2+4ζ4M_r = \frac{1}{2\zeta\sqrt{1 - \zeta^2}}, \qquad \omega_b = \omega_n \sqrt{1 - 2\zeta^2 + \sqrt{2 - 4\zeta^2 + 4\zeta^4}}Mr​=2ζ1−ζ2​1​,ωb​=ωn​1−2ζ2+2−4ζ2+4ζ4​​

Correlations Between Domains

For second‑order systems (or systems with a dominant pair of poles):

  • MrM_rMr​ is directly related to ζ\zetaζ, and therefore to the time‑domain peak overshoot MpM_pMp​. Larger MrM_rMr​ implies larger MpM_pMp​.

  • Bandwidth ωb\omega_bωb​ is determined by ωn\omega_nωn​ and ζ\zetaζ. A larger ωb\omega_bωb​ generally means a faster rise time (smaller trt_rtr​).

  • 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 KKK, zero location zzz, and pole location ppp to meet given specifications.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent