PID tuning challenge
Bring a cart to the 1 m mark. Settle within 3 seconds and keep overshoot at or below 5%.
Step response
Keep tuningPosition (m)
CartEmptyTarget
1.510.50
024681012
Overshoot34.5%
Settling timeUnsettled
| Run | Overshoot | Settling time |
|---|---|---|
| Empty | ||
| Loaded |
Controller gains
How the cart works
A 1 kg cart moves along a rail against a constant 0.5 N load and viscous drag of 0.65 N·s/m. The motor can push or brake with up to 7 N. The controller starts from rest and tracks a 1 m step for 12 seconds.
Kp pulls the cart towards the target. Ki builds force against the steady load. Kd brakes the cart as it gains speed.
Settling time is the first instant after which the cart stays between 0.98 and 1.02 m for the rest of the run, with at least 0.5 s left to observe.