up
Determinatin of PID controller parameters based on step response specifications
Nasser M. Abbasi, May 2012
This paper describes how to design a PID controller for a system represented
by a second order differential equation based on the user requirments for a
step response given by the rise time and the settling time. The goal is to
determine the 3 PID parameters (
) given the plant transfer
function and
(rise time and settling time).
Consider the following mechanical system
Where
is the mass of the car,
is the damping coefficient,
is the spring constant.
Assume, using standard SI units:
The first step is to derive a mathematical model for the system. This means to
derive a differential equation which relates the output (the displacment
) to the input (which is the applied force
Note that we ignored the friction force between the mass M and
the ground. We assume there is no friction.
Start by drawing the free body diagram, and then apply Newton second law:
Apply Netwon law. we obtain
or
Take laplace transform, and assume initial conditions, we obtain
The transfer function is defined as the ratio of the output to the input in
the Laplace domain. Here the input is
, which is the
force on the body, and the output is
which is the
displacment. Hence the transfer function is
Using block diagram, the above can be draw as follows.
This is the system dynamic equation. Next we add a PID controller.
The transfer function of a PID controller is
We add the above controller to the system and close the loop. The following
diagram represents the updated system with this controller in place
Let
be the open loop transfer function, hence
Hence the closed loop transfer function is
Hence
 |
(1) |
Now looking at the closed loop transfer function (1), we see that there are 3
poles. We put one pole at a distance of
away from
the imaginary axis, and the remaining 2 poles will be the dominant poles.
Hence we obtain the following diagram
Hence the denominator of equation (1) can be rewritten as
equating coefficients we obtain
Solve for PID parameters, we obtain
We have obtained the PID parameters as a function of
.
Now we need to do is determine
, and that will give us the PID parameters.
We now need to introduce the time response specifications we are required to
design for. Assume the following are the requirments
- The settling time
- The rise time
But
 |
(3) |
for
criterion. And the rise time is given by
but
, hence
 |
(4) |
From (3) and (4) we can solve for
, hence we get the
following 2 equations in 2 unknowns
Solving the above numerically, we obtain the solution as shown below
The solution is
and

rad/sec
Substitue these values of
and
in equation(2), and the
values given for
and
, we obtain
To obtain the step response, using Matlab, this is the result
me
2012-05-11