Electrical · Core · Investigate
Holding a speed with feedback
What does each of P, I and D do to how the motor holds its speed, and what does each one cost?

The bench
A small DC motor turns a steel flywheel and an aluminium disc. A magnet can be swung over the disc as far as a stop: the further over, the harder it drags, and the drag grows with the speed. A tachogenerator on the motor's back gives a voltage in proportion to the speed, with a ripple 14 times a turn; a filter smooths it. The controller takes the set speed less the tach's signal, the error, and sends the amplifier the sum of three terms: P times the error, I times the error added up over time, and D times how fast the speed is changing. The amplifier cannot give the motor more than 20 V either way, and the controller's own stages stop at 13.5 V. An overspeed trip cuts the drive at 1800 rpm. The loop can be opened, so that the controller sees the set speed alone.
What you do
Controls
- Set speed (rpm): 300 to 1500
- P, gain: 0 to 20
- I, integral (per second): 0 to 40
- D, derivative (ms): 0 to 40
- Tach filter (ms): 2 to 100
- Brake magnet's stop (0 to 10): 0 to 10
- Loop: Open or Closed
- Integrator hold at the rail: Off or On
Buttons
- Swing the brake
- Read the meters
Predictions
- P alone, no I. Double the P gain. The error left between the set speed and the speed…
- Lengthen the tach filter, change nothing else, and swing the brake over. Next to the shorter filter, the speed…
To work out
- With P alone as it is set now, how far short of the set speed will the closed loop settle? Work it out from a reading taken with the loop open. (rpm)
- With the brake at 10, what is the highest speed the amplifier can hold? (rpm)
Results kept
- Steady readings: Loop, Set speed (rpm), P, I (/s), Brake, Speed (rpm), Short by (rpm), Amplifier (V)
- Load steps: Set speed (rpm), P, I (/s), D (ms), Filter (ms), Brake to, Moved by (rpm), Past the set speed (rpm), Turns, Within 2 %
What you find
- With P alone the speed settled short of the set speed, and stayed there. P drives the motor only in proportion to the error, so it needs an error to keep driving.
- With some I, the speed came to the set speed and the error went. The I term goes on growing for as long as any error is left, and holds the drive there when the error is gone.
What is simplified
The motor's friction is taken as in proportion to its speed, from its datasheet's no-load current; real brushes and bearings also drag by a fixed amount. The brake's drag is in proportion to speed and to the magnet's position. The amplifier is a perfect gain of 4 up to ±20 V, with no current limit and no heating. The tach's ripple is a sine. The fuse blows when the bench judges the loop to be hunting, not by its own heating. Nothing here is a servo design. This is for understanding.
Topics
feedback, control, closed loop, pid, proportional, integral, derivative, steady-state error, loop gain, stability, phase margin, routh, hunting, oscillation, integrator windup, saturation, dc motor, tachogenerator, speed control, load step, eddy-current brake, servo