MEM 1743
Modelling and simulation of Dynamic Systems
Assignment I
Lecturer:
December, 2011
Description
The inverted Pendulum, is a pendulum which has its mass above its pivot point, it is
implemented with pivot point mounted on a cart that can move horizontally and called a
CART and POLE (as shown in the diagram below).
An inverted Pendulum is inherently unstable and must be actively balanced in order to remain
upright by either applying a torque at the pivot or by moving the pivot point horizontally as
part of a feedback system.
Generally the inverted pendulums are widely used as a benchmark for testing control
algorithm; the inverted pendulum is also applied in many industrial and engineering products
such as high-precision control of robot arm, stability control of launching rocket, and attitude
control of satellite.
The paper main aim is to show the relationship between controllability and parameters of the
system. The paper is based on the modelling of the double pendulum on a cart using Newtons
Laws of motion and linearised on an approximately small angle.
However we modelled the using the Lagranges Equation hence the difference in the
differential equations obtained.
M is mass of trolley; is its displacement; F is the force exerted on trolley; and are
the mass of left and right rocker; 2 and 2 are the length of rockers; 1 and 2 are the
inertia moment of rockers; and are the angle between rockers and the vertical direction.
In the following we derive the differential equations which describe the dynamics of the
inverted pendulum system use Lagranges equation. Two rockers have similar situation.
The kinetic energy of cart is:
2 =
where
So that
1 =
1
2
2
1
( 2 + 12 )
2 1 1
1 = + 21 1 , 1 = 21 1
1 = + 21 1 1 , 1 = 21 1 1
1
3 = 2 (22 + 22 )
2
so that
2 = + 22 2 , 2 = 22 2
2 = + 22 2 2 , 2 = 22 2 2
= 1 + 2 + 3
1
1
1
2 + 1 2 + 4 1 1 1 + (21 )2 12 + 2 ( 2 + 2 2 22 2+ (22 )2 22 )
2
2
2
1
2
= 1 + 2 = 1 21 1 + 2 22 2
= =
1
2 + 1 2 + 2 1 21 1 + (21 )2 12 + 2 2 + 2 2 22 2 + (22 )2 22
2
1 21 1 2 22 2 ;
=0
1
1
1) =
=0
2
2
= 0;
= 1 + 21 1 1 1 + 2 + 22 2 2 2 +
1 1 12 21 1 + 21 1 1 1 + 2 2 22 22 2 + 22 2 2 2 +
1 1 12 21 1 + 21 1 1 1 + 2 2 22 22 2 + 22 2 2 2 + =
2) = 1
= 21 1 1 21 1 1
1
= 21 1 1 + 421 1 1
1
= 21 1 1 21 1 1 1 + 421 1 1
1
=0
1
1
21 1 1 21 1 1 + 421 1 1 21 1 1 + 21 1 1 = 0
2) = 2
21 1 1 + 421 1 1 21 1 1 = 0
= 22 2 2 22 2 2
2
= 22 2 2 + 422 2 2
2
= 22 2 2 22 2 2 + 422 2 2
2
=0
2
2
22 2 2 22 2 2 + 422 2 2 22 2 2 + 22 2 2 = 0
22 2 2 + 422 2 2 22 2 2 = 0
1 1 12 21 1 + 21 1 1 1 + 2 2 22 22 2 + 22 2 2 2 + =
21 1 1 + 421 1 1 21 1 1 = 0
22 2 2 + 422 2 2 22 2 2 = 0
= 1.5 , 1 = 0.5, 2 = 0.5, = 9.8, 1 = 0.8, 2 = 0.8 substituting these parameters into the
above 3 equations.
1 1 12 21 1 + 21 1 1 1 + 2 2 22 22 2 + 22 2 2 2 + =
21 1 1 + 421 1 1 21 1 1 = 0
22 2 2 + 422 2 2 22 2 2 = 0
( + 1 + 2 ) 1 12 21 1 + 21 1 1 1 2 22 22 2 + 22 2 2 2 = ..eqn1
21 1 1 + 421 1 1 21 1 1 = 0
22 2 2 + 422 2 2 22 2 2 = 0
..eqn2
..eqn3
2 = 0.625 2 + 6.1252
.eqn8
.eqn9
.eqn7
2.0
Fig 3. The Step response of the model (Non-linear model) with different scopes
Fig 5. The Step response of the model rocker 1 pivot angle (Non-linear model)
Fig 6. The Step response of the model rocker 2 pivot angle (Non-linear model)
lengend
Step response
curve of
trolley
displacement
Step response
curve of the
two rocker
pivot angle
3.0
2 = 0.625 2 + 6.1252
1 = 0.625x + 6.1251
2 = 0.625x + 6.125 2
1 = 0.625x + 6.1251
2 = 0.625x + 6.125 2
lengend
Step response
curve of
trolley
displacement
Step response
curve of the
two rocker
pivot angle
4.0
From the results obtained in the simulation of the non-linear and linear model obtained from
our modelling and that of the results of the article, its shows that our model are accurate
representation of the model as the modelled in the article.
As side the difference in the techniques used in the modelling (the use of the Lagrange as
against Newtons Equation) we obtain an accurate model which can be used in the
verification of the objective of the article.
However if the linearization tent is extended beyond the very small angle for pivot the system
becomes very unstable and hence the pendulum will fall from the inverted position.