lease cite this paper as: international journal of electrical...
TRANSCRIPT
PIn
[Escr
Please cite thisnternational Jo
A
Dan
Fuzzy have eThis pprincipcontroexperiwithinevalua
1 Traditof theimpleand toby Loexprematheseveramost r Fuzzy20 stuintrodsuch aHoweand thcurrendiscus GUNTball-bhold tdevelorelativshould On thintuitifuzzy orientimpledigita Fuzzycomp
riba texto]
s paper as: ournal of Electr
An Edu
niel Zaldivar,
aD
controllers havenabled designepaper presents ples at undergr
ol study aims toments. The pr
n the Electronication of their im
1. Introdu
tional methode system to beementation of oo difficult orofti Zadeh [1]sses operatioematical equaal successful robust and eas
y control is anudents per semduction of fuzzas an educatioever, the numbhe existing onnt available fssed below.
T [7] providebeam model wthe ball in a opment softwve high cost ad be rather co
he other side, tive way. It pr
logic gates Atation aims toementation, it al based system
yTECH [9] isletely graphic
rical Engineeri
ucationu
, Erik Cuevas
epartamento dAv. R
ve gained populers to control coan educationalraduate level b accompany stuoposed educati
cs Department impact in the stud
ction
ds to control ae controlled. Athe control al
r impossible to] which helps onal laws of ations. Such lfuzzy controlsy to impleme
n elective courmester at eachzy control cononal platform ber of commenes are either tfuzzy logic l
es an introducwhich acts as a
specific positware FSH-Sheand large dimensidered as a
the CE124 [8]rovides a scheAND & OR, o implement does not prov
ms.
a family of cal and based
ing Education,
nal Fuzusing L
s, Marco A. PEdga
de ElectrónicaRevolución 150
larity in the pasomplex system platform base
by providing audents to the leional platform in the Universitdent performanc
any dynamic sAn accurate apgorithm. Unfoo model accuto reduce the
f a control slinguistic term approaches i
ent algorithms
rse at the secoh academic yencepts to underadically helprcially availabtoo expensiveaboratory kit
ction to digitaa mechanical stion by tiltingell and then censions have ydemonstrative
] has been desematic panel NOT blocks
fuzzy systemvide convenien
fuzzy logic aon ISO 9000
Volume 50, Nu
zzy-basLEGO
Pérez-Cisneroar O. Palafox
a, Universidad00, Guadalaja
Abstract
st few decades wms through lingued on LEGO© a simple and earning of fuzzyhas been succ
ty of Guadalajace are both prov
system requirepproximation ortunately, mo
urately. Fuzzy e complexity system in linms are expresin the literaturs.
nd year of Eleear. It has beeergraduates is ps to understable educationae or relative cots that offer
l real-time cosingle-variablg the beam. Ccompiled to yielded a none tool.
signed to allowcompound wiand a defuzz
ms by using annt programmi
and neural-fuzand IEC 1131
umber 2 (April
sed ConRobot
os, Juan H. Sx
d de Guadalajaara, Jal, Méxic
with successfuluistic-based rulNXT to assist
asy-to-follow ty control fundamcessfully applieara. The descripvided in the pap
e the use of sof the system
ost real systemlogic is a maof controlling
nguistic termssed in the fre, the fuzzy
ectronic Enginen agreed amochallenging a
and the practical fuzzy controomplex to be practical han
ontrol by fuzze system. A fuControl algorigenerate mic
n-practical ind
w users to quiith two fuzzifzifier. It is a nalogue elemng properties
zzy developm1-7 fuzzy logi
2013), Manche
ntrol ps
Sossa, Jose G.
ara, CUCEI co
l implementatioes in contrast tt the learning oteaching setup.mentals by builed to several uption of roboticper.
some knowledm is thus cruciams are nonlineathematical frag nonlinear sy
ms instead ofform of IF-THPD controller
neering. The cong our facultand that experical implicatiool laboratory kused. A quick
nds-on experie
zy methods. Tfuzzy control iithms are init
crocontroller dividual develo
ickly implemefiers, a fuzzy unique hardw
ments. Despitewhich are no
ment tools whoic standards. I
ester University
platform
. Rodríguez,
ons in many fieto traditional mof fuzzy logic . The proposedlding hands-on undergraduate cc experiments a
dge about the al for the succear, highly comamework devystems. Fuzzyf traditionallyHEN rules. Ar [2-6] is one
course attractsty members thimental comp
ons of fuzzy ckits is rather lk overview onence to stude
The setup inclis used to attetially written code. Howevopment setup
ent fuzzy logicstate table, a
ware module e delivering a ormally availab
ose programmIt provides co
y Press, pp. 15
m
lds that methods.
control d fuzzy robotic courses and the
model cessful mplex, eloped y logic y used Among
of the
s about hat the
ponents ontrol. limited n some ents is
ludes a empt to
in the ver, its
which
c in an set of
whose a quick ble for
ming is de and
57-171.
PIn
[Escr
Please cite thisnternational Jo
runtimas InTtargetmost o The Ffuzzy contriMAT It is hardwappliccomprobotilasting So far19]. Twith ctheir therefengin The LwhichLEGOhardwand Cthe dproce In thisfuzzy algoritwo exconceare enplatfofuzzy emergimpactheory The pthe eorientperfor
2 In thirules a
riba texto]
s paper as: ournal of Electr
me modules foTouch, LabVted at financiaof them are re
Fuzzy Logic Tlogic system
ibutions. HowLAB program
important to ware, softwarecations may blemented by rics motivates g impact on th
r, the use of roThey can quickconducted expimmediate infore not surprieering subject
LEGO© NXT h has demonsO© componenware and softwControl. Studenesigning and ssing and sens
s paper, a simcontrol conce
ithm to the stuxperiments us
erns about thencouraged to corm using RO
control issueged from expct of robotics y.
paper is organixperiments. Station project rmance and its
2. The fuzz
s work, the fuand has the str
rical Engineeri
or microcontroVIEW, FIX, aal and commeelatively comp
Toolbox for Mms. Thousandwever, the Matmming environ
consider thae, hardware-sobe learnt throrobotics exercthe learning ohe student.
obotics has bekly become faperiments tha
nterests demonising that mants.
is a friendly, strated its usnts offer interware which arnts can becomtesting their
sing units suc
mple educationepts at undergudents. The casing the fuzzy robot’s oriencode the real-
OBOTC©. Dus as their motieriments and hands-on exp
ized as followSection 3 shwhile Sections evaluation a
zy PD cont
uzzy PD contrructure illustr
ing Education,
ollers, PLCs, pand Matlab/Srcial applicati
plex to test and
MATLAB [10]ds of code extlab© license nment.
at educationaloftware, sizes ough paper-ancises. This woof fuzzy contr
een positive toamiliar to the pat strength thenstrating the ny universities
affordable, me for researcresting possibre suitable for me quickly famr own add-onh as microcon
nal platform bgraduate level.apabilities andy PD controllerntation while t-time applicaturing the whoivation is encothe programm
periments for
ws. Section 2 ehows the LEGn 5 presents thas some conclu
troller
roller [2-6] is rated in Figure
Volume 50, Nu
process controSimulink. A sions of fuzzy d more oriente
is a set of easxamples are ais very expen
l goals can band costs in and-pencil exeork has been drol by connect
o encourage thplatform and
eoretical concebenefits of hs are incorpora
motivational anch and educatbilities. Minds
implementingmiliar with then componentsntrollers, senso
based on LEG. The course s
d limitations or which are timthe second sotion by using ole process, stouraged by thming experienmotivating st
explains the fuGO System he path trackiusions and con
used to imple 1.
umber 2 (April
ol systems andspecial versiologic and neued as a final a
sy-to-use funcavailable sincnsive and requ
be achieved ba variety of plaercises, traditideveloped undting theory an
he student’s intest their ownepts. This expands-on roboating the use o
nd effective etional proposstorms LEGOg complex dee set by taking. They mightors, etc.
GO© NXT is pstarts by theorf LEGO© NXmely providedlves a robotictheir own protudents strong
he robotic applnce. The papetudents’ intere
uzzy PD contrconfiguration
ing setup. Secntributions of
ement robot e
2013), Manche
d popular softon, fuzzyTECuro-fuzzy techapplication too
ctions for builce world-widuires users to
by a wide raatforms. Fuzzyional computder the hypoth
nd exercises yi
nterest on engn ideas based opands student
otics on the clof robotics pla
educational robses [22-29]. AO kits includeesigns for Robg further stepst also interfa
presented to aretically introdXT mobile robd by the lecturc path trackingogramming skgly reinforce lication and ther also discusest on learnin
roller algorithn. Section 4ction 6 discusf the paper are
experiments. I
ester University
tware packageCH for Businhnologies. Howol.
lding and evale users have be familiar w
ange of compy control theoter programmhesis that the ielding a deep
gineering topicon project dest knowledge blassroom [20]ants to teach s
botics platformAt first glanc relatively low
botics, Mechats and adventurace the kit to
assist the learnducing the fuzbots are studierer. The first pg problem. Stkills over the
the learning he visual resulsses on the png the fuzzy c
hm which featushows the r
ses on the studrawn in Sec
It consists of
y Press, pp. 15
es such ness is wever,
luating made
with the
plexity, ory and
ming or use of
per and
cs [11-signing beyond ]. It is several
m [21] ce, the w-cost tronics ring to
o other
ning of zzy PD ed with project tudents LEGO of the lts that ositive control
ures in robot’s udent’s ction 7.
only 4
57-171.
PIn
[Escr
Please cite thisnternational Jo
The vAll arthe de 2.1 Fu As it error
The ra
wheretwo mmembmembThe odetermthat Hof eac The mfollow
Were
positiv
riba texto]
s paper as: ournal of Electr
values Gu, Gere to be determefuzzyficated
uzzyfication
is shown in Fis defined as:
ate is defined
e ce is the curmembership fbership functibership functioutput membmined by expeH=L. It is obsech specific con
membership fuws:
ep is the er
ve.
+ -
Set-point
-
rical Engineeri
en rn
e and Gr corremined either boutput, which
Figure 1, there
as follows:
rrent error, pefunctions (posions, one at ons: error poership functioerimentation erved that its ntrol problem
functions for t
rror positive,
rate
error
de/dt
ep
rp
L
ing Education,
n
Figure 1 Fuespond to the by experimen
h is also known
e are two inpu
error =
rate = (
e is the previositive and negeach input (sitive (ep), eron is shown [4-6]. In ordevalue dependas it is presen
the input vari
en is the er
Figure 2 In
Gr
Ge
( * )
2eL G error
L
( * )
2rL G rate
L
-L
Volume 50, Nu
uzzy PD controoutput gain,
ntation or by tn as “crisp ou
uts to the contr
= setpoint - y
(ce - pe) / sp,
ous error and gative) for ea(one for the rror negative
in Figure 3.er to reduce thds on the limit nted in Section
iables, error a
rror negative,
nput membersh
FuzzyficatiControl Ru
Defuzzyficat
)en
rn
0
1.0
umber 2 (April
ller structure the error gainthe method deutput”.
roller: error a
sp is the samach input (errerror and on(en), rate pos. H and L arhe number of
of universe on 4.1.
and rate, are
rn is the ra
hip functions
ion les tion
u*
( *
2eL G erro
L
( *
2rL G rate
L
ep
L
2013), Manche
n and error ratescribed on [3
and rate (the e
mpling period. ror and rate),ne for the rasitive (rp) andre two positicontrol param
of discourse fo
defined as de
ate negative,
u
Gu
Proc
)or
)e
rp
Ge*error Gr*rate
ester University
te gain respec30]. The value
error´s change
(1
(2
Figure 2 repr, with two paate) and fourd rate negativive constants
meters, it is asor the input va
escribed in [2
(3
and rp is th
y cess
y Press, pp. 15
ctively. e u* is
e). The
1)
2)
resents airs of r input ve (rn).
to be ssumed ariable
2-3] as
3)
he rate
57-171.
PIn
[Escr
Please cite thisnternational Jo
2.2 Fu Accor
AbovMore Accor
Wher
outpu In ordthis winputs(see Ecomb
riba texto]
s paper as: ournal of Electr
uzzy rules an
rding to [4] th
e, ep is the podetails about
rding to [3], th
e 1( ) 2(,R x R ut values.
der to simplifywork, follows s region (IC) Equation 6) wination of the
rical Engineeri
nd defuzzyfica
here are four ru
R1.
R2.
R3.
R4.
ositive error, ethe interpreta
he defuzzyfica
u
( ) 3( ), ,x R x R
y the controllethe design pras it is shownwith only onerror value a
-
Negativ
ing Education,
Figure 3 Ouation
ules to evalua
If error is ep
If error is ep
If error is en
If error is en
en is the negaation of these f
ation method
)(4
)(4 )(
xR
xRHu
4( )R x are the m
er algorithm anroposed in [4-n by Figure 4
ne being usedand its rate.
-H
ve Output
Volume 50, Nu
utput membersh
ate the fuzzy P
p and rate is rp
and rate is rn
and rate is rp
n and rate is rn
ative error, rnfour rules are
employs the c
(3)(2)
)(2
(
(0)
RxR
RxR
membership in
nd save comp-5]. In such a4. Nine equatid depending
0
Zero Output
umber 2 (April
hip functions
PD controller:
p then output
n then output
p then output
n then output
is the negativprovided by [
centre of mass
)(1)(
(1)(3
)
()
xRx
xRxR H
nput values and
puting time, thapproach, the ions are used on which reg
H
Positive
2013), Manche
is op
is oz
is oz
is on
ve rate and rp[4].
s method as fo
) )x
d –H,0, H are
he fuzzy PD coinput space isto calculate t
gion is activa
e Output
Output (u*)
ester University
(4)
p is the positiv
ollows:
(5)
the membersh
ontroller, adops divided intothe control ouated by the c
y Press, pp. 15
ve rate.
hip
pted at o a 20-utput u current
57-171.
PIn
[Escr
Please cite thisnternational Jo
3
The bservo (alreaa commeasuheadintotallyROBO
riba texto]
s paper as: ournal of Electr
3. Experim
block diagrammotors conne
ady embeddedmpass sensor frures the earthng is calculaty prepared to OTC© progra
Ierrorat
erra
ICerror
0 < ra
ICerror
-L < r
rical Engineeri
2(2 e
Lu
L G er
2(2 r
Lu
L G ra
1[ *
2 ru L G ra
1
[ *2 eu L G e
1[ *
2 ru L G r
1[ *
2 eu L G
u L for IC
u L for I
0 1u en IC
mental setu
m for the LEGected to out p
d and transparefrom HiTechni’s magnetic f
ted to the nearbe compatib
am is transpare
-L
C18 or < -L te > L
IC19 rror < -L ate < -L
C13 r < -L ate < L
C14 r < -L rate < 0
-er
-er
F
ing Education,
[ *) eG error
rror
[ *) eG error
ate
]ate for IC
]error for I
]rate for IC
* ]error for
17.C
19.IC
18, 20.IC
up
GO system forports A and Bent to the useric© is used as
field and outprest 1 ̊and ret
ble with the Lent for the use
IC12 -L < error < 0
rate > L
IC15 -L < error < 0
rate < -L
IC4 -error <rat
IC7 -error <-rat
IC5 rror >rate
IC6 rror > -rate
Figure 4 Input
Volume 50, Nu
* ]rr G rate
* ]rG rate f
9, 10.C IC
11, 12.IC IC
13, 14.C IC
15, 16.r IC IC
r both exercise as actuators. r) which is ges input signal
puts a value returned as a nuLEGO NXT©er.
L
-
IC0 < err
rate
IC0 < err
rate
te
te
er
e
IC8 error < -ra
IC3 error < rat
rate
combinations
umber 2 (April
1, 2,for IC IC I
3, 4,for IC IC IC
es is shown inSuch motors
enerated by thein port 1. Suc
epresenting thumber from 0
© electronics,
L
C11 ror < L > L
C16 ror < L < -L
IC1 rror > -rate
IC2 rror > rate
ate
te
2013), Manche
5, 6.IC IC
7, 8.C IC
n Figure 5. T are controllee LEGO brick
ch sensor is a he current hea0 to 359. Thiswhose implem
IC17 error > L rate > L
IC20 error > L rate < -L
IC10 error > L
0 < rate < L
IC9 error > L
-L < rate < 0
ester University
(6)
The system used by a PWM k. On the othedigital compa
ading. The ma third-part senmentation usi
error
y Press, pp. 15
es two signal
er side, ass that agnetic nsor is ing the
57-171.
PIn
[Escr
Please cite thisnternational Jo
4
In thi
explai
as it icontro
error r
to oneEq. (6 4.1 Im This wholebeen positivUsingsoftw
riba texto]
s paper as: ournal of Electr
4. Orienta
is section, the
ined. In order
is depicted byol problem is h
rate r ( /de dt
e out of 20 po6) is used to ca
mplementatio
section starts e strategy for experimentallve limit (L) is
g ROBOTC©are.
ref
rical Engineeri
tion contro
e experiment
to reach the r
y Figure 6. Chandled as fo
), the fuzzy P
ossible regionsalculate the co
on
by explainincontrolling t
ly obtained as set to 360, d
© as developm
f
ing Education,
Figure 5. Di
ol using the
to control the
reference angl
Considering thllows: Using
PD controller i
s (see Figure 4ontroller outpu
ng the implemthe robot’s orand the L valdefining the limment platform
Figure 6. Ob
Figure 7. R
F
de
dt
e
r
PWM
PWM
Volume 50, Nu
iagram of the L
e Fuzzy PD
e robot’s orie
le ref , the ang
he fuzzy appras inputs the
identifies the
4). Once the cut u.
mentation of trientation. Linlue. Since themits of interes
m, students ar
btaining the ang
Robot’s orienta
Fuzzy PD
DiM
M
umber 2 (April
LEGO system
controller
entation ref u
gle’s error eroach presentangle’s error
region (input
control region
the first expene 1 shows the angle variesst for the univre encourage
gle’s error e
ation control
Robot
u
gital input
Compass sensor
2013), Manche
using the fuz
must be calcu
ted on Sectione (see Figur
combination)
has been defi
eriment. Algohe controller’s from 360 toverse of discoud to code th
actual
ester University
zzy PD contro
ulated by ref -
n 2, the orienre 7) and the a
) which corres
ined, one of th
rithm 1 depics gains whicho -360 degreeurse at this prohe real-time c
y Press, pp. 15
oller is
- actual
ntation angle’s
sponds
he nine
cts the h have es, the oblem. control
57-171.
PIn
[Escr
Please cite thisnternational Jo
Ori
In ord
been iFigure Consi
which F
riba texto]
s paper as: ournal of Electr
ientation contr
G
G
G
L
r
a u r
e
e
1: G2: L While 3: e
4:
degree5: e6:
degree7:
8: r
9: e10:
11: r
12: u
13:
14:
robot r15: 16: 17:
robot r18: 19:
der to elimina
included to dee 8 shows the
idering its imp
h is shown in t
Fuzzy PD Algo
1: FUZ
2: Eva 3: if
4:
5: if
6:
7: if
8: 9: if
10:
11: if 12:
rical Engineeri
rol Algorithm
eG : error’s ga
rG : rate’s gai
uG : output’s g
L: universe of
ref : desired an
actual : actual a
u: output of tr: rate of the
: angle’s er
1 : angle’s er
eG • 20, rG •
L • 360
(true)
• ref actual
if( e > ) t
s, to turn th
• e -2
if( e <- )
s, to turn the • e +2
r •1e e
1 • e e • * ee G
r • * rr G
• FUZZY( e ,r
u • uu G*
if ( e >0
rotates antic motorA • motorB • else
rotates clock motorA • motorB •
ate the error eefine the shortinclusion of s
portance, the
the Algorithm
orithm
ZZY( e ,r)
luate the 20
( e >-r) or (
u • (L/(2*
( e <r) or (-
u • (L/(2*
(( e >L) and
u ← (L+r)/2 ((0< e <L) and
u ← (L+ e
((e<-L) and(0 u • (-L+r
ing Education,
m
ain
in
gain
f discourse l
ngle in degree
ngle in degre
the fuzzy conte angle’s errorror
rror obtained
2, uG • 0.5
then
he robot clock
then
he robot anti-
•
•
• m
• mu
r)
•
)then •
lockwise u -u ( e <0) •
wise -u u
Algorithm 1.
while efficie
test way to mesuch code thro
fuzzy PD con
m 2.
regions to fi
e >r) or (- e >
*(2*L-abs( e )
e <r) or (- e <
*(2*L-abs(r)))
(-L<r<0)) or (
d (r>L)) or ((
)/2
0<r<L)) or ((er)/2
Volume 50, Nu
imit
es
ees
troller or
from previou
• defining
• and its
• obtaining
• checking i
kwise
• checking i
-clockwise
obtaining th
obtaining the
multiplying th
ultiplying the
• calling the
• multiplying
• If the angle
If the angle’
Orientation con
ently reaching
eet the referenough a generic
ntroller is des
ind the output
>r) or (- e >-r
)))*( e +r)
<-r) or ( e <-r
))*( e +r)
((0<r<L)and( e
r>L) and(-L< e
e<-L) and (-L<
umber 2 (April
us period of t
the controll
positive limi
the angle’s
if the error
if the error
he angle’s err
e last angle’
he actual ang
e rate by its
e fuzzy funct
the output b
e’s error is p
’s error is ne
ntrol algorithm
g ref , lines 4
nce angle consc example.
scribed as a se
t u
r) then • re
r) then • re
>L)) then
<0)) then
r<0))then
2013), Manche
time
ler’s gains
it
error
is bigger tha
is smaller th
ror rate
s error
le’s error by
gain
ion to obtain
by its gain
positive then
egative then
4 and 6 of th
sidering the a
eparate functi
egions ic1, ic
egions ic3, ic
• regions
• regions ic1
• regions
ester University
an 180
han -180
y its gain
n the output
the
the
e Algorithm
ctual robot po
on (FUZZY(
c2, ic5, ic6
c4, ic7, ic8
ic9, ic10
1, ic12
ic13, ic14
y Press, pp. 15
1 have
osition.
e ,r))
57-171.
PIn
[Escr
Please cite thisnternational Jo
Figure
of 90
300 it
riba texto]
s paper as: ournal of Electr
13: if
14:
15: if
16: 17: if
18: 19: if
20: 21:
Figure 8
e 9 shows the
degrees. Figu
terations. Such
3 :
6 : (
7 :
e
e
if e
e
e
e
rical Engineeri
((r<-L) and (
u • (-L+ e
( e >L) and (
u ← L
( e <-L) and
u ← -L
(( e <-L) and
u • 0 return u
8. Reaching effi
e performance
ure 9, below, s
h graphic is a
3
2
)
2
32
21
2
ref actual
then
e
ing Education,
(-L< e <0)) or (
e )/2
r>L) then
(r<-L) then
(r>L)) or ((
Algorithm 2.
iciently ref , (i.
e of the real-tim
shows the evo
compulsory a
Clockwise
Volume 50, Nu
(r<-L) and (0<
e >L) and (r<-
Fuzzy PD cont
.e. deciding if it
me fuzzy con
olution of pow
assignment for
3
2ref
umber 2 (April
< e <L) then
• regi
• regi
-L)) then •
troller function
t does spin cloc
ntroller for orie
wer for the left
r each student
1
2e
Anticlock
2013), Manche
• regions ic
ions ic17
ions ic19
regions ic18,
ckwise or anticl
entation, cons
( l ) and righ
t during the co
kwise (the shortest w
ester University
c15, ic16
, ic20
lockwise).
sidering an ini
ht ( r ) motor
ourse.
0actual
way to reach ) ref
y Press, pp. 15
itial ers over
57-171.
PIn
[Escr
Please cite thisnternational Jo
5
This scontroactualand thconsid
the an
PD co
the an
veloci
and 30
xref,
riba texto]
s paper as: ournal of Electr
Figu
5. The path
section presenoller. Figure 1l position (xact
he relative robdering a linear
ngle error’s an
ontroller in or
ngular velocit
ities l and 0 of the algori
−
1
e θ
−
−
−
−Pow
er v
eloc
ity
yref
R
ref
rical Engineeri
ure 9. Perform
h tracking
nts an experim10 shows the tual ,yactual) andbot’s distancer gain Kp. 3. θ
nd its derivate
rder to obtain
ty at each wh
r according t
ithm 3 show t
0 50−20
0
20
40
60
80
100
0 50−40
−30
−20
−10
0
10
20
30
40
ing Education,
mance of the real
experimen
ment to contrpath tracking
d the goal posie R to the goaθref and θactual (
e, respectively
the robot’s a
heel, the linear
o their relatio
the procedure.
Figure 10. R
50 100
iter
50 100
de
dt
e
r
Volume 50, Nu
l-time fuzzy co
nt
rol the tracking control procition (xref ,yref
al position. 2.(obtained by a
y. 4. Both sign
angular veloci
r velocity v a
nship which i
.
Robot’s path tra
0 150
iteration k
0 150iteration k
Kp
Fuzzy PD
umber 2 (April
ntroller for the
ng of a givencedure step by) are used in o R is used to a compass sen
nals ( e and
ty . 5. Sinc
and the angula
s explained in
acking control
200
200
ω
ω
k
b
(x,y)
c
v
2013), Manche
orientation pro
n robot’s pathy step as folloorder to obtainregulate the
nsor) are used
r) are used as
ce the robot is
ar velocity n the robot’s m
250
250
ω r
ω l
ωlc
ester University
oblem
h using a fuzows: 1.- The rn the goal anglinear velocit
d to obtain e s inputs to the
s controlled o
are used to
model [29]. Li
300
300
ωr xactual
ac
y Press, pp. 15
zy PD robot’s gle θref, ty v by
and r,
e fuzzy
only by
obtain
ines 28
l,yactual
ctual
57-171.
PIn
[Escr
Please cite thisnternational Jo
5.1 Im In thecode. algori Pa
riba texto]
s paper as: ournal of Electr
mplementatio
e Algorithm 3Line 1 shows
ithm is explain
ath-tracking C
eG , rG ,ref
e
,actualx y
,refx
v,
,lw
1: eG •4.
pK •
2: b • 0the back
3: refx •
While (tr4:
rtc •
5: ltc •
6:
rrot
7: lrot
8: avrot
9: •
10: y
11: x
12:
acx
13: y
14: a
15:
16:
17: ref
18: R
19: 20: r
21:
22:
23:
24: u ← 25:
rical Engineeri
on
, the general ps the controllened to the stud
Control Algori
, uG : error, r
actual : desired
u: output
1,e : angle’s
r: rate of
actualy : actual c
refy : referenc
R : robot’s d
w : lineal an
pK : proportio
, rw : left and
7, rG •0.025,
• 0.25
0.094, c • 0.shaft, c whee
1.0, refy • 1.
rue) • _ _ (motor get count
• _ _ (motor get count
• * / 360rtc PER
• * / 360ltc PER :
ve• / 2r lrot rot
/r lrot rot b
• sin(ave actualrot
• cos(ave actualrot
tual •
actual xx
actualy • actual yy
actual •actual
ex ←ref actualx x
ey ←ref actualy y
f ← 1tan e
e
y
x
R ← 2 2e ex + y
e ← ref actual
r ←1e e
1e ← e e ← * ee G
r ← * rr G
FUZZY( e ,r)
u ← uu G*
ing Education,
procedure to ier’s gains whidents and they
ithm
rate and outpu
and actual an
of the fuzzy
s error and th
f the angle’s
coordinates
e coordinates
distance to t
nd angular ve
onal controll
right angula
uG •1.01, L•3
028, PER • 0.el’s radius,
0
( )portB
( )portA
•
•
•
•
/ 2)
•
/ 2)l
•
•
•
►
►
►
►
►
►
►
►
►
► c
► m
Volume 50, Nu
implement thech have beeny are encourag
ut gains
ngles in degr
controller
he last angle’
error
s
he next point
locities
er’s gain
r velocities
360 • defining
• defining
179 • definiand PER accou
• defining
• reading the
• reading the
• calculating
calculating
• both wheels
• obtaining th
• obtaining th
• obtaining t
calculating
• calculating
calculating
► calculating
► calculating
calculating
calculating R
obtaining the
obtaining the
obtaining the
multiplying t
multiplying t
calling the fu
multiplying t
umber 2 (April
e path trackingexperimental
ged to code it
ees
’s error
t
g gains for th
g the proport
ing robot’s counts for the r
g the robot’s
e right wheel
e left wheel r
the right whe
the left whee
robot’s rotat
he angle’s inc
he distant in
the distant in
the actualx
the actualy
the
actual
the error on
the error on
ref
R
e angle’s err
e angle’s erro
e last angle’s
the actual ang
the rate by i
uzzy function
he controller
2013), Manche
g controller islly obtained anby themselve
he fuzzy cont
ional control
onstants (b lerobot´s wheel
reference coo
robot’s tick
robot’s tick c
eel robot’s ro
el robot’s rot
tions are ave
crement
ncrement on y
ncrement on x
x y
or
or rate
s error
gle’s error by
ts gain
r’s output by
ester University
s exposed as pnd the L values in ROBOTC
roller
ller’s gain
ength of perimeter)
ordinates
counter
counter
otations
tations
raged
y its gain
its gain
y Press, pp. 15
pseudo e. This C©.
57-171.
PIn
[Escr
Please cite thisnternational Jo
Figurerefere
6
This exercithis pElectr This wThe fologic after oretent Both traditicontroExamcorres
riba texto]
s paper as: ournal of Electr
26: if(ufall betw if(u
27: v ←
28:
29: w
30:
31: w
32:
33:
e 11 shows thence trajectory
6. Results
section descrises whose tarpaper have bronics Departm
work considerformer refers t
concepts. Onone year of ftion after a yea
indexes consiional fuzzy cool hands-on
mination after spond to the h
−10−80
−60
−40
−20
0
20
40
60
80
cms
rical Engineeri
u> L)then ► ween L and -L u= L
u< L)then u= -L
R pK ► ro
(2l
bw v u
0.81 exp lwlw
(2r
bw v u
0.81 exp rwrw
motorA ← w
motorB ← w
he performany and the actua
Figure 11. T
and discus
ribes the posirget has beeneen incorporament of the Un
rs two performto an examinan the other hanfinishing the far for both the
ider a universontrol course arobotic subjea year in term
highest mark w
100 −800
0
0
0
0
0
0
0
0
ing Education,
preventing a
obot’s lineal
1)
c
►
►
1)
2
b
c
► o
► a
lw ► applyin
rw ► applyin
Algorithm 3. P
nce of the fuzal trajectory a
The fuzzy contro
sion
itive impact o the motivatioated into an niversity of G
mance indexesation that has bnd, the latter fuzzy course. e practical and
se of forty stuand the remainect. Table 1 ms of the Ave
while the Wors
−60 −40
Volume 50, Nu
an overflow of
velocity scal
obtaining the
avoiding satu
obtaining the
avoiding satur
ng the output
ng the output
Path tracking co
zzy controller re both plotted
oller performan
on students aon for learninelective seco
Guadalajara.
s: the Course Ebeen applied considers a sSuch proced
d non-practica
udents with twning referringshows the v
erage and thest value corres
0 −20cms
umber 2 (April
f the output b
led by a line
e left wheel
uration
right wheel
ration
to the robot
t to the robot
ontrol algorithm
for a genericd in centimete
nce over a path-
after the implng fuzzy contrond-year und
Examination ato student jus
second examindure aims to eal course atten
wenty correspg to those studvalues of thee Worst-Bestsponds to the
0 20s
2013), Manche
by limiting it
ear gain.
velocity
velocity
’s left motor
t’s right moto
m
c path-trackiners.
-tracking task.
lementation orol theory. Allergraduate co
and the Examst after finishinnation that is evaluate the sndees.
ponding to thdents who have Course Exobtained valulowest score.
40 6
Reference traRobot’s traje
ester University
ts value to
r
or
ng task. The r
of hands-on rl the experimeourse taught
ination after ang courses onapplied to st
student’s know
hose who attene attended the
xamination anues. The Best
60 80
trajectoryajectory
y Press, pp. 15
robot’s
robotic ents in in the
a year. n fuzzy tudents wledge
nded a e fuzzy nd the value,
57-171.
PIn
[Escr
Please cite thisnternational Jo
Tablehandstrend have bindex been o
7 Fuzzyindustcontro By usnonlinbasedcourseexperwhile are prof a Lto imExperissuestrend workelearnithe stu Refe [1] L. [2] H.513-5 [3] Hcontro [4] YAnalyAlbuq [5] Econtro1998 I [6] F. applic
Ex
riba texto]
s paper as: ournal of Electr
e 1 presents ths-on robotic cis observed fbeen given toaddresses low
observed for e
7. Conclus
y controllers htrial and acadol courses in m
sing fuzzy lonear systems.
d on LEGO© es. The capabiments using the second so
resented incluLEGO© NXT
mplement contrimental evides for the studto hold the kned through thing of fuzzy cudents.
erences
A. Zadeh, ´F
. Ying, W. Sil520.
H.A. Malki, hol systems´, IE
Y.C Hsu, G. ysis´ Proceedquerque, NM,
. Sanchez, L.ol´, Fuzzy SysIEEE Interna
Lara-Rojo, Ecations´, Journ
Course Examxamination af
rical Engineeri
he Course Exourse are high
for the Examino students attewer values foeither the Cou
Ta
sions
have becomedemic subjectmany technica
gic control, dIn this papeNXT to assi
bilities and lima fuzzy PD c
olves the robouding their cor
as a robust rotrol algorithmence shows anents who havnowledge of fuhe proposed econtrol by con
uzzy sets´. Inf
ler, J. J. Buckl
h. Li, G. CheEEE Transacti
Chen, E. Sandings of the
1997, pp. 141
A. Nuno, Y.Cstems Proceedtional Confer
E.N. Sanchez, nal of Applied
mination fter a year
ing Education,
xamination indher than thosenation after a ending the fuzor students atturse Examinat
able 1. The aver
popular in rts. Such trendal colleges and
designing a cr, the authorsist the learninmitations of Lcontroller. Theot’s path trackrresponding eobotic platform
ms by simplyn increase in tve attended thfuzzy control iexercises. Sucnnecting theor
formation and
ley, ´Fuzzy Co
n, ´New desiions on Fuzzy
nchez, ‘A Fu1997 IEEE
12-1417.
C. Hsu, G. Cdings, 1998. Ience on , 1, (1
D. Zaldivar, d Research an
Fuzzy con
Average 70 55
Volume 50, Nu
dex which she given to stuyear index. A
zzy hands-on tending a trad
tion or the Exa
raged scholar-p
recent decaded has indeed d universities
ontroller is res have presenng of fuzzy cLEGO© NXTe first experim
king task. Bothxperimental rm for teachin
y doing progrthe performanhe hands-on rissues for longch results indry and exercis
d control, Vol
ontrol Theory
ign and stabiy Systems, 2 (
uzzy controlleInternational
Chen, ´Fuzzy PIEEE World C1998), 302-30
´Minimal fuzzd Technology
ntrol course
Best Worst92 60 76 45
umber 2 (April
hows that the udents attendinAgain, the Bes
control coursditional fuzzyamination afte
performance res
es with succestriggered a r
around the wo
elatively simpnted the use ocontrol concepT mobile roboment addresseh algorithms aresults. The pag fuzzy controramming at a
nce and reinforobotic exercisger periods of dicates that thses yet sowin
l. 8, Academic
y: A Nonlinear
ility analysis(1994), 245 –
er for a Multl Conference
PD scheme foCongress on 06.
zy microcontry, 1(2) (2003)
Fuzzy
t Av
2013), Manche
marks for stung a traditionst index showse. On the othy control courer a year index
sults
ssful implemeremarkable aorld.
ple task yet fof a simple epts in undergrots have been s the robot’s
and their requaper has also ol. The platfoa high-level rcement of leases. Similarly
f time for thosehe use of robg a deeper an
c, New York,
r Case, Autom
of fuzzy pro254.
ti-Link Roboe on Robotics
for underactuaComputationa
roller impleme137-147.
y control courrobotic exe
verage 82 72
ester University
udents attendial course. A s
ws that higher her hand, the rse. Same trenx.
entations in savailability of
facing compleducational plraduate enginstudied with
orientation prired additionashown the po
orm enables stlanguage inte
arning fuzzy cy, evidence she students wh
botics motivatnd lasting imp
1965, pp 338-
matica, 26 (3)
oportional-deri
t Control: Sts and Autom
ated robot swal Intelligence
entation for d
rse + hands-onercises
Best 100 97
y Press, pp. 15
ing the similar marks Worst
nd has
several f fuzzy
ex and atform
neering in two roblem al tools otential tudents erface. control hows a o have tes the pact on
-353.
1990,
ivative
tability mation,
wing-up e., The
idactic
n
Worst 73 62
57-171.
PIn
[Escr
Please cite thisnternational Jo
[7] GUGmbH[8] Csystem [9] Fu [10] logic/
[11] LProceFlorid
[12] Cin Au2451– [13] JLEGOTRAN [14] TEngin [15] ANoll, Cours [16] Bengin [17] Procevolum [18] Fsystem [19] PEduca [20] Lsmall, [21] Rprogra [22] Din theConfe [23] DLEGO2011, [24] AelectrAppli
riba texto]
s paper as: ournal of Electr
UNT GeratebH, Fahrenberg
CE124 Fuzzy ms.pdf [Visite
uzzyTech, http
Fuzzy L/index.html;jse
L. Meeden. Ueedings of the da AI Research
C. A. Jara, F. Automatics and –2461.
J. M. Gómez-dO NXT MobNSACTIONS
T. Karp, R. Gneers With LE
A. Behrens, LK. Hameyer
se Into Practic
Beer, R. D.; Ceering. Comm
Kumar, D., eedings of theme 30(1) of SI
Fabiane Barrematic review´,
P. Ranganathation´, Procee
L. Greenwald, low-cost plat
R. Ramli, Mam´, Procedia
D. Martinec ae IEEE Intererence on Syst
D. Zermas, CO Platform, IE pp. 1381-138
A. Vourvopouical activity, ications, Athe
rical Engineeri
bau, GmbH, Rg, Barsbuttel, 2
Logic Traineed on April 20
p://www.fuzzy
Logic Toolbessionid=6524
Using RobotsNinth Florid
h Society, 199
A. Candelas, Robotics usin
de-Gabriel, Abile Robots W
ON EDUCA
Gale, L. A. LEGOs´, IEEE T
L. Atorf, R. Scr, and T. Aacal Engineerin
Chiel, H. J.; anmunications of
and Meeden,e 29th SIGCSIGCSE Bulleti
eto Vavassori, Computers &
han, R. Schultedings of the 2
d, J. Kopena, taforms´, IEE
. M. Yunus a Social and B
and Z. Hurak, rnational Contems and Con
ontrol of a LEEE Internati86.
ulos, F. Liarok2011 Third
ens, Greece, 2
ing Education,
RT 121 Fuzzy 2006. er, http://www
012].
ytech.com/ [V
box for 4973bb2b9c8
s As Introducda Artificial In96.
S. T. Puente, ng a virtual an
A. Mandow, J.With LabVIETION, 54, (20
Lowe, V. MeTRANSACTI
chwann, B. Nach, ´MATLAng´, IEEE TRA
nd Drushel, Rf the ACM 42(
, L. 1998. ASE Technical Sn, 341–344. N
i Benitti, ´Exp& Education, 5
tz, M. Marda2008 ASEE N
´Mobile RoboEE Robotics an
and N. M. IBehavioral Sci
´Vehicular Pnference on Cntrol, Denver,
eader–Followional Sympos
kapis, Brain-cInternational
011, pp. 140-
Volume 50, Nu
Control: Ball
w.control-syst
Visited on Apr
MATLAB, 17e0e086100
ction to Comntelligence Re
F. Torres, ´Hand remote lab
Fernández-LEW for Unde011), 41-47.
edina, and E. IONS ON EDU
Neumann, R. SAB Meets LEANSACTION
R. F. 1999. Us(6).
A robot laborSymposium o
New York: AC
ploring the ed58 (2012), 97
ani, ´Use Of North Midwest
ot Labs: on and Automation
Ishak,´ Robotiences, 15 (20
latooning ExpControl ApplCO, USA. Se
wer Mobile Rosium on Indu
controlled NXl Conference -143.
umber 2 (April
l-on-Beam Us
tems-principle
ril 2012].
http://www1f8 [Visited o
mputer Sciencesearch Sympo
ands-on experboratory´, Com
Lozano, and Aergraduate Co
Beutlich ´GeUCATION, 5
Schnitzler, J. EGO MindstoNS ON EDUC
sing autonomo
ratory for tean Computer S
CM Press.
ducational po8–988.
Lego Nxt MSectional Con
achieving edun Magazine, 1
tic teaching f011), 2528–25
periments withlications (CCptember, 201
obotic Swarmustrial Electron
XT Robot: Teleon Games a
2013), Manche
ser’s Guide, G
es.co.uk/white
w.mathworks.con April 2012
e. In John Hosium (FLAIR
riences of undmputers & Ed
A. J. García-Ceourses on M
eneration NX53, (2010), 80-
Ballé, T. Herorms—A FresCATION, 53,
ous robotics t
aching artificScience Educ
otential of rob
Mindstorms Brnference, 200
ucational and 10(2) (2003) 2
for Malaysian32.
h LEGO MINCA), Part of 1, pp. 28-30.
m Based on thnics (ISIE), 2
e-operating a and Virtual W
ester University
G.U.N.T. Gera
epapers/fuzzy
com/products/2].
H. Stewman, RS), pages 473
dergraduate stducation, 57 (
erezo, IEEE, Mechatronics´,
XT: Building Y-87.
rold, A. Telle,shman Introd(2010), 306-3
to teach scien
cial intelligencation (SIGCS
botics in scho
rick In Engin8.
research goal25-32.
n gifted enric
NDSTORMS N2011 IEEE
he NXT Educa2011 , Rio, G
robot throughWorlds for S
y Press, pp. 15
atebau,
-logic-
/fuzzy-
editor, 3--477.
tudents (2011),
´Using IEEE
Young
, T. G. duction 317.
ce and
nce. In SE-98),
ools: A
neering
ls with
chment
NXT´, Multi-
ational Greece,
h brain Serious
57-171.
PIn
[Escr
Please cite thisnternational Jo
[25] SIEEE/pp. 13 [26] YConfe [27] Confe49-53 [28] Mon thEntert
[29] E
roboti [30] JAutom
riba texto]
s paper as: ournal of Electr
S. Brigandi, /ASME Intern35-139.
Y. Kim, ´Conerence on Con
C.G.L. Cao, erence on Tec3.
M.M da Silva,he Lego Mintainment, Man
E. Cuevas, D.
ics´, Internatio
Jan Jantzen, Tumation , (1998
rical Engineeri
J. Field, Y. national Conf
ntrol Systems Lntrol & Autom
E. Danahy, chnologies for
, J.F. de MagadStorms NXTnaus, Brazil, 2
Zaldivar, Pére
onal Journal o
uning Of Fuzz8) Volume: 87
ing Education,
Wang, ´A LEference on Ad
Lab using a Lmation, Marrak
´Increasing r Practical Ro
alhães Netto, T Platform´, 2010, pp.82-8
ez-Cisneros, M
of Electrical E
zy PID Contro71, Issue: 98, P
Volume 50, Nu
EGO Mindstdvanced Intel
LEGO Mindstokech, Morocco
Accessibilityobot Applicati
´An EducationBrazilian Sy
7.
M. ‘Low-cost
Engineering E
ollers, TechniPages: 1-22.
umber 2 (April
orms NXT Blligent Mecha
orms NXT Moo, 2010, pp. 1
y to Medical ions (TePRA)
nal Robotic Gymposium on
commercial L
Education, 47(
ical University
2013), Manche
Based Multiroatronics Montr
otor System´, 73-178.
Robotics Ed), Medford, M
Game for Trann Computer G
Lego™ platfor
(2) (2010), 13
y of Denmark
ester University
obot System´,réal, Canada,
18th Mediterr
ducation´, in MA, USA, 201
nsit Education Games and D
rm for mobile
2-150.
Department o
y Press, pp. 15
, 2010 2010,
ranean
IEEE 11, pp.
Based Digital
e
of
57-171.