Beruflich Dokumente
Kultur Dokumente
⎡θ a ⎤
∫θ& τ
t1
a m dt = τ m ⋅ ∆θ a = E (t 2) − E (t1) (5)
where q = ⎢ ⎥ ,
⎣θ p ⎦ where τm is the average torque and ∆θ a is the arm
angle from t1 to t 2 . Taking into account of Fig. 5
⎡ P1 + P2 + 2 P3 cosθ p P2 + P3 cosθ p ⎤
M (q ) = ⎢ ⎥, and assuming the kinetic energy of pendulum is zero,
⎣ P2 + P3 cosθ p P2 ⎦ the arm is swung from θ a = − π 2 + θW to
( )
⎡− P θ& sin θ p − P3 θ&a + θ&p sin θ p ⎤
B (q, q& ) = ⎢ 3& p
θ a = − π 2 − θW . The energy E (t 2) − E (t1) > 0
⎥, because ∆θ a = 2θW and τ m > 0 . When the kinetic
⎢⎣ P3θ a sin θ p 0 ⎥⎦
⎡ P4 cosθ a + P5 cos(θ a + θ p )⎤
energy is transferred to the potential energy
G (q ) = ⎢ completely, the arm is being swung backward
⎣ P 5 cos (θ a + θ p ) ⎥.
⎦ θ a = − π 2 + θW . Then the potential energy of
pendulum is accumulated little by little. Finally, the
The parameters of matricesM (q ) , B(q, q& ) and pendulum is swung-up to the range of balance control.
G (q) are P1 = J a + ma ca + m p l a2 ,
2
4. Fuzzy stabilization
P2 = J p + m p c 2p , P3 = m p l a c p ,
P4 = (ma ca + m p l a )g , P5 = m p c p g . The fuzzy stabilizing controller (Yen and Langari
[9]) includes four parts, i.e., a fuzzification interface, a
fuzzy rule base, a fuzzy inference engine and a
The torque generated by the dc motor is
defuzzification interface. The fuzzification interface
ki kk maps a noisy measurement to fuzzy sets within certain
τm = va − i b θ&a (2) input universes of discourse. The fuzzy inference
Ra Ra engine infers fuzzy logic control actions from a rule
base based on the expert experience. The
where Ra is the armature resistance, v a is the defuzzification interface yields a deterministic control
applied voltage, k i is the torque constant and k b is input from an inferred control action. Typical
linguistic sets used in this section have the forms: PB
the back-emf constant. (positive big), PM (positive middle), PS (positive
small), ZE (zero), NS (negative small), NM (negative
3. Backwards and forwards swing-up middle) and NB (negative big). The membership
functions are shown in Fig. 6.
In this section, the backwards and forwards swing-
up method is proposed. Total energy of the pendubot In this section, the knowledge pertaining to the
is given by (Fantoni, Lozano and Spong, 2000) control problem is formulated in terms of a set of
fuzzy inference rules. The inference rule has the
q& M (q ) q& + P4 sin θ a + P5 sin (θ a + θ p )
1 T (3) following fuzzy conditional propositions
E=
2
The rate of the total energy change is
∆ (θ + θ )∈ [− 36 ,36 ]. O O 3
a p
∑ E ((θ ) )× (θ )
T n T n
The fuzzy numbers A, B and C are chosen from the θT = ηe × n =1
3
(11)
set of fuzzy numbers that represent the linguistic
states NB, NM, NS, ZE, PS, PM, and PB. The total ∑ E ((θ ) )
n =1
T n
o
angle of the sum is less than 90 . In order to avoid 7. References
falling of the pendulum, the arm is pulled to the
desired angle ( θ a = −90 ). Considering Fig. 7(b),
O
[1] Spong, M. W. and D. J. Block, “The pendubot: a
mechatronic system for control research and
the arm angle is more than − 90 and the target angle
o
education”, Proc. 34th IEEE Conference Decision
o
is more than 90 . The arm is pushed to the desired and Control, pp.555-556, 1995.
angle again. Hence the arm is fixed at the desired
Jp
θp
Balance
mp
Controller lp
Pendubot System
Swing Up la
cp
Controller ca ma θa
θ a and θ p
Ja
X
θ + θ p = θT
θa + θ p = 90o a
π π
θ =− −θ θ =− +θ
a 2 W a W
2
θ a = −90o
Swing
θ a + θ p = θT θa + θ p = 90o
NB NM NS ZE PS PM PB
A
−1 − 0.3 − 0.1 0 0.1 0.3 1
θ a = −90o
B 7(b)
− 1 − 0.6 − 0.3 0 0.3 0.6 1
Fig. 7. The fuzzy target angle tuning
C
−1 − 0.3 − 0.1 0 0.1 0.3 1 N Z P
Fig. 6. The membership functions of A, B and C
D
−1 0 1
E
−1 0 1
va η b ∆ (θ a + θ p )
NB NM NS ZE PS PM PB
NB PB PB PB PM PM PS ZE
NM PB PM PM PM PS ZE NS
η a (θ a + θ p ) NS PB PM PS PS ZE NS NM
ZE PM PS PS ZE NS NS NM
PS PM PS ZE NS NS NM NB
PM PS ZE NS NM NM NM NB
PB ZE NS NM NM NB NB NB
0.5
Radius
-0.5
-1
0 10 20 30 40 50 60 70 80 90 100
2
Radius
Balance
0
-2
Swing Up
-4
0 10 20 30 40 50 60 70 80 90 100
Sample; 1 sample = 0.1 second