Skip to content
Tactiverge

PID step response: experiment bench

Simulation OS · playgroundEducational model, not a digital twin

PID step response

Ask a motor or heater to jump to a new target and watch how proportional, integral and derivative action shape the response.

Your level (shows more controls and deeper equations)
  1. 1. Ask
  2. 2. Hypothesise
  3. 3. Set up
  4. 4. Run
  5. 5. Record
  6. 6. Change one variable
  7. 7. Compare
  8. 8. Interpret
  9. 9. Limitations & save

If I change …, then … will …, because …

3 · Set up the parameters

0–20

Pushes harder the further the output is from the target.

0–10 1/s

Keeps pushing while any error remains, so it removes the leftover offset.

0–2 s

Brakes the output when it is moving fast, adding damping.

0.2–5 s

How sluggish the plant is: a bigger τ responds more slowly.

0.2–3

Output per unit of input once everything has settled.

-1–1

A constant push against the plant, like a heavier load.

1 more control appear at higher levels; until then it stays at the default value.

The seed fixes any random noise. Same parameters + same seed = exactly the same result, every time, on every computer.

6 · Change one variable

Your first run is the baseline. After it, change one thing at a time.

7 · Compare on a graph

Run the model to draw your first curve here.

5 · Run log

No runs yet.

Equations

PID: u = Kp·e + Ki·∫e dt − Kd·dy/dt (derivative on the measurement, low-pass filtered with 0.05 s).

Integral action drives e_ss to 0 for a constant target and a constant disturbance d (plant input u + d).

Assumptions (always true in this model)

  • Linear first-order plant with constant gain and time constant.
  • Ideal actuator: no saturation limit in this bench.
  • Target steps from 0 to 1 at t = 0; disturbance is a constant step at t = 5 s.
  • Controller samples every 0.01 s and holds its output in between.
Text description of what the chart shows

A line chart of the plant output against time from 0 to 10 seconds, with the target at 1. Higher proportional gain makes the output rise faster and settle closer to 1; integral gain removes the remaining gap; derivative gain reduces overshoot. A second series shows the control effort.

Did the result support your hypothesis? Use the numbers from the comparison table and link them to an equation.

Which assumptions could change your answer in the real world? For example: Real motors and heaters saturate, have dead-time and change with temperature; none of that is modelled here.

Export and save

Exports use the ticked runs (or every run if none are ticked). Your draft saves automatically in this browser only. The Journal is private to you.

Valid parameter ranges

ParameterRangeDefault
Proportional gain Kp0 to 202
Integral gain Ki0 to 10 1/s0
Derivative gain Kd0 to 2 s0
Plant time constant τ0.2 to 5 s1
Plant gain K0.2 to 31
Load disturbance d (from t = 5 s)-1 to 10
Sensor noise σ0 to 0.20

Independent reference checks

  • P control, K = 0.5, Kp = 4

    Final-value theorem for a first-order plant under P control: e_ss = r/(1 + Kp·K) = 1/(1 + 2) (Ogata, Modern Control Engineering, §5-8).

  • P control, K = 1, Kp = 3

    Closed loop y_ss = Kp·K/(1 + Kp·K) = 3/4; a first-order closed loop is first order, so it never overshoots.

  • PI removes the offset

    Integral action gives a type-1 loop: zero steady-state error to a step (final-value theorem).

Checked automatically on every change to the code. Educational model, not engineering-grade.

Where this model stops being right

  • Real motors and heaters saturate, have dead-time and change with temperature; none of that is modelled here.
  • A response that is still moving at 10 s is reported as settling time 10 s (not settled).