You are on page 1of 3

Proc ccdmgs orthe Peradcniya University Research Ses sions. Sri Lanka.

Vol 14, 3" December 2009

STA BI LIZA nON OF A SEG WAY TYPE MOBI LE ROBOT

K.G .S. Darsha na ', A.W.C. D. Annas fwa rta' , D.H . S. Maith ri pa la' and S.D.
Pathiran a l

IDepartment of Production Engineering, Faculty ofEngineering,


University of Peradeniya.
lDepartment ofMechonical Engineering, Faculty of Engineering.
University ofPeradeniya.

Introduction saturation to simulate the performance


The Segway is a commercia lly of the co ntroller. Only wheel in-plan e
available human transport system that dynam ics arc neglected. The DC
was unvei led in the year 200 1. Such motors are assumed to behave ideally.
vehicles may also find applications in Back-clash and friction in the geared
high mane uvera b le wheel chai rs and drive are also neglected,
rescue robots. Many results 0 11
maneu vering an inve rted pendulum
Mathematica l Mod eliug
ty pe mobile vehicle in an upright
A schematic of the Segway is shown
sta ble configuration can he found in
in Figure l t b). We begin by picking a
the robotics literatures. The system is
suitable set of coord inates by assigning
an unde r-actuated. non-holonomic
frames as sho wn in Figure I(b). Frame
syste m with high nonlinearities. The
h is fixed on the body of the Segwa y
desired behavior is inherently unsta ble. \... ith the origin O ' coinciding with the
All exist ing contro llers are based on midpoint of the whee l axis. The point
linearized mode ls, The first ever 0 ' has co-ordinates (x )' r ] with respecr
published results on stabilizing an to the earth fixed co-o rdinate system e.
inverted pendulum type mobile vehicle A frame c is chosen such that it is
uses a Linear Quadrat ic Regulation parallel to h and is fixed on the vehicle
(LQ R) co ntroller based on a linea rized with its origin co inciding with the
mode l that only considers tilt and center of mass G of the vehic le
wheel dyna mics. In this study we assumed to lie along the b3 = c3 axis.
develop a nonlinea r energy shaping The angle between h3 and a3. the tilt
contro ller that is based on an inverted
pendul um 0 11 a cart (IPe) angle. is ¢ and the ang le betwee n al
approximation of the system. The and el , the yaw angle. is O. Let Uf. and
controller implementation only a ll be the counter-clock wise angle of
requires that we mea sure the tilt. tilt rotat ion of the left and right wheel.
rate and the wheel angular velocities. respectively. The ine rtia tensor of the
The only parameter that needs to be vehicle in the c frame is 1 = d iag [II,
estimated is the entire mass of the 12, 13]. We will neglect the in-plane
system . We use a co mplete nonlinear inertia of each whee l and assume thai
model that con siders the translational. the wheels rema in upright. Two DC
tilt. yaw. wheel and DC motor motors are directly co upled to the
dynamics with co ntrol voltage wheels, Each motor is assumed to

507
Proceedings of the Peradeniya ltnivcrsity Research Sessions. Sri Lanka. Vol, 14. 301 December 2009

behave identica lly. R.. is the arma ture nd kh is the back EMF co nstant of the
resistance, L.. is the armature moto rs.
inducta nce, le I is the torque constant,

03
b3 , .,
a... . o~
/

.1

• •
~J al

(a) The Segway (h) A schemati c of the Segway


Figure I: T he Segway The entire state space of the system is
of fourteen dimens ions. The only
In what follows we IH1VC used Euler-
dyna mics that are neglected in this
Lagra nge eq uations to describe the
model are the whee l in-plane
motion of the body a nd Lagrange-
dy nam ics. The o bjective of this paper
D'Alemberr' s eq uations to describe
is to develop controls mot or voltages
the non-hol onomic dyna mics of the
such that the ...ehicle can be
wheels.
ma neuvered in an upright stable
The tota l kinetic ene rgy a nd potential configuration.
energy of the body is KE and PE.
respect ive ly. Thus the Lagrangia n of
Sta bilizing Co nt ro ller
the sys tem is given by L == KE- PE.
The primary contro l obj ective is 10
Euler - Lagra nge eq uations are; maneuver the vehicle in an upright
d (aL) aL stable configu ration . The objective of
dt aq, = aQi + f, fo r q. this section is to find a stahilizing
controls e such that (1= 0 is at [east a
= v.r.e, 0 ( 1)
locally asymptotically stable relative
The whee l torques are generated by
eq uilibrium with a large region of
OC mo tors. with dynamics.
attra ction. Contro ller is derived based
d'
LIJ dt + Rt:i + k b Oc = e . (2) on the IPC approx imation and
Stabi lizing Controller IS:
Where e the control vo ltages applied U = (m + M )p tan 0 + a t an C
to DC motors. Then the moto r torq ues + k . Ocos O (4 )
are give n by,
T = k 7l ( 3)

508
Proceedingsof the Peradcniya Unjversiry Research Sessions. Sri Lanka. Vo1. 14. J ol l).,ccmtx r 2009

S im ula tio n Results are ext remely challenging. Th e


S imulat ion resu lts correspond to implementatio n o f the stabilizing
paramete rs o f a test veh icle (a lready contro l algorithm will require
assemb led ) 'W here M = 3 .8 kg. 1 = 12 = precision angu lar rate measurements.
6 .25 " 10- kgrn" /I ~ 13 = 3.82 x
1

10 ·~ kgm , L = O.OS m.l. = 0.1 x 1 0 · ~


1
Concl usion
kgm 1• AI.. = 0 .0 I kg, r = 0. 1m. I = The nonl inear energy shaping
0 .15m. L" = I x 10 "3H. R.. = zo hms. Ie, co ntroller that is presented in eq uation
= 0.32NmlA and k. = 0.1 V/radS" . (4) gives reasonab ly acc urate per-
T he controller parameters 'W ere chosen fonn ance . The simulation res ults al so
as a. = 20 and k" = 3. Figure 2 shows show robustness of the controller.
the simulatio n resu lts co rres pond ing 10
the initial cond ition (0, O. O. O. 45". 0, References
O. 45". 10, 0, O. O. 0, O. 0) w ith ur = O. Astrorn. K . and Furuta, K. ( 1996)
T he co ntroller (4) perfor ms quite well Swinging up a pendu lum by
even in the pres ence o f large yaw rate . energycon trol, IFAC 13th World
Co ngress. San Francisco,

.; -,
:;- '\ -~=.- -- - -- -
"----------/
Ca lifornia.
Balch, M. and Parent. M. (2003)

l:\1 I
s " V
~ (~ I
... .. ¢ (t)
Modeling and Mode l Verification
o f an Inte llige nt Self-Ba lancin g
Two-Wheeled Ve hicle fo r an
" ., Autono mou s Urban Transpor -
nm':l tat ion System. Th e Con ference on
(0) 4> (t) .Dd.p (/) "s t Computational Intelligence.
Robo-tics. and Auto nom o us

.~ -\
,J
I 8(1)
. . ... li ft)
I Syste ms, Singapore.
Grasse r. DArri go. Co mlombi and

r-..-t=__
l __ - -
Rufer . (2002) A mobi le inverted
pendu lum. IEEE Tran s. Elec-
tro nics, 49 ( I): 10 7- 11 4.
~
<. " • - :.:-,- - , - -."...-
lI a, Y . and Vuta. (J996) Traj ectory
n me"S " track ing co ntrol for navigat io n of
(b) Olt) a ed li lt) , ', t
F the inverse pend ulum type sel f-
Fig ure 2: Sim u la tion res ults of the contained mob ile ro bot. Ro botics
Segway d ynamics with the control and Autonomous Systems, No .
(13 ) 17. 65·80.
Kim. Y JI.. Kim. S.H.• and Kwak.
(2005 ) Dynami c Ana lysis o f a
Dlscusr..ion Non-holonomic Two-wheeled
The system is no n-ho lonomic in nature Inverted Pend ulum Robot.
and is high ly unstable. Th us the Journa l o f Inte lligent and Ro boti c
model ing and sta bilizati on problems Syste ms. 44 , 25-46.

509

You might also like