Motor Speed Control
Tune a motor’s PI controller and watch the rotor recover when a load hits.
Hold the RPM under load
actual speed target (6000 rpm) load hits at t = 5 s
speed (live) —
peak deviation —
recovery time —
drive effort —
residual error —
what to try
- Set Ki = 0. The motor returns to some speed under load, but not the commanded one. Watch the residual error.
- Bring Ki up. The trace climbs back to the setpoint after each load step. The integrator is doing exactly what its name says: accumulating until the error is gone.
- Ki too high → overshoot during recovery, then oscillation. The PI sweet spot is small-Ki with a Kp that's bigger than the integrator wants it to be.
What you are looking at
- Dashed line
- The target speed of 6,000 RPM.
- Solid trace
- The actual rotor speed.
- Load event
- An extra torque applied five seconds into the run.
Try this
- Watch the trace at five seconds to see the load pull speed down.
- Use integral gain to bring the speed back toward the target after the load.
Key idea
A proportional-integral loop can correct the persistent speed error caused by a constant load.