Lecture - PID Controller
Lecture - PID Controller
In this case the derivative element is being driven only from plant
feedback. The plant feedback is subtracted from the command
signal to generate an error.
This error signal drives the proportional and integral elements. The
resulting signals are added together and used to drive the plant
Sample Plant Application of PID Controller
Motor Driving A Gear Train
Sample Applications :
Printer carriage driver
Automobile throttle
mechanism in cruise control
system
Other moderately precise
position
controller
The motor is driven by a voltage that is commanded by software. The motor output
is geared down to drive the actual mechanism. The position of this final drive is
measured by the potentiometer.
A DC motor driven by a voltage wants to go at a constant speed that is proportional
to the applied voltage. Usually the motor armature has some resistance that limits
its ability to accelerate, so the motor will have some delay between the change in
input voltage and the resulting change in speed. The gear train takes the movement
of the motor and multiplies it by a constant. Finally, the potentiometer measures the
position of the output shaft.
Figure 3 shows the step response of the motor and gear combination.
Sample Applications:
stabilising an element of an optical system
locating some other piece of equipment or sensor.
Software commands the
current in the coil. This
current sets up a magnetic
field that exerts a force on
the magnet. The magnet is
attached to the stage, which
moves with an acceleration
proportional to the coil
current.
The equations of motion for this system are fairly simple. The on the stage is
proportional to the drive command alone, so the acceleration of the system is
exactly proportional to the drive
In the end the system doesn’t settle out any quicker than it would have with
lower gain, but there is more overshoot. If we kept increasing the gain we would
eventually reach a point where the system just oscillated around the target
and never settled out-the system would be unstable.
The motor and gear start to overshoot with high gains because of the delay in
the motor response. If you look back at Figure 2, you can see that the motor
position doesn’t start ramping up immediately. This delay, plus high feedback
gain, is what causes the overshoot seen in Figure 8.
Figure 9 shows the response of
the precision actuator with
proportional feedback only.
Plants that have too much delay, like the precision actuator, can’t
be stabilised with proportional control.
Plants like the motor and gear combination may work, but they
may need to be driven faster than is possible with proportional
control alone.
2. You need to pay attention to the range of your integrator to avoid windup.
The rate that the integrator state changes is equal to the average error
multiplied by the integrator gain multiplied by the sampling rate.
Because the integrator tends to smooth things out over the long term you can
get away with a somewhat uneven sampling rate, but it needs to average
out to a constant value.
At worst, your sampling rate should vary by no more than ý20% over any 10-
sample interval.
Figure 15 illustrates the effect
of integrator windup using the
motor/controller of Figure 13, and
limited the motor drive to ý0.2.
In general, if you can’t stabilise a plant with proportional control, you can’t
stabilise it with PI control. We know that proportional control deals with the
present behaviour of the plant, and that integral control deals with the past
behaviour of the plant.
If we had some element that predicts the plant behaviour then this might be
used to stabilise the plant. A differentiator can do this.