Professional Documents
Culture Documents
B. Jaganatha Pandian
II.
I.
SYSTEM DESCRIPTION
INTRODUCTION
916
III.
r + Mg sin Mr ( ) 2 = 0
2 + M
R
(1.1)
NE
1
Degree of membership
2 + M r = Mg
R
(1.2)
The relation between the beam angle alpha and the gear
angle theta is approximately given by
d
=
L
PS
PE
-0.5
0
e
0.5
0.4
0.2
(1.3)
Degree of membership
NDE
1
(1.4)
NDS
ZDE
PDS
PDE
-0.5
0
de
0.5
0.8
0.6
0.4
0.2
0
(1.5)
-1
(1.6)
NDU
1
Degree of membership
d 2 x M * g *
=
J
dt
( 2 + M)
R
ZE
0.6
0
-1
dx d 2 r
=
dt
dt
NS
0.8
d
J
r = Mg
2 + M
L
R
METHODOLOGY
NDSU
ZDU
PDSU
PDU
-0.5
0
alpha
0.5
0.8
0.6
0.4
0.2
0
-1
917
0.6
0.4
du
0.2
0
-0.2
-0.4
-0.6
1
0.5
1
0.5
-0.5
de
-0.5
-1
-1
Algorithm:
Initialize x randomly ( x is the solution)
Initialize the temperature T
For k iterations
Set xi = x + x ( x is the random change)
de
PE
PS
ZE
NS
NE
NDE
ZDU
NDSU
NDU
NDU
NDU
NDS
PDSU
ZDU
NDSU
NDU
NDU
ZDE
PDU
PDSU
ZDU
NDSU
NDU
PDS
PDU
PDU
PDSU
ZDU
NDSU
PDE
PDU
PDU
PDU
PDSU
ZDU
Where f ( x) is:
( v is the parameters width and centers of all 15 gaussian
membership functions)
Generate fuzzy structure A with x
Evaluate the ball and beam sytem with the
fuzzy logic controller A
For p iterations
E = s. p. p.v.
f ( x) =
( E) 2
p
IV.
RESULTS
The objective of this ball and beam system is for the ball to
correctly settle in the given position in the beam. If
918
Degree of membership
45
40
35
Best Function Value
PDSU
30
NDUZDU
NDSU PDU
0.8
0.6
0.4
0.2
0
25
-1
20
-0.5
15
0
alpha
0.5
10
5
0
50
100
150
Iteration
NS
Degree of membership
du
0.2
PSZEPENE
0.8
-0.2
0.6
-0.4
1
0.5
0.4
1
0.5
-0.5
0.2
de
-0.5
-1
-1
0
-1
-0.5
0
e
0.5
Degree of membership
ZDE
NDEPDS
A. Simulation
The ball position was kept at a distance 35cm from the
reference point in the simulation and the desired position was
set as 20cm from the reference point. The system response
under un-tuned FLC is given in Fig.11. Fig.12 shows the
system response under tuned FLC.
NDSPDE
0.8
0.6
0.4
0.2
0
-1
-0.5
0
de
0.5
919
35
40
35
25
Ball's position (cm)
30
20
15
10
5
200
400
600
No. of samples
Fig. 11. Output response of un-tuned fuzzy.
30
25
20
800
15
10
4
6
Time (sec)
Fig. 14. Output response of tuned fuzzy.
30
25
Tuned
2.9308
3.3348
Un-tuned
44.7616
10.2139
20
50
100
150
No. of samples
Fig. 12. Output response of tuned fuzzy.
200
20.5
20
19.5
Ball's position (cm)
B. Real-time implementation
The ball position was kept at a distance 35cm from the
sensor in the beam and the desired position was set as 20cm
from the sensor. The response is observed and logged using
the Arduino and MATLAB setup. Fig.13 and Fig.14 are the
corresponding output responses.
19
18.5
18
17.5
17
36
16.5
34
16
32
30
28
21
26
20
Ball's position (cm)
24
22
20
18
16
MSE
Simulation
Real-time
4
6
Time (sec)
Fig. 13. Output response of un-tuned fuzzy.
4
6
8
Time (sec)
Fig. 15. Regulatory response of un-tuned fuzzy.
19
18
17
16
15
14
13
920
6
8
10
Time (sec)
Fig. 16. Regulatory response of tuned fuzzy.
10
V.
CONCLUSION
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
Arduino Atmega328
Mass of the ball, M 300g
Radius of the ball, R 2cm
Lever offset,
d 7cm
REFERENCES
[1]
[2]
Simulated Annealing.
[3]
[4]
Tahsin Alp Yanar, Zuhal Akyrek, Fuzzy model tuning using simulated
annealing, Expert Systems with Applications 38 (2011) 81598169.
[5]
[6]
Claudio Moraga, Michio Sugeno, Enric Trillas, Optimization of fuzzy ifthen rule bases by evolutionary tuning of the operations, 39th
International Symposium on Multiple-Valued Logic, 2009.
[7]
Available: http://www.mathworks.in/discovery/simulated-annealing.html
921