Servo Mechanism Calculator
JP | EN | ZH
Control Engineering

Servo Mechanism Calculator

Real-time calculation of bandwidth, phase margin, gain margin, Bode plot, settling time, steady-state error, and Ziegler-Nichols PID tuning parameters.

Control System Parameters
Natural Frequency ωn 100 rad/s
Damping Ratio ζ 0.70
Feedback Gain K 1.00
Settling tolerance ε 2.0 %
PID (Ziegler-Nichols)
Ultimate Gain Ku 10.0
Ultimate Period Tu 0.50 s
PID Recommended Values
Kp =
Ti = s
Td = s
Bandwidth -3dB (rad/s)
Phase Margin PM (°)
Settling Time ts (ms)
Overshoot (%)
Natural Freq fn (Hz)
Steady-State Error
ParameterValueUnit
Natural frequency ωnrad/s
Natural frequency fnHz
Damping ratio ζ
Bandwidth (-3dB)rad/s
Resonant frequency ωrrad/s
Phase margin PM°
Settling time tsms
Overshoot%
Peak resonance MrdB

Theory Notes

2nd-order transfer function:

$$G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2}$$

Settling time and overshoot:

$$t_s \approx \frac{4}{\zeta\omega_n}, \quad \text{OS} = \exp\!\left(\frac{-\pi\zeta}{\sqrt{1-\zeta^2}}\right) \times 100\%$$

Resonance peak and bandwidth:

$$M_r = \frac{1}{2\zeta\sqrt{1-\zeta^2}} \quad (\zeta < 0.707), \quad \omega_{BW} = \omega_n\sqrt{1-2\zeta^2+\sqrt{4\zeta^4-4\zeta^2+2}}$$
Stability targets: Phase margin PM > 45° (recommended 45°–60°). Gain margin GM > 6 dB. Damping ratio ζ = 0.6–0.8 for practical balance. Bandwidth for robot arm or CNC servo is typically 100–1000 rad/s.

Engineer Dialogue — "Why is 45° the phase margin target?"

🧑‍🎓 "My professor says to aim for 45° phase margin. Why that number specifically?"

🎓 "Phase margin tells you how far you are from -180° at the gain crossover frequency — the point where feedback flips from negative to positive and causes oscillation. 45° corresponds roughly to a damping ratio of 0.42, which gives about 20% overshoot but fast response. It's a practical engineering sweet spot."

🧑‍🎓 "So if I increase PM to 60°, what changes?"

🎓 "ζ increases to about 0.6 — less overshoot (around 9%), slower settling, more robust to model uncertainty. Below 30° PM the transient gets quite oscillatory, which industrial machines usually can't tolerate."

🧑‍🎓 "In real servo drives, how do engineers actually achieve the target PM?"

🎓 "Mainly by tuning the D-term to advance phase at high frequencies, or by reducing gain to lower the crossover frequency. More advanced drives use notch filters to suppress mechanical resonances, which then allows a higher bandwidth without violating PM requirements."