PID Controller Simulator (Step Response)
NEWPID 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.
Quick Examples
Typical inputs and the results this tool produces.
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
Pick a preset
Start from P only, PI, PID or Aggressive.
Describe the plant
Choose the model and set gain, time constant or ωn / ζ, and dead time.
Tune the gains
Edit Kp, Ki, Kd, sample time and output limits; the plot updates as you type.
Compare metrics
Check rise, overshoot and settling, then copy the metrics for your notes.