Skip to main content

Servo Loop Simulator

Interactive PID tuning visualization — adjust controller gains and see the step response in real time.

A PID controller's step response is determined by the interplay of proportional gain (Kp), integral gain (Ki), derivative gain (Kd), and the plant's natural frequency and damping ratio. This simulator integrates a second-order plant model in real time as gains are adjusted, plotting the resulting position step response and reporting overshoot, settling time to within 2%, steady-state error, and a stability classification (overdamped, near-critical, underdamped, or oscillating). Plant parameters — natural frequency in Hz and damping ratio ζ — allow the tool to represent mechanical stages, galvo mirrors, piezoelectric actuators, or other physical systems. Diverging responses are detected automatically and flagged as unstable. Use it to develop intuition for PID tuning, to estimate achievable bandwidth, or to check whether a proposed gain set is stable before applying it to hardware.

Controller Gains
Plant Parameters
0.010.020.030.040.050.0-4.96.918.830.642.454.3Time (ms)Position (µm)ResponseTarget
Step Response Metrics
Overshoot
%
Settling Time
ms
Steady-State Error
%
Stability
Unstable
Abridged Optics — v1.0

All information, equations, and calculations have been compiled and verified to the best of our ability. For mission-critical applications, we recommend independent verification of all values. If you find an error, please let us know.