0% found this document useful (0 votes)
96 views5 pages

Sliding Mode Control of Rotary Inverted Pendulum

This document describes the design of a sliding mode controller for a rotary inverted pendulum system. It provides the system parameters, develops a mathematical model, designs a controller using two sliding surfaces, presents a Lyapunov stability analysis, discusses tuning the controller parameters, and reports the results of stabilizing an initial 25 degree disturbance with settling times of 1 second for arm angle and 3 seconds for pendulum angle. It concludes the controller can stabilize disturbances up to 25 degrees and performance starts degrading above 30 degrees.

Uploaded by

laila AZZOUZI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views5 pages

Sliding Mode Control of Rotary Inverted Pendulum

This document describes the design of a sliding mode controller for a rotary inverted pendulum system. It provides the system parameters, develops a mathematical model, designs a controller using two sliding surfaces, presents a Lyapunov stability analysis, discusses tuning the controller parameters, and reports the results of stabilizing an initial 25 degree disturbance with settling times of 1 second for arm angle and 3 seconds for pendulum angle. It concludes the controller can stabilize disturbances up to 25 degrees and performance starts degrading above 30 degrees.

Uploaded by

laila AZZOUZI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Sliding Mode Control of Rotary Inverted Pendulum

Akshay Khadse
Roll No. 153079011

1. Problem Description
Design a nonlinear controller for upright balancing of Rotary Inverted Pendulum System.
Model Parameters:
1. Length of Pendulum (L) = 0.153 m
2. Length of Arm (r ) = 0.08260 m
3. Equivalent Inertia of Arm and Motor ( J ¿¿ arm)¿ = 1.23 ×10−4 Kg m2
4. Inertia of Pendulum ( J ¿¿ pendulum)¿ = 1.1 ×10−4 Kg m2
5. Viscous Damping Coefficient at motor shaft Joint ( B¿¿ eq) ¿ = 0.0015 Nm/(rad/sec)
6. Viscous Damping Coefficient at Pendulum Arm Joint (B¿¿ pen) ¿ = 0.0005
Nm/(rad/sec).
Provided model takes torque as input and has two angles as output. So, a suitable
motor needs to be considered while modelling as motor parameters are not provided. Let the
motor parameters as follows [2]:
1. Torque Constant ( K ¿¿ t)¿ = 0.02797 Nm/A
2. Back EMF Constant (K ¿¿ m)¿ = 0.02797 V/(rad/sec)
3. Armature Resistance (Rm) = 3.3 Ohm
4. Voltage Rating = 10 V

2. Modelling:

Figure: Rotary Inverted Pendulum Schematics


Above figure represents arm angle and pendulum angle with their respective
references.

T
Let the state vector be x=[ α α̇ θ θ̇ ]

Let
2
a=J eq + mr
b=mLr
4
c= m L2
3
d=mgL
K t K m + Beq R m
G=
Rm

Then state equations are as follows [1]


ẋ 1=x 2

ẋ 2=f 1 ( x ) + g1 ( x ) u

ẋ 3=x 4

ẋ 4 =f 2 ( x )+ g 2 ( x ) u

Where
2
−b 2
s in ( 2 x 1 ) x 2−Gb x 4 cos ( x 1) + aⅆ sin ( x 1 )
2
f 1 ( x )=
ac−b2 cos2 ( x 1)

K t b cos ( x 1)
g1 ( x ) =
R m ( ac−b cos ( x 1 ) )
2 2

c f 1 ( x ) −ⅆ sin ( x1 )
f 2 ( x )=
b cos ( x 1 )

Kt c
g2 ( x ) =
R m ( ac−b cos ( x 1 ) )
2 2

3. Sliding Mode Controller


For pendulum angle (α ) to converge to zero
ẋ 1+ λ1 x 1=0
For arm angle (θ) to converge to zero
ẋ 3+ λ3 x3 =0

Therefore, consider two manifolds as


s1=x 2 + λ1 x 1

s2=x 4 + λ3 x3

Consider a Lyapunov candidate as


V =|s 1|+ λ2|s 2|

Then, stability can be assured if derivative of Lyapunov function is of the form

V̇ =−κ sat ( Vϕ )
where

sat ( Vϕ )= Vϕ if ϕ <|V |
¿ sgn (V ), otherwise
If input is chosen as

u=
−κ sat ( Vϕ )−( λ x + f ( x ) ) sgn (s )− λ ( λ x +f ( x ) ) sgn ( s )
1 2 1 1 2 3 4 2 2

g1 ( x ) sgn ( s 1 ) + g2 ( x ) sgn ( s2 )

Then, derivative of Lyapunov function is V̇ =−κ sat ( Vϕ )


Thus, system is stable for this choice of control input.
But, this is in form of voltage. To calculate corresponding torque generated by motor
following relation holds
K t ( V m −K m θ̇ )
T=
Rm

4. Tuning
κ , λ 1, λ 2, λ 3 and ϕ are the tuning parameters in this case. Following intuition was
applied for tuning:
1. For both the angles to be stable λ 1 and λ 3 must be greater than zero. Higher the
values of these parameters, lesser would be the respective settling times. Also, λ 1
should be much higher than λ 2 because, for upright balancing of pendulum,
control of α is more emphasised than that of θ .
2. λ 2 serves as trade off between the two manifolds, and therefore should be in
between 0 and 1.
3. κ is indicative of rate at which V approaches 0. So, this cannot be less than zero.
Using this intuition, suitable values of these parameters turned out to be
κ=2
λ 1=0. 2
λ 2=0.0 1
λ 3=5
ϕ =0.5

5. Results

Figure 1:Variation of alpha for initial disturbance of 25 degrees

Figure 2: Variation of theta for initial disturbance of 25 degrees


Pendulum was disturbed initially by 25 degrees. Following are observations for this
initial disturbance
Settling time of alpha = 1 sec (approx.)
Settling time of theta = 3 sec (approx)

6. Conclusions:
1. A nonlinear sliding mode controller was designed for rotary inverted pendulum
system provided.
2. Controller can stabilize initial pendulum angle disturbances up to 25 degrees.
3. For larger disturbances, up to 30 degrees, some performance starts degrading.

References:
1. Sliding Mode Control of Rotary Inverted Pendulm, M. A. Khanesar, M. Teshnehlab,
M. A. Shoorehdeli, Proceedings of the 15th Mediterranean Conference on Control &
Automation, 2007
2. QNET Experiment #04: Inverted Pendulum Control reference manual, Pages [5-6]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy