Lab

Why damping matters

A joint can reach the right angle and still move badly along the way. Vary two gains and watch the same command produce very different motion.

Make a prediction

Start with a joint at rest and command it to move to one radian. Keep the proportional gain fixed and increase the damping. Predict what will happen to the first peak. Then change the slider and check.

Joint step response
Joint angleTarget angle
Unit-inertia joint with a step to 1 rad.

Use Time to inspect a position along the trace. At zero damping the idealized joint continues to oscillate. Moderate damping reduces the overshoot. Far above critical damping, the return becomes slow.

The joint model

The joint has inertia II, angle qq, and angular velocity q̇\dot q. Gravity, friction, and actuator limits are omitted. The reference angle qrefq_{\mathrm{ref}} is constant after the step. The proportional term pulls toward the reference. The derivative term opposes the current motion.

Iq̈=τ=Kp(qref−q)−Kdq̇. I\ddot q = \tau = K_p(q_{\mathrm{ref}}-q) - K_d\dot q.

With constant inertia and a fixed reference, the tracking error follows the same equation as a damped oscillator. For Kp>0K_p>0, its damping ratio and critical derivative gain are

ζ=Kd2IKp,Kd,crit=2IKp. \zeta = \frac{K_d}{2\sqrt{I K_p}},\qquad K_{d,\mathrm{crit}} = 2\sqrt{I K_p}.

The continuous model’s critical value is 88 with I=1I=1 and Kp=16K_p=16. Try Kd=2K_d=2, then 88, then 1616. Compare the first peak and the time it takes to get close to the target. The plot estimates overshoot over its four-second window.

Watch the three responses

The three traces use the same step, inertia, and stiffness. Their damping gains are 22, 88, and 1616. The recording was made from the same fixed-step numerical model used in the browser.

Silent simulation. Lower damping overshoots, critical damping approaches the target fastest without overshoot in this model, and higher damping approaches it more slowly. Download MP4

Reproduce the experiment

Save joint_step.py and run it with Python 3. It writes time, position, and velocity to CSV. Change one gain at a time and plot the new position column. The numerical trajectory uses semi-implicit Euler, updating velocity before position.

bash
python3 joint_step.py --kp 16 --kd 2 > response.csv
python
q, qd = 0.0, 0.0
dt, inertia, target = 1 / 600, 1.0, 1.0
kp, kd = 16.0, 2.0

for step in range(2400):
    torque = kp * (target - q) - kd * qd
    qd += torque / inertia * dt
    q += qd * dt

On a robot the effective inertia can change with the payload and pose. Actuator saturation, velocity estimation, and sample timing also change the response. The isolated model gives you a prediction to test when those effects are present.

References and code

Cite this article

Aadi Mishra. Why damping matters. 26 November 2026. https://aadimishra.com/writing/why-damping-matters/index.html

@misc{mishra2026whydampingmatters,
  author = {Mishra, Aadi},
  title = {{Why damping matters}},
  year = {2026},
  month = {November},
  day = {26},
  url = {https://aadimishra.com/writing/why-damping-matters/index.html},
  note = {Technical article on Aadi Mishra's website}
}
Download .bib