A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

PID Controllers

Graduate Depth 153 in the knowledge graph ☐ I know this ☆ Set as goal
23topics build on this
1,080prerequisites beneath it
See this on the map →
Second-Order System Time ResponseSteady-State Error Analysis+1 more→→Cascade and Feedforward ControlInternal Model Principle and Integral Control Action+4 more
pid proportional integral derivative tuning ziegler-nichols

Core Idea

A PID controller computes control output as u(t) = Kp·e(t) + Ki·∫e(t)dt + Kd·de/dt, where e(t) is the error between setpoint and measured output. Proportional action provides immediate response proportional to current error; integral action eliminates steady-state error by accumulating past errors (adding a pole at the origin, making the system Type 1); derivative action provides damping by reacting to the rate of error change. PID controllers are the dominant control structure in industrial practice, governing temperature regulators, robotic joints, and process control loops. Tuning methods include Ziegler-Nichols ultimate gain method, Cohen-Coon, and model-based IMC tuning.

How It's Best Learned

Implement a PID controller in simulation on a second-order plant and manually tune Kp, Ki, Kd while observing step responses. Use Ziegler-Nichols as a starting point and refine iteratively, observing how each term affects the response independently before combining them.

Common Misconceptions

Explainer

You've studied steady-state error analysis, which tells you how much a feedback system misses its target in the long run, and second-order step response, which characterizes overshoot, damping, and settling. PID control is the standard tool for shaping both simultaneously. The acronym stands for Proportional-Integral-Derivative, and each term addresses a distinct aspect of control performance.

The proportional term K_p·e(t) is the most intuitive: apply control effort in direct proportion to the current error. If the output is far from the setpoint, apply a large corrective signal; if it's close, apply a small one. P control drives the system toward the target but almost always leaves a steady-state error — a persistent offset. This is because at steady state, error is constant (not growing), so the P term produces a fixed control output, which must balance the plant's steady-state input requirement. If the required control output is nonzero, error must be nonzero too. Increasing K_p reduces the error but increases the tendency toward oscillation and instability: the system becomes "jumpy" and eventually goes unstable at high enough gain.

The integral term K_i·∫e(t)dt accumulates past errors over time. As long as any error persists, the integral grows, increasing control effort until the error is driven to zero. This is why integral action eliminates steady-state error unconditionally — it is mathematically equivalent to adding a pole at the origin in the open-loop transfer function, making the closed-loop system Type 1. The cost of this guaranteed zero error is dynamic: the accumulated integral can overshoot the setpoint, causing ringing, and if the actuator saturates (reaches its physical limit), the integral keeps growing even though it can't do any work — integrator windup. Anti-windup schemes conditionally stop integrating when saturation is detected. The integral term is the essential addition when pure P control leaves unacceptable offset.

The derivative term K_d·de/dt reacts to the *rate of change* of error rather than its current value. If the error is decreasing rapidly (the system is heading toward the setpoint quickly), the derivative term applies a braking force to prevent overshoot. If error is increasing rapidly (the system is diverging), the derivative term adds a large corrective kick. Think of it as prediction: by looking at the slope of the error, the derivative term anticipates where the system is heading and acts ahead of time. The practical problem is that real sensor signals contain noise, and differentiation amplifies high-frequency noise dramatically. Pure derivative action is almost never implemented; instead, a filtered derivative is used — a derivative in series with a first-order low-pass filter — which gives the benefit of rate feedback while rejecting noise above a chosen frequency. Tuning methods like Ziegler-Nichols provide empirical starting points by measuring the plant's ultimate gain (the K_p at which sustained oscillation occurs) and the oscillation period, then computing K_p, K_i, K_d from those measurements. These starting points are rarely optimal but reduce the search space for manual refinement.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Change of Variables and the Jacobian Determinant → Applications of Triple Integrals: Volume and Mass → Vector Fields and Their Representations → Line Integrals of Vector Fields → Work and Circulation → Line Integrals of Scalar and Vector Functions → Fundamental Theorem for Line Integrals → Conservative Vector Fields → Conservative Vector Fields and Potential Functions → Curl and Divergence of Vector Fields → Curl and Divergence → Divergence Theorem → Electric Flux and Divergence Theorem → Gauss's Law: Integral Form and Meaning → Solving Problems with Gauss's Law → Conductors in Electrostatic Equilibrium → Capacitance and Capacitors → Dielectrics → Dielectric Constant and Relative Permittivity → Electric Field Inside Dielectric Materials → Dielectric Materials and Polarization → Dielectric Susceptibility and Permittivity → Energy Density in Electric Fields → Electric Current and Current Density → Electrical Resistance and Resistivity → Ohm's Law and Circuit Elements → Electromotive Force (EMF) and Batteries → Kirchhoff's Circuit Laws: Voltage and Current → DC Circuit Network Analysis Methods → Transient Response in RC Circuits → RC Circuits → LC and RLC Circuits → AC Circuits: Fundamentals → Impedance and Reactance → AC Power and Resonance → Electromagnetic Waves → Frequency-Dependent Permittivity and Dispersion → Electromagnetic Waves in Anisotropic Media → Birefringence and Dichroism → Wave Plates: Quarter-Wave and Half-Wave Plates → Circular and Elliptical Polarization Production → Polarization States: Linear, Circular, and Elliptical → Linear Superposition of Waves → Superposition Principle in Electrostatics → Electric Field Lines and Visualization → Electric Potential and Potential Energy → Electric Potential and Voltage → Ideal Voltage and Current Sources → Series, Parallel, and Combined Resistor Networks → Voltage Divider Principle and Applications → Kirchhoff's Voltage and Current Laws → Nodal Analysis Method → Linearity, Superposition, and Scaling → AC Steady-State Circuit Analysis → AC Circuit Analysis Using Phasors → AC Power Analysis → Resonance in RLC Circuits → Frequency Response and Bode Plots → Bode Plot Stability Analysis → Nyquist Stability Criterion → Gain and Phase Margins → PID Controllers

Longest path: 154 steps · 1080 total prerequisite topics

Prerequisites (3)

Leads To (6)