Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

PID & control systems lab

Tune a PID controller on a simulated process: step the setpoint, add a disturbance, read overshoot, rise and settling times, and try SIMC and Ziegler–Nichols tunings.

Process

PID controller

Test

How to use

  1. Choose a process and its numbers: gain (how much the output finally moves per unit of input), time constant (how slowly) and dead time (how long before anything happens).
  2. Set the controller: proportional gain, integral time and derivative time. The chart and the numbers update as you type.
  3. The setpoint steps up at time 1; a disturbance (a push on the process input) arrives later, so you see both tracking and rejection.
  4. Press SIMC or Ziegler–Nichols to fill in a textbook tuning for first-order processes, then adjust it by hand.
  5. Tick "No controller" to see how the process responds on its own.

Keyboard and touch

TabMove between the settings; the chart redraws as you type
Enter or SpacePress a tuning button or tick a box

Tips

  • More gain makes the loop faster but, past a point, it overshoots and then oscillates.
  • With only proportional action an offset remains on most processes; integral action removes it.
  • Dead time is what limits how fast you can go: no tuning can react before the process does.
  • Derivative action damps overshoot but amplifies noise; here it acts on the measurement, so a setpoint step does not kick the output.
  • When the output sits at its limit, integral action is paused (anti-windup) so the loop does not overshoot badly afterwards.

About this lab

The process is simulated with a 4th-order Runge–Kutta step 4,000 times per run, with the controller output held between steps and dead time as a delay line. The controller is the standard (ISA) form u = Kp (e + 1/Ti ∫e dt) − Kp Td dy/dt, with the derivative filtered (N = 10) and conditional-integration anti-windup. Rise time is 10–90 %, settling time is when the output stays within 2 % of the setpoint. Tunings: Ziegler–Nichols reaction-curve rules (Kp = 1.2 τ / (K θ), Ti = 2 θ, Td = θ / 2) and Skogestad's SIMC PI rules (Kp = τ / (K (τc + θ)), Ti = min(τ, 4 (τc + θ)), with τc = θ). For learning; real plants need proper testing and safety interlocks. Nothing is sent anywhere.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product