Swing Up Control of Inverted Pendulum
Swing Up Control of Inverted Pendulum
2 . The pendulum
1 INTRODUCTION 2
[ $1
mlllLo COS B1
+ [ co+2mil:sin2elBi -mlllLocosel]
control sequence (see Fig. 2) of which is determined by the set of
switching instances:
-mlG sin Oleo +
JO milt
0 *' = {(TI ,~ 2 * *, * I Tn 1 (9)
L ( z ) := J(z)' + AT G (13)
For the Lagrangian, we employ a modified steepest descent-
method to obtain its minimum value. The algorithm is given
as follows:
x = [A, x 2 A3 A,]= 2 0 (14)
aJ aG
+
L(z €2)= ( J ( z ) t- z)' + a2
AT(-tz G) (15) + a2
+
L(Z+€Z) - L(2) =
aJ aG 63
( 2 5 ( 2 ) - ~ + X'-Z)E
82 a2
+ E'(-z)'
82
(16)
Then
aJ ac
z = (2J(2)-
az
+ a2
System
Fig. 2 Profile of the control input
In this section, three methods are discussed.
-.. to awing up the pendulum
88. 8
J = L"(zTQz + ru2)dt (23)
68.8
and the optimal feedback gain f for the criterion under the
40.8 dynamic constraint (8). If the design parameter Q and r are
specitied, then f can be obtained by a standerd method.
28. 8
8. 88 ' 5 18 15 28 25
I
38
2) Design of the observer
Xina We use a minimal order observer for the state feed-
Fig. 3 Convergence of t h e criteria by back. And we select observer poles as design parameters,
a steepest descent m e t h o d and P, Q,R , SI,Sa are obtained by Gopinath's method in
the following equations[Furuta, 1988).
+
= - m l l l ~ o ( c o s ~ l ) i o mll:(sin01)6i: (19) Using the optimal regulator and the minimal order observer
obtained in 1) and 2), we construct closed loop system with
Now suppose that the last term of the right hand side of (19)
can be neglected, i.e, t( = -fT; (26)
+
( J ~ ml/i)il - clil - mlllgsinO1
13. 8
6.58
......................................
......................................
....................................... . . . .
= -ml~l~o(~os~l)io (21) 8. 88
......................................
......................................
eeeecc....
.......................................
........................................
-6.58
Next we rewrite (21) in the state space form as
-13. 8
-19.5
..........
-~......~--
w*\\\b\.w--..#+++#.- w\\\\\\*w---a##+r..--
""~,,~...-.......~~--l~,,,"l-
""I,,~~---~......~--*"I,I,"
-~..~.-..T--""I,~II--~~~.~.~.~--~"I~~,"--
.
.
-T.-.~~-.-rULI.r.ru-c"5.-.~-r..-+uL~~~--
-
s44
\
.-
\
. .
\\
\\
-L-
/-
-26.8
0, [ r d ]
in area C. The input U is switched based on where (01,81) are in Fig. 4 b Vector field of (81,8,) i n a case of
the phase plane 80 = 10O.O[rad/s~]
4.88
-4.88
-6.88
} I
-4.88
-6.88 1 -6.08
8. 88 8. 58 1. 88 1.58 2. 88
-6.88 '
8. 89 e. 58 1.88 1.58
I
2.88
TI. [sec1
11.. [=I
Fig. 9a Feedback control (without a load)
Fig. 7a Feedforward control (without a load)
9, [rdl
ee
Fig. 9 b Response of p e n d u l u m to
feedback control
(without a load)
8. 88
-4.88
-6.88
-6.88
8. 88 8.58 1. ee 1.58 2.88
.7
inverted pentluluin and realized nith ease \rhile the details have
0. E 8 n o t reported. The robiistness of t h e controlled syst.eiii I n s been
evaluated by frequency domain analysis. T h e proposed syst.em is
J
-I. ee very useful not only for univ?rsity stridents b u t also for control
engineers i n i n d u s t r y wlio wants to s t u d y coiitrol system design
-2. BE - and analysis.
-3. BE -
-4. E0
Time [..I
Fig. l o b Response of pcriduliini by
tlie feedback cont,rol (with a load)
0, [,N1/9PC]
20. E I--
_ _ _Feedforward
- (with a 10~1)
Feedback ( w i t l i o i l t a load)
15. 0
IO. 0
5.00
E. 0 0
-5.00
A . - -
-10. E - .
EO -3. E O
..
-2. 013
---
-1.EO E. 0 0
~ ~-
OD
(1, [,dl