Professional Documents
Culture Documents
-2017
http://iraj.in
STABILIZATION OF DOUBLE INVERTED PENDULUM ON CART:
LQR APPROACH
1
NAGHMEHM.BANDARI, 2AMIR HOOSHIAR, 3MASOUDRAZBAN, 4JAVADDARGAHI,
5
CHUN-YI SU
Abstract- Parameter identification and optimal control of a double inverted pendulum using LQR approach are presented.
The mechanical model of the system was derived by the Lagrangian method, and the parameters were identified via the
energetic description of the system. The model of the system was developed and experimental results verified stability and
recovery of the system by applying impact disturbance.
149
International Journal of Mechanical And Production Engineering, ISSN: 2320-2092, Volume- 5, Issue-2, Feb.-2017
http://iraj.in
The Lagrangian description of motion, implies that: 1 (13)
= ( ̇ + ̇ )
− = (1) 2
̇ 1
= ̇ + ̇ cos
Where, q is the vector of degrees of freedom, i.e. 2
generalized coordinates, L is the Lagrangian + ̇ cos )
functional and Q is the external forces applied to the + ̇ sin
system. In this problem q is: 1
+ ̇ sin ) + ̇
2
= (2) 1 1
= ̇ + ̇
2 2
And Q is: 1
+ + ̇
− 2
= − (3) + ̇ ̇ cos
− + ̇ ̇ cos
+ ̇ ̇ cos( − )
Where, is the horizontal driving force applied by
the motor to the system, is the viscous friction Thus, the equation of motion is derived as below:
force against the motion of the cart, is the viscous
friction in the first pivot joint and is the viscous
friction in the second pivot joint. Jadlovska et al.[1]
have shown that the force thrusted by a DC motor can
be modeled as a linear function of input voltage.
Moreover, the viscous friction of cart motion on the
rack and pivot joints can be assumed as a linear
function of the cart and joint velocities. Thus: Re-arranging the equations of motion in matrix
− ̇ notation, it can be identified as a second order
= − ̇ (4) mechanical system. Thus the system of differential
− ̇ equations can be expressed:
The Lagrangian functional is defines as the difference
between the kinetic and the potential energy of the
whole system. So:
=∑ −∑ = + + −( + + (5) Where, u is the input vector and H is the input gain
) matrix.
= + + (6)
III. PARAMETER IDENTIFICATION
=0 (7)
= = cos (8) For Parameter Identification the energetic description
= = ( cos + cos (9) of the system was employed. The concept is to form a
= + + (10) set of equations stating the energetic mechanical
1 (11) balance of the system throughout the motion caused
= ̇ by excitation, τ. Since the system is starting from the
2 resting position the kinetic energy is balanced at zero
1 (12)
= ( ̇ + ̇ ) while, if no physical barrier is present, the potential
2 energy is at its local minimum (static balance).
1
= ̇ Expediting of the excitation, motion of the cart would
2
+ ̇ cos ) result in motion of the cart and pendulum, while the
1 friction work, between cartwheels and rails and pivot
+ ̇ sin + ̇ joints of the pendulum, exhausts a portion of the
2 external work done on the system. Equations 19
1
= ̇ represents the energy balance of the cart-pendulum
2
1 system.
+ + ̇
2 ̇ − ̇
+ ̇ ̇ cos
(19)
= + − −
150
International Journal of Mechanical And Production Engineering, ISSN: 2320-2092, Volume- 5, Issue-2, Feb.-2017
http://iraj.in
Vi is the potential energy of the component while identified by the non-negative least square
and indicate the initial and final time of the minimization method in MATLAB®.
excitation[14]. If one considers the K_mas a parameter to be
Energetic description of the double pendulum system determined, the numerical optimization procedure,
for parameter identification introduced in equations used for finding the optimum parameters will lead to
20 and 21. an all-zero solution. That is the trivial solution. The
reason is as there is no constant number on the right-
= +
hand side of the set of equations, the procedure would
= + + + + (20)
find the optimum least square minimization of
+ [A]{d}=0, which is trivially zero. To avoid numerical
1 complexity, we tested different values of K_m=[0.6
= ( + + ) ̇
2 0.7 0.8 0.9] to find the parameters. The parameter set
1 with the minimum error was introduced as real
+ +
2 parameters. The system was excited from resting
+ ) ̇ position, fully extended downward configuration,
1 (21) with 4Volts of input and the position and angle of the
+ + ̇
2 pendulum were stored.
+( + ) ̇ ̇ cos
+ ̇ ̇ cos IV. STATE SPACE AND LQR CONTROLLER
+ ̇ ̇ cos( − )
+( )gcos + cos The state space equations of a system of the cart and
Thus, the parameters of the system, − were
inverted pendulum were adopted from work done by
selected: Bogdanov [5]. The Lagrangian equations of motion
were re-written as:
= ̇ ⎛ ⎞
= ⎜ ⎟ (44)
Using this energy equation, the parameters ( ) 0
⎝ 0 ⎠
Stabilization of Double Inverted Pendulum on Cart: LQR Approach
151
International Journal of Mechanical And Production Engineering, ISSN: 2320-2092, Volume- 5, Issue-2, Feb.-2017
http://iraj.in
Where I is the 3x3 identity matrix.
Linear Quadratic Regulator (LQR) method was
implemented to stabilize double pendulum in the
upright position. As a necessary condition of the
stability in the LQR controller design, the input to the
system, u, should be in the form of
u=-Kx, where K is the vector of LQR coefficients.
To find K, the built-in function of lqr(A, B, Q, R) in
MATLAB® was used. As per syntax of this function,
A and B are the state space equation coefficient
matrices while Q and R, are arbitrary error
minimizing and controller effort minimizing weights.
152
International Journal of Mechanical And Production Engineering, ISSN: 2320-2092, Volume- 5, Issue-2, Feb.-2017
http://iraj.in
CONCLUSION
In this study, the parameter identification a double
inverted pendulum system followed, and its
stabilization by optimal control was performed. Using
the system response subjected to 4 Volts excitation,
the parameter of the system were identified including
the viscous friction of cart and rack. The LQR
controller designed by using the identified parameters
could properly stabilize pendulum without any extra
fluctuating. Experimental results could successfully
illustrate the ability of the controller to recover
( stability after applying impact disturbance on both
a first and second pendulum.
)
REFERENCES
153