control systerm -Digital Pendulum
control systerm -Digital Pendulum
Aim:
1. To understand the dynamic behavior of a SIMO system such as Digital Pendulum.
2. To design PID controllers to control the Cart position, and Inverted Pendulum
angle and to explain how PID designs are going to affect overall dynamic.
3. To understand the real-time application of control laws in a SIMO environment.
Objectives:
1. To understand the dynamic properties of the system, obtain response plots from
the non-linear simulation and root locus plots from the liberalized models.
2. Carryout two identification experiments to obtain a model to describe the
relations of moving Cart due to control voltage and a model to describe the
inverted Pendulum control due to control voltage.
3. Obtain the root locus plot with a PID controller closing the loop around the cart
position response and record performance parameters for different PID values.
4. Obtain a root locus plot with a PID controller closing the loop around the
inverted pendulum angle response and record performance parameters for
different PID values.
Apparatus:
Theory:
In this practical used Digital Pendulum Control set up.
The Digital Pendulum is a modern version of a classical control problem; that
of erecting and balancing a free-swinging pendulum in its inverted position
or moving a hanging pendulum in a controlled manner.
The cart on the track is digitally controlled using MATLAB™ software to swing
up and to balance the pendulum into an upright sustained position or to
move the cart with pendulum in an unperturbed down position. The cart
track is of limited length, imposing constraints on the control algorithm.
In pendulum mode the system is used to control the twin arm pendulum
from an initial position, hanging at rest with the cart in the center of its travel
along the track, to a final position with the pendulum upright and the cart
restored to its central position. In crane mode the control problem is to move
the position of the cart without undue movement of the pendulum. This
problem is typical of that experienced when controlling a gantry crane.
This is the system which have PID controller design, testing, tuning and
implementation on the model. Root locus technique is used to illustrate the
changes that PID controller tuning inflicts on the control system
performance. The designed
controllers are prepared in
SIMULINK™.
where k fu is the gain between the u voltage derivative and the F force.
However, one must remember that derivative introduction in models
especially in Simulink may cause simulation problems.
For θ=0
For θ=π
For θ=2 π
Task: Root Locus plots for stable and unstable model were plotted.
For Stable
For Unstable
Natural Frequency =
Damping Ratio =
Such approach will only allow for the linear model identification of the
transfer function between the voltage control signal u and the pendulum
angle 0, for small deviations of the angle around the equilibrium point of θ=0.
A closed loop system describing the relation between signal r and y are
identified:
−1
G(z )
T ( z )=
−1
… … … … …(14 )
1+C ( z ) .T (z )
−1 −1
Bode Plot
Open loop poles?
Comment on the stability of the system
Bode Plot
For PID 3
Root Locus
Bode Plot
Comment on each PID result.
Identify the input frequency that introduces maximum lag to the system
Comment with respect to response performance parameters
Observe haw real time responses differ from the simulation result. Comment
on it.
With Linear Quadratic Regulators out of the scope of these experiments, the
only option for PID pendulum Stabilization is to consider the system as two
SISO systems.
θ(s) x ( s)
G 1 ( s )= ∧G2 ( s )=
θdesired ( s) x desired (s)
To design a PID controller for G1, a model of the plant is needed. For this
purpose, we can use the continuous linearized model identified with
‘InvPendIdent’ in exercise 3 and design a continuous PID controller. PID
control of cart model position G2was performed in the previous exercise.
Task:
‘ModelInvertedPD.mld’ model was opened and the controller PID gains were
changed to see how they influence the control action. Understand the signal
weighting of the two PID controllers and comment.
Initial angle was varied to see how the controllers perform. Real time model
was run with above PID values with the ‘PendStabPD.mdl’.
Observe how real time responses differ from the offline simulation results.
And comment on it.