⚡
usefultools.dev
PID

PID Controller Simulator (Step Response)

NEW

PID controller simulator: tune Kp, Ki and Kd on a first-order-plus-dead-time or second-order plant and see the step response and metrics live.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Presets:
Controller
s
s
Plant (process)
s
s

τ·dy/dt = −y + K·u(t − θ)

Rise time 10–90 %
3.94 s
Overshoot
0.283 %
peak 1.003
Settling (±2 %)
7.8 s
Steady-state error
-0.0000481
output saturated 0 % of the time
00.510s10s20s30s40s
Setpoint rOutput y
0120s10s20s30s40s
Control signal u
Parallel PID: u = Kp·e + Ki·∫e dt + Kd·de/dt, evaluated every 0.1 s with the output held between samples. A simulation is a starting point — real processes add noise, nonlinearity and actuator limits, so tune gently on the real system.
⚡

Quick Examples

Typical inputs and the results this tool produces.

P
P only, Kp 1.5
Steady-state error 0.4
PI
PI, Kp 1.2, Ki 0.25
Rise 6.16 s, settles 11.5 s
PID
PID, Kp 2, Ki 0.35, Kd 0.8
Rise 3.94 s, settles 7.8 s
Aggressive
Kp 4.5, Ki 1.2, Kd 1.5
Overshoot 30.8 %
Windup
Same, output 0…2, anti-windup off
Overshoot 36.9 %, settles 16 s
📖

Overview

A PID controller drives a process towards a setpoint by adding three terms: proportional to the error, to its integral (which removes steady-state error) and to its derivative (which adds damping). Getting Kp, Ki and Kd right is easier when you can see what each one does.

This PID controller simulator runs a discrete PID at your sample time against either a first-order-plus-dead-time process — the classic model for heaters, motors and flow loops — or a second-order process with adjustable natural frequency and damping. It plots the setpoint, the output and the control signal, and measures rise time (10–90 %), overshoot, 2 % settling time and steady-state error. Output limits, anti-windup and derivative-on-measurement show the real-world effects that textbook formulas skip.

The simulation is deterministic and runs in your browser. Use it to learn tuning, compare presets or get starting gains before tuning on real hardware.

Why use this tool?

  • See what each gain does instantly
  • Learn windup and derivative kick visually
  • Objective metrics instead of eyeballing
  • Test dead time and slow processes safely
  • Free, private, no install
⭐

Features

🎛️

Discrete PID

Parallel Kp, Ki, Kd evaluated every sample with a held output and adjustable limits.

🏭

Two plant models

First order plus dead time, or second order with ωn, ζ and dead time.

📈

Live plots

Setpoint, process output and control signal drawn as SVG charts.

📏

Step metrics

Rise time, overshoot, 2 % settling time, steady-state error and saturation share.

🧯

Anti-windup & D on measurement

Toggle conditional integration and kick-free derivative to compare behaviour.

⚡

Presets

P only, PI, PID and aggressive gains to start from, plus instability warnings.

🛠️

How to Use

1

Pick a preset

Start from P only, PI, PID or Aggressive.

2

Describe the plant

Choose the model and set gain, time constant or ωn / ζ, and dead time.

3

Tune the gains

Edit Kp, Ki, Kd, sample time and output limits; the plot updates as you type.

4

Compare metrics

Check rise, overshoot and settling, then copy the metrics for your notes.

🤔

Frequently Asked Questions