[HTML/JavaScript] Interactive PID-Controlled Second-Order Plant

[HTML/JavaScript] Interactive PID-Controlled Second-Order Plant#

Interactive PID Response of a Second-Order Plant#

This section demonstrates the step response of a first-order plant controlled using a PID controller. The goal is to observe how the controller gains \(K_p\), \(K_i\), and \(K_d\) affect the closed-loop response.

The plant is modeled as a standard first-order system with a time constant of \(\tau\).

The notebook then plots the response \(c(t)\) to a unit-step input.

The notebook also calculates common time-domain response characteristics, including:

  • rise time,

  • peak time,

  • maximum overshoot,

  • settling time using the 5% band,

  • settling time using the 2% band,

  • closed-loop pole locations.

# Interactive PID-Controlled First-Order Plant This interactive plot runs directly in the browser using JavaScript, so it works on GitHub Pages without Binder, Colab, or a live Python kernel. ```{raw} html

Interactive PID-Controlled First-Order Plant

Plant: G(s) = 1 / (τs + 1)