Professional Documents
Culture Documents
BonhihotriHazra
M.Tech, Department Of Applied Physics,
University Of Calcutta
Kolkata,India
bonnihazra@gmail.com
Abstract— An double inverted pendulum on cart is an System Fig. 3. There are mainly three ways of balancing
object which is a nonlinear, unstable system that is used an inverted pendulum i.e.
as a standard for designing the control methods and
finds most versatile application in the field of control i) The application of a torque at the pivot point
theory. In this paper the mathematical modeling and ii) The movement of the cart in horizontal direction.
control strategy of double inverted pendulum-cart iii) Swinging the support continuously up and down.
dynamic system with disturbance input using PID and
LQR have been stated. The states of the system are given For achieving the three ways, proper control strategy is
to LQR controller which is obtained using linear state- required. An Inverted Pendulum is a non-linear, time
feedback controller. The MATLAB-SIMULINK variant, non-holonomic, unstable open loop system. The
environment have been used for simulation of the linear mathematical methods cannot model the non-linear
control strategies. The aim of this work is to have a system which makes the system more critical for analysis
comparative study of two different control strategies and [1].The non-linear system can be approached as a linear
the analysis of performance of two different types of system if the area of operation is little, i.e. difference of
controller for double inverted pendulum on cart system pendulum angle from the equilibrium position is little. The
have been obtained. The result shows and validate the Control System is a system which provides the dynamics
comparative lead of LQR control strategy over of other plant.The performance comparison between LQR
conventional PID control strategy. and PID controller Fig.1 for a double inverted pendulum
system. Performance of both control strategies with respect
Keywords— Inverted pendulum; double inverted to angle of the pendulums and position of the cart have
pendulum; LQR; PID. been compared [2]. The mathematical model and design
of the controller for non-linear double inverted
I.INTRODUCTION pendulum-cart dynamic system in presence of disturbance
input using conventional controller Fig. 4,Fig.5,Fig.6 and
Double Inverted Pendulum on Cart is a good platform for LQR. The nonlinear system states are given to LQR
researchers for validation of different control strategies in which is obtained using linear state-feedback controller.
the field of control system. Most of the modern day Here two control strategies have been implemented to
technologies use the concept of Inverted Pendulum, such control the position of the cart and balance the inverted
as attitude control of satellites and rockets, aircraft landing, pendulum and get the desired response by controlling the
ship balancing against turbulent tide, Seismometer etc. An output. [3].A robust LQR controller is obtained to balance
inverted pendulum has its mass above it’s pivoted point is the pendulum in vertical balanced position and make the
placed on a cart which may be moved horizontally. The cart to follow the set point in purturbationFig.7 and Fig. 8 .
double inverted pendulum gets stabilized when it hangs The aim of this work is to design the LQR controller
downward, but an inverted pendulum is inherently which can adapt the perturbations present in the
nonlinear, unstable system that needs to be stabilized system[4].
Fig.2. In this case the double inverted pendulum system
has one input - the force is being applied to the cart, and A. PID CONTROLLER
two output –position of the cart and angle of the PID is acronym of Proportional-Integral-Derivative. This
pendulums, making it as a Single Input Multiple Output is a conventional feedback controller whose output is
made of a variable which are being controlled based on the optimal control. LQR is a control strategy which operates
error, difference between set point and some plant variable the system with minimum cost when the system dynamics
which are being measured. Each element of the PID is expressed by differential equations which are linear.
controller stands for a particular control action is put on The performance measurement is expressed with a cost
error then the error is in use for adjusting some input to function which is quadratic in nature and made of state
the process in order to its desired value. The schematic for vector and control input. LQR control defines the pole
the controller is shown below. location which are optimal in location depends on two
cost function. For obtaining the gains, which are optimal.
The optimal performance index must be expressed first
and then solve the State Dependent Algebraic Riccati
Equation(ARE). The LQR design method consists of
obtaining a state feedback controller K such a way that
the quadratic performance index J is minimized. In the
control strategy a feedback gain matrix is obtained which
aids to minimize the quadratic performance index and
makes the system stable[5].
For a continuous-time linear system described by:
Three parameters of PID controller and their impact on Quadratic cost function is written below:
error. The transfer function of the PID controller can be
written as: J= 𝑥 𝑇 𝑄𝑥 + 𝑢𝑇 𝑅𝑢 𝑑𝑡 (3)
2
Proceeding of 2018 IEEE International Conference on Current Trends toward Converging Technologies, Coimbatore, India
.
.
.
(11)
L q, q T q, q V q, q
𝑊𝑒𝑛 𝑞𝑖 = 𝑥 𝑎𝑛𝑑 𝑄𝑖 = 𝑓
T T V D
. f (12)
t x. x x x
By calculating we get,
𝑀0 + 𝑀1 + 𝑀2 𝑥 + 𝑀1 𝑙1 𝐶1 + 𝑀2 𝐿𝐶1 + 𝑀2 𝑙2 𝐶12 𝜃1 +
−𝑀1 𝑙1 𝑆1 − 𝑀2 𝑙𝑆1 − 𝑀2 𝑙2 𝑆12 𝜃12 + 𝑀2 𝑙2 𝐶12 𝜃2 −
2𝑀2 𝑙2 𝑆12 𝜃1 𝜃2 − 𝑀2 𝑙2 𝑆12 𝜃12 + 𝑅0 𝑥 = 𝑓 (15)
Fig. 3 : Force analysis for double inverted pendulum
system
(𝐽1 + 𝑀1 𝑙12 + 𝐽2 + 𝑀2 𝐿2 + 𝑀2 𝑙22 + 2𝑀2 𝐿𝑙2 𝐶2 )𝜃1 +
For Pendulum 1 −2𝑀2 𝐿𝑙2 𝑆2 𝜃1 𝜃2 + 𝑀1 𝑙1 𝐶1 + 𝑀2 𝐿𝑙2 𝐶2 𝜃2 +
x1 x l1 sin 1 (7) −𝑀2 𝐿𝑙2 𝑆2 𝜃22 − 𝑀1 𝑔𝑙1 𝑆1 − 𝑀2 𝑔 𝐿𝑆1 + 𝑙2 𝑆12 +
y1 l1 cos 1 𝑅1 𝜃1 = 0 (16)
3
Proceeding of 2018 IEEE International Conference on Current Trends toward Converging Technologies, Coimbatore, India
4
Proceeding of 2018 IEEE International Conference on Current Trends toward Converging Technologies, Coimbatore, India
II.SIMULATION RESULT OF DOUBLE LINK Simulink using PID control. The tuning of PID controller
INVERTED PENDULUM SYSTEM USING PID is done and fixed at the following parameters-
CONTROLLER IN MATLAB
5
Proceeding of 2018 IEEE International Conference on Current Trends toward Converging Technologies, Coimbatore, India
REFERENCES