PID Controller Simulator and Tuner

Enter the process gain, time constant and dead time, then try PID settings to see the closed-loop step response with overshoot, rise time, settling time and offset, or let a tuning rule suggest P, PI or PID settings and test them.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter the process model

    K, τ, θ.

  2. 2
    Choose simulate or tune

    Mode.

  3. 3
    Enter or pick settings

    Kp, Ti, Td or a rule.

  4. 4
    Run the step response

    Set-point step of 1.

  5. 5
    Read the performance

    Overshoot, settling, offset.

About this tool

Most industrial control loops, for temperature, flow, pressure, level or speed, run a PID controller, and most processes can be approximated by three numbers from a step test: the gain (how much the output finally changes per unit of input), the time constant (how quickly it responds) and the dead time (how long before it starts to respond). This simulator closes the loop on that model, applies a set-point step and shows how the controlled variable and controller output move over time, with the performance numbers engineers use. A tuning mode applies classic rules so you can compare aggressive and robust settings before touching a real plant.

Who this is for

Control and process engineers, instrument technicians, automation and mechatronics students, and hobbyists tuning 3D printer heaters or motor speed loops.

The three terms

- **Proportional (Kp):** reacts to the present error. P alone leaves a steady offset of 1/(1 + K × Kp). - **Integral (Ti):** accumulates past error and removes offset; too short a Ti causes overshoot and oscillation. - **Derivative (Td):** reacts to the rate of change, adding damping; it amplifies noise, so it is filtered and often applied to the measurement only.

Identifying the process

Make a step change in the controller output in manual mode and record the response. Gain K = change in output / change in input. Dead time θ is the delay before the response starts. Time constant τ is the time from then until the response reaches 63 % of its final change.

Tuning rules

| Rule | PI settings | Character | |---|---|---| | Ziegler-Nichols | Kp = 0.9τ/(Kθ), Ti = 3.33θ | Fast, about 25 % decay ratio, oscillatory | | Cohen-Coon | Kp = (τ/Kθ)(0.9 + θ/12τ) | Fast, good for larger dead time | | SIMC | Kp = τ/(2Kθ), Ti = min(τ, 8θ) | Robust, little overshoot | For a first-order process with dead time, SIMC gives a PI controller; derivative helps mainly on second-order processes.

Reading the response

- **Overshoot:** how far the variable exceeds the set-point, in %. - **Rise time:** from 10 % to 90 % of the final value. - **Settling time:** until it stays within ±2 %. - **IAE:** integral of absolute error, a single score for the whole response.

Worked example

K = 2, τ = 10 s, θ = 2 s. SIMC PI gives Kp = 1.25 and Ti = 10 s: about 4 % overshoot, 3.8 s rise time and 12 s settling. Ziegler-Nichols PID gives Kp = 3, Ti = 4 s and Td = 1 s, which is much faster but overshoots strongly.

Common mistakes

- Tuning on a model taken at one operating point when the process gain changes with load. - Ignoring valve or actuator saturation, which causes integral windup. - Using derivative on a noisy measurement without filtering. - Mixing ideal and series PID forms, or gain and proportional band (PB = 100/Kp).

Limits

Linear model, no saturation or noise, set-point step only. Test changes carefully on the real plant. This is not professional engineering advice.

Worked example

K 2, τ 10 s, θ 2 s, SIMC PI (Kp 1.25, Ti 10 s): 4 % overshoot, 12 s settling.

Quick facts

Frequently asked questions

What does each PID term do?

P reacts to error, I removes offset, D adds damping.

Why does P control leave an offset?

A steady output needs a steady error with no integral term.

Which tuning rule should I use?

SIMC for robust loops, Ziegler-Nichols when speed matters and oscillation is acceptable.

How do I find K, τ and θ?

From an open-loop step test of the process.

What is integral windup?

Integral build-up while the actuator is saturated, causing overshoot.

Is my data stored?

Loop settings are simulated in your browser only.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages