Back to Store

Control Systems Lab Composed

Explore PID, LQR, MPC, and Bang-Bang controllers on various plants. See how different control strategies handle the same challenge.

PID Controller

u(t) = Kp*e + Ki*integral(e) + Kd*de/dt
Classic three-term controller. Kp=proportional (speed), Ki=integral (steady-state), Kd=derivative (damping).
Overshoot: --
Settling: --
SS Error: --

LQR Controller

u = -K*x where K minimizes J=integral(x'Qx + u'Ru)
Optimal control — balances state error (Q) vs control effort (R).
Gain K: --
Overshoot: --
Settling: --

Model Predictive Control

Optimize u[0..N] to minimize predicted cost
Looks N steps ahead, picks best action, re-plans each step. Handles constraints naturally.
Overshoot: --
Settling: --
Constraint violations: 0

Bang-Bang Controller

u = u_max if e>0, u = -u_max if e<0
Simplest controller — full power on/off. Fast but oscillates. Add deadband to reduce chatter.
Oscillations: --
Avg Error: --

Side-by-Side Comparison

All four controllers on the same plant with the same setpoint. Which one wins?