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

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

This section demonstrates the step response of a second-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 second-order system with these parameters:

  • \(\zeta\) is the damping ratio,

  • \(\omega_n\) is the natural frequency.

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 Second-Order Plant