I nte rna t io na l J o urna l o f   Ro bo t ics a nd   Aut o m a t io n   ( I J RA )   Vo l.   5 ,   No .   4 ,  Dec em b er   201 6 ,   p p .   230 ~ 236   I SS N:  2089 - 4856           230       J o ur na l ho m ep a g e :  h ttp : //ia e s jo u r n a l.c o m/o n lin e/in d ex . p h p /I J RA   Dev elo p m e nt  o f  T ea ch P end ent  bas ed Robo tic  Ar m   f o r Draw ing   using  Mecha troni cs Appro a ch       H a rik ri s hn a n M a dh us u da na n   De p a rtme n t  o f   M e c h a tro n ics   E n g in e e rin g ,   S RM   U n iv e rsity ,   Ch e n n a i,   In d ia       Art icle  I nfo     AB ST RAC T   A r ticle  his to r y:   R ec eiv ed   Au g   27 ,   2 0 1 6   R ev i s ed   Oct  2 9 ,   2 0 1 6   A cc ep ted   No v   1 3 ,   2 0 1 6       T h e   m a in   sc o p e   o f   th is  p ro jec t  is  to   u se   m e c h a tro n ics   a p p r o a c h   t o   d e sig n   a n d   d e v e lo p   a   c o m p lete   h u m a n o id   ro b o ti c   a rm   w h ich   c a n   b e   u se d   to   d ra w  d if fe re n t  f i g u re s.  A   m e c h a tro n ic  a p p r o a c h   is  b a sic a ll y   a   s y n e rg isti c   c o m b in a ti o n   o f   m e c h a n ica l,   e lec t rica l  a n d   c o n tr o l  sy ste m s  su c h   th a t  e a c h   a n d   e v e r y   sta g e   o f   th e   p ro d u c t  li f e   c y c le  o f   th e   f in a l  p ro d u c t  g e ts  o p ti m is e d .   S o ,   th is  a p p r o a c h   w h ich   is  u se d   in   th is  p ro jec t  w o u ld   e n s u re   th a t  th e   r o b o ti c   a rm   w h ich   w o u ld   b e   t h e   f in a l  p ro d u c t   w o u ld   h a v e   it s  d e sig n   m e tri c s  o p ti m ise d   a t   e a c h   a n d   e v e r y   sta g e   o f   it s  d e v e lo p m e n t  c y c l e .   T h e   m o ti v e   o f   d e v e l o p i n g   th is   a r m   is  to   e n su re   th a t  th e   f in a l  a rm   w h ich   is  p ro d u c e d   c o u ld   b e   e a sily   a tt a c h e d   to   th e   c o m p lete   h u m a n o id   r o b o t   a n d   w o u ld   e n a b le  it   to   d ra w   a n y   k in d   o f   c o m p lex   f ig u re s u sin g   h ig h ly   a c c u ra te t e a c h   p e n d e n t  m e c h a n ism .       K ey w o r d :   C o n tr o l  a r ch itect u r es a n d   p r o g r am m i n g   E n ter tain m e n t  r o b o tics   L ea r n i n g   an d   a d ap tiv e  s y s te m s   P h y s ical  h u m a n - r obot   i n ter ac tio n   T ea ch   p en d en t b ased   s y s te m s .   Co p y rig h t  ©   201 6   In s t it u te o f  A d v a n c e d   E n g i n e e rin g   a n d   S c ien c e .    Al l  rig h ts  re se rv e d .   C o r r e s p o nd ing   A uth o r :   Har ik r is h n a n   Ma d h u s u d an a n ,   Dep ar t m en t o f   Me ch atr o n ics  E n g i n ee r i n g ,   SR M  U n i v er s it y   C h en n ai,   I n d i a ,   E m ail:  h ar i_ m ad h u s u d h an a n @ s r m u n i v . ed u . i n         1.   I NT RO D UCT I O N   Hu m an o id   r o b o ts   ar e  b ec o m i n g   q u ite  p o p u lar   n o w   a  d a y .   Hu m an o id s   ar e  n o t h in g   b u t  h u m a n   li k e   r o b o ts   w h ic h   is   ca p ab le  o f   ex h ib iti n g   co m p le x   ac tio n s   w h ic h   a  h u m a n   is   ca p ab le  o f   d o in g .   T h e  ar m   is   o n e  o f   th e  m o s t  i m p o r tan t  p ar t  o f   th e   h u m a n o id   r o b o t  as  w it h o u t  it   th e  r o b o t  ca n n o t  b e  ca lled   a  h u m a n o id   its el f   as   su c h .   T h e  ar m   s h o u ld   b e  ca p ab le  o f   ca r r y in g   o u t  m o s t  o f   th e  co m p le x   ac tiv i ties   as  s u ch   p ick i n g   o b j ec ts ,   h o ld in g ,   w r iti n g ,   d r a w in g   et c.   Dr a w in g   is   co n s id er ed   as   a  v ital   p ar t  o f   h u m an o id   a ctiv itie s   b ec a u s e,   it   in v o l v es  a  lo t  o f   p lan n in g   a n d   ac tu atio n   i n v o l v ed   u n li k e  o th er   ac tiv ities .   So ,   i n   th is   p ap er   th e  d etailed   id ea   ab o u t  h o w   a  r o b o tic  ar m   ca n   b e  d ev elo p ed   u s in g   a  m ec h a tr o n ics  ap p r o ac h   w h ich   w o u l d   s tate  m ec h a n ical,   elec tr ical  an d   p r o g r a m m in g   as p ec ts   o f   d esig n   is   co v er ed .   T h e  m eth o d s   w h ich   ar e  u s ed   t o   in co r p o r ate  th e  d r a w in g   p r o ce d u r e  u s in g   a  r o b o tic  ar m   co n s id er   r ea l   ti m e  s ce n ar io s .   T h at  i s ,   w h ile  teac h i n g   a  p er s o n   o r   a  s m all  c h ild   to   d r a w   a n   u n k n o w n   f i g u r e,   w e  u s u all y   teac h   th e m   m a n u a ll y   b y   h o ld in g   th eir   h an d s   an d   d r a w i n g   alo n g   w it h   t h e m   o r   w e  j u s t  s h o w   t h e m   h o w   th e  f i g u r e   w h ic h   is   to   b e  d r a w n   lo o k s   an d   m a k e  t h e m   p r ac tis e  t h e  f ig u r es  u n til  th e y   g et  p er f ec tio n .   A   s i m ilar   p r o ce d u r e  is   in v o lv ed   i n   th e  p r o g r a m m i n g   a s p ec t  o f   o u r   r o b o t  to o .   T h e  b asic  o p er atio n   m o d e  w h i ch   w ill  b e  u s ed   to   en ab le  t h e  r o b o t  to   d r a w   f i g u r es  is   t h e  teac h   p en d e n t  b ased   m ec h a n i s m   i n   w h ic h   t h e  u s er   w il l  h av e   to   teac h   th e  h u m an o id   r o b o t h o w   to   d r a w   b y   h o ld in g   t h e  r o b o t h an d   an d   d r a w   alo n g   w it h   it.   T h is   en tire   p ap er   is   s tr u ct u r ed   in   t h e  f o llo w in g   w a y .   T h e  s e ctio n   I I   d etails  t h e  m ec h a n ical   asp e cts  o f   th e  r o b o tic  ar m   d esig n   an d   also   co v er s   t h e  ac t u ato r   p lace m en t   d etails.   T h e  s ec ti o n   I I I   co v er s   t h e   i m p le m en ta tio n   o f   th e  p r o g r a m m in g   asp ec t  th at  i s   u s i n g   th e  teac h   p en d an t  m et h o d .   T h e  s ec tio n   I V  d is cu s s es   ab o u t th e  co n cl u s io n   an d   t h e  f u tu r e  e n h a n ce m e n ts   y et  to   b e  m ad e  in   t h is   p r o j ec t.   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ RA   I SS N:  2089 - 4856       Dev elo p men t o f Tea ch   P e n d en t b a s ed   R o b o tic  A r m  fo r   Dra w in g   u s in g   . . .   ( Ha r ikri s h n a n   M. )   231   2.   DE S I G N  CO NCEP T   O F   RO B O T I C  ARM     Fo r   a  s u cc e s s f u l  ac tu a tio n   alo n g   a ll  r eq u ir ed   d ir ec tio n s   f o r   d r a w in g ,   a  m i n i m u m   o f   t h r ee   d eg r ee   o f   f r ee d o m   ar m   i s   r eq u ir ed   f o r   d r a w in g   s i m p le  u n ip lan ar   2 - D  f ig u r es  [ 1 ] .   I n   t h is   p r o j ec t   a  t h r ee   d eg r ee   o f   f r ee d o m   ar m   h as  b ee n   d e v el o p ed   in itiall y   i n   o r d er   to   test   th e  p r o g r a m m i n g   i m p le m e n t atio n .   T h e  o v er all  s ch e m atic  o f   t h e  r o b o tic  ar m   i s   as s h o w n   i n   th e  Fig u r e  1 .         Fig u r e  1 .   C A D  m o d el  o f   t h e  b asic r o b o tic  ar m   d ev elo p ed   in i tiall y   f o r   test i n g   t h e  p r o g r a m m in g   i m p le m en ta tio n .       T h e  b ase  m o to r   h as  b ee n   u s ed   f o r   s h o u ld er   r o tatio n   in   t h e  ac tu al  h u m a n o id   r o b o t.  T h e  m o to r   attac h ed   to   th e  b ase  m o to r   is   u s ed   f o r   li f ti n g   th e  e n d   ef f ec t o r   w h ic h   i s   th e  d r a w i n g   eq u ip m en t  a w a y   f r o m   t h e   d r a w in g   p la n e.   Ho w e v er ,   t h e  ac tu al  r o b o tic  ar m   w o u ld   b e  m u c h   m o r e  co m p le x   an d   w o u ld   h a v e  m an y   m o r e   ad d ed   d eg r ee s   o f   f r ee d o m .   T h is   t h r ee   d eg r ee   o f   f r ee d o m   ar m   is   q u i te  s u f f icie n t  to   i m p le m en t  o u r   p r o j ec t   s p ec if ic  p u r p o s e  an d   tes t th e  p r o g r a m   f u n ctio n al it y .   T h e  Dy n a m i x el  M X - 6 4 T   s er v o   ac tu ato r s   ar e  u s ed   i n   all  t h e  th r ee   j o in ts .   T h ese  s er v o s   ar e  ch o s en   s p ec if icall y   b ec au s e  t h e  s h a f t  p o s itio n al  f ee d b ac k   o f   t h e  s er v o   en co d er   is   q u i te  p r ec is e  an d   ac cu r ate,   w h ic h   i s   v er y   e s s e n tial   f o r   teac h   p en d en t  i m p le m en tatio n .   Mo r eo v er ,   it  ca n   p r o v id e  a  s tall  to r q u e  ar o u n d   6 . 4   N m   w h ic h   also   s ati s f ies t h e  ac tu a l r eq u ir e m en t.   T h e  lin k s   ar e  m ad e  u s i n g   alu m i n iu m   6 0 6 1   T - 6   g r ad e  allo y   m ater ial  o f   1 . 2 m m   t h ick n es s .   T h e  ac tu al  ar m   u s ed   in   th e  p r o j ec t is as sh o w n   in   t h e  Fig u r e  2 .         Fig u r e   2 .   A ct u al  r o b o tic  ar m   a ttach ed   w it h   a  p en   as its   e n d   ef f ec to r ,   u s ed   f o r   test i n g   th e  d e v elo p ed   p r o g r am .       T h e  o v er all  s y s te m   elec tr ical   s ch e m atic   o f   t h e  r o b o ti c  ar m   i s   as  d ep icted   i n   t h e  Fi g u r e   3 .   T h e  R asp b er r y   P i 2   m o d el  B   h as b ee n   u s ed   as   a  ce n tr al  p r o ce s s o r   r u n n i n g   R a s p b ian   W h ee z y   s y s te m   s o f t w ar e  w it h   P y t h o n   lib r ar ies  i n s tal led   in   it   [ 7 ] .   A   s tan d ar d   SMP S  is   u s e d   to   p r o v id e  r eg u lated   p o w er   s u p p l y   to   v ar io u s   co m p o n e n t s   o f   t h e  s y s te m s .   Var io u s   i n p u t  a n d   o u tp u t  co m p o n en ts   s u c h   as  k e y b o ar d ,   m o u s e  an d   m o n i to r   d is p la y   h as  a l s o   b ee n   co n n e cted   to   th e  ce n tr al  p r o ce s s o r .   T h e  Dy n a m i x el  s er v o   m o t o r s   ar e  c o n n ec ted   s eq u en tiall y   a s   s h o w n   i n   th e  F ig u r e   3 ,   w i th   o n e  a n o th er .   On e  en d   o f   th e  s er v o   p o r t  is   d ir e ctl y   in ter f ac ed   w it h   th e  ce n tr al  p r o ce s s o r   th r o u g h   th e  USB   to   Ser ial  co n v er ter   d ev ice  [ 4 ] .   T h e  p o w er   s u p p l y   i s   co n n ec ted   to   th e   o th er   en d   p o r t o f   th e  s er v o .   I n   o r d er   to   u n d er s tan d   th e  d ata  an d   p o w er   tr an s m is s io n   w it h i n   th e  s er v o   s er ies  t h e   ex p lo d ed   v ie w   o f   th e  i n ter n a l c o n n ec tio n   d i ag r a m   is   as s h o wn   in   t h e  Fi g u r e   4.   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 9 - 4856   IJ RA    Vo l.   5 ,   No .   4 ,  Dec em b er   201 6 :   2 3 0   –   2 3 6   232     Fig u r e  3 .   Ov er all  elec tr ical  s y s te m   s ch e m atic  o f   th e  r o b o tic  ar m           Fig u r e  4 .   I n ter n al  co n n ec tio n   d iag r a m   o f   D y n a m ix el  s er ies  m o to r   an d   in ter f ac e  w it h   ad j ac en t  m o to r s .       T h e  d ata  is   s er iall y   tr an s m itt ed   in   b et w ee n   t h e  ad j ac en t  s er v o   m o to r s   an d   th e   p o w er   s u p p l y   i s   p r o v id ed   at  o n e  en d   o f   th e  s er ies  o f   m o to r   co n n ec tio n   as   s h o w n   i n   th e  Fi g u r e   4 .   So ,   th ese  s m ar t  s er v o s   co n s id er ab l y   r ed u ce s   th e  co n n ec t io n   a n d   in ter f ac i n g   i n   b et w ee n   v ar io u s   m o to r s   an d   m o r eo v er   th e  d ata   tr an s m is s io n   b et w ee n   v ar io u s   m o to r s   i s   ca r r ied   o u t  u s in g   s p ec if ic  I D   p r o v id ed   f o r   ea c h   a n d   ev er y   m o to r   co n n ec ted   i n   th e  s er ies  w h ic h   m ak e s   it  m u ch   m o r e  ef f icie n t  in   ter m s   o f   p r o g r a m m in g   to   h an d le  th e s e  m o to r s   [ 2 ] .       3.     I M P L E M E NT AT I O N  O F   T E A CH   P E ND E NT   M O DE   Usi n g   th i s   m et h o d ,   ev e n   a  co m p lex   f ig u r e  ca n   b e  m ad e  to   d r a w   b y   th e   r o b o t  v er y   clea r l y   a n d   th e   ac cu r ac y   m o s tl y   d ep en d s   u p o n   th e  u s er   an d   n o t  t h e  r o b o t  in   th is   ca s e  b ec a u s e,   t h e  u s er   i s   g o i n g   to   h o ld   th e   r o b o t’ s   h a n d   a n d   teac h   w h at  h as  to   b e  d r a w n   an d   th e   r o b o t  ju s t   r ep ea ts   e x ac tl y   w h at  e v er   h as  b ee n   ta u g h t   [ 3 ] .  So   o v er all,   th is   m et h o d   o p er at es in   t w o   s ta g es  w h ic h   ar e  as e x p lain ed   i n   th e  f o llo w i n g .   T h e  f ir s t  s ta g e  o f   o p er atio n   is   th e  R ea d   Mo d e,   in   w h ic h   th e   r o b o t  is   in   t h e  r ec o r d in g   s tate  an d   w ait s   f o r   th e   u s er   to   teac h   i t.  A s   t h e  u s er   h o ld s   its   ar m   an d   m o v es  ar o u n d   th e   f ig u r e  to   b e  d r a w n ,   it   co n ti n u o u s l y   r ec o r d s   ea ch   an d   ev er y   p o s it io n   o f   t h e  s er v o   m o to r   s h af t a n d   co n tin u o u s l y   s to r es it i n   a  d ata b ase.   T h e  p o s itio n   r ea d   co m m a n d   is   m ad e  to   e x ec u te  a f ter   ev er y   5 0 0   m illi s ec o n d s   in ter v al  to   en s u r e  t h at  th e  ac c u r ac y   i s  en h a n ce d   ev e n   th o u g h   t h e  s p e ed   m i g h t g e t c o m p r o m is ed .   Af ter   th e  e n tire   f i g u r e  is   tau g h t  b y   t h e  u s er ,   th e  R ea d   Mo d e  is   co m p lete.   T h e  n ex t  s ta g e  o f   o p er atio n   in   t h is   m o d e  is   th e  R ep ea t  M o d e  in   w h ic h   t h e  ta u g h t  f i g u r e  is   r ep r o d u ce d   ag ain   b y   t h e  r o b o t  o n ly   t h is   ti m e   w it h o u t  t h e  h elp   o f   th e   u s er .   T h e  r ec o r d ed   p o s itio n s   ar e  f ed   s eq u en tiall y   to   t h e  m o to r s   f r o m   th e   d atab ase   w h ic h   co n tai n s   t h e  r ec o r d ed   p o s itio n s   f r o m   th e   p r ev io u s   R e ad   Mo d e  [ 6 ] .   A n   ex a m p le  ca s e  in   w h ic h   t h e  m ap   o f   I n d ia  is   m ad e  to   b e  d r aw n   b y   th e  r o b o t a cc u r atel y   u s i n g   th i s   m et h o d   is   as s h o w n   in   t h e  F ig u r e   5.   Usi n g   t h is   m et h o d   ev e n   co m p lex   f ig u r es  w h ic h   ar e  d if f icu lt   to   b e  p r o g r a m m ed   i s   ea s il y   r ep r o d u ce d   b y   t h e  r o b o t.  C o m b in atio n s   o f   s ev er al  f ig u r es  ar e  also   p o s s i b le  th r o u g h   t h is   m et h o d .   T h at  is   b y   teac h in g   t h e  d r a w in g   p r o ce d u r e  f o r   s i m p le  f i g u r es  s u c h   a s   b asic  s h ap es  a n d   s tr u ct u r es,  co m p le x   f i g u r es   w h ic h   ar e  u s u all y   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ RA   I SS N:  2089 - 4856       Dev elo p men t o f Tea ch   P e n d en t b a s ed   R o b o tic  A r m  fo r   Dra w in g   u s in g   . . .   ( Ha r ikri s h n a n   M. )   233   a  co m b in atio n s   o f   th e s e  b asi c  s h ap es  a n d   s tr u ct u r es  ca n   b e  f o r m ed   u s in g   C o n s tr u cti v e  So lid   Geo m etr y   ( C SG) .   So ,   w h e n e v er   a  co m p lex   f i g u r e  h a s   to   b e  d r aw n   b y   th e  r o b o t  w h ich   i s   u s u a ll y   d if f ic u lt  to   b e  i m p le m en ted   u s i n g   t h e  v i s u al   p er ce p tio n   m et h o d ,   th is   teac h es   p en d en t  m o d e  is   h i g h l y   p r ef er r ed   as  th e  b est   m et h o d .           Fig u r e   5 .   Ma p   o f   I n d ia  r ep r o d u ce d   u s i n g   teac h   p e n d en t  m o d e  b y   t h e  h u m an o id   r o b o tic  ar m       T h e  en tire   p r o j ec t h as b ee n   i m p le m en ted   u s i n g   P y th o n   i n   a  L in u x   b ased   o p er atin g   s y s te m .   T h e  en tire   f lo w ch ar t  o r   th e  s eq u en ce   o f   p r o g r am   f lo w   f r o m   th e  b e g in n in g   f o r   a  v er y   b asic  R ea d   a n d   R ep ea t  o p er atio n   m o d e  h as b ee n   d ep icted   in   t h e   Fig u r e  6 .   I n   th e  v er y   b eg in n i n g   t h e  p r o g r a m   p r o m p ts   t h e  u s er   to   en te r   th e  m o d e  w h ic h   h as  to   b e  ex ec u ted .   I n   th e  R ea d   m o d e,   th e  to r q u e  o f   all  th e  m o to r s   ar e  s w itc h ed   o f f   an d   t h e  en co d er   v al u es  ar e  f ed   b ac k   to   th e   s y s te m   w h ic h   is   co n ti n u o u s l y   s to r ed   in   a  d atab ase.   T h e  in ter v al  af ter   w h ich   t h e  v al u es  h a v e  to   b e   r ec o r d ed   is   d eter m in ed   b ef o r e  ex ec u ti n g   t h e  R ea d   m o d e.   I n   id ea l  ca s e,   5 0 0   m illi s ec o n d s   d ela y   w as  f o u n d   to   b e  s u f f icie n t   to   r ep r o d u ce   a  d ec en t f ig u r e  li k e  as s h o w n   i n   i n   Fi g u r e  5         Fig u r e    6 .   T h is   f lo w c h ar t d ep icts   th e  f lo w   o f   p r o g r a m   p r o ce d u r e  to   i m p le m e n t t h e  T ea ch   p en d en t  m o d e  i n   th e  r o b o tic  ar m   T h e  p r o g r a m   co d e  w h ic h   is   u s ed   to   im p le m e n t  t h e  ab o v e  f lo w c h ar t  is   as  ex p lai n ed   in   t h e  f o llo w i n g .   T h e  p r o g r am m in g   la n g u a g e  u s ed   is   P y th o n   v er s io n   2 . 7 .   So m e  o f   t h e  p r eb u ilt  lib r ar ies  s u ch   as  lib _ r o b o tis   an d   lib _ d y n a m ix el   w h ich   ar e  u til i ze d   f o r   in ter f ac in g   t h e  D y n a m i x el  MX - 6 4 T   s m ar t  s er v o s   w it h   P y t h o n   w it h   t h e  h elp   o f   USB 2 D y n a m i x el  s er ia l c o n v er to r   ar e  d o w n lo ad ed   b ef o r eh an d .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 9 - 4856   IJ RA    Vo l.   5 ,   No .   4 ,  Dec em b er   201 6 :   2 3 0   –   2 3 6   234   #   P r o g r a m   co d e  f o r   im p le m e n t in g   r ea d   m o d e   f r o m lib _ r o b o tis   i m p o r t  *   d= USB 2 Dy n a m i x el_ Dev ice( ' / d ev /tt y USB 0 ' )   #   USB 2 Dy n a m ix e l a ttach ed   to   USB 0   p o r t   i m p o r t ti m e   m 1 = R o b o tis _ Ser v o ( d , 7 )   #   Ser v o   id   7   m 2 = R o b o tis _ Ser v o ( d , 9 )   #   Ser v o   id   9   m 3 = R o b o tis _ Ser v o ( d , 1 1 )   #   Se r v o   id   1 1   m 1 a= m 1 . r ea d _ an g le( )   m 2 a= m 2 . r ea d _ an g le( )   m 3 a= m 3 . r ea d _ an g le( )   i=0 . 0   w h ile  T r u e:       p r in t " m 1   " ,   m 1 . r ea d _ an g le( )     p r in t " m 2   " ,   m 2 . r ea d _ an g le( )     p r in t " m 3   " ,   m 3 . r ea d _ an g le( )     m 1 a= m 1 . r ea d _ an g le( )     m 2 a= m 2 . r ea d _ an g le( )     m 3 a= m 3 . r ea d _ an g le( )     w it h   o p en ( ' v a l.tx t ' , ' a ' ) as  f :       f . w r ite  ( s tr ( i) +' \ n ' )       f . w r ite( " m 1   "   +str( m 1 a) +' \ n ' )       f . w r ite( " m 2   "   +str( m 2 a) +' \ n ' )       f . w r ite( " m 3   "   +str( m 3 a) +' \ n ' )     ti m e. s leep ( 0 . 5 )   #   T im e  d ela y   5 0 0   m ill is ec n d s     i =   i +   0 . 5   #   E n d   o f   p r o g r am   co d e     T h i s   s a m p le  p r o g r a m   w h ic h   is   u s ed   to   i m p le m e n t  t h e  R e ad   o p e r atio n   m o d e,   r ec o r d s   t h e  an g u lar   p o s itio n   v alu e s   o f   t h e  in d i v id u a l  m o to r   s h a f ts   a n d   s to r es it i n   a  f ile  n a m ed   v al. t x t c o n ti n u o u s l y   i n   t h e  f o r m at,     m 1   5 0 . 6 0 8 7   m 2   4 8 . 6 5 8 9   m 3   8 9 . 3 6 5 8     m 1   4 8 . 6 9 8 7   m 2   8 7 . 3 6 58   m 3   8 9 . 3 2 1 4     m 1   7 8 . 6 9 8 7   m 2   6 9 . 1 2 5 4   m 3   7 8 . 3 6 9 5   …     T h e  v alu es  ar e  s to r ed   in   th is   f o r m at  as  lo n g   as  th e  e n d   o f   d r a w i n g   is   s e n s ed   o r   m a n u all y   s to p p ed   b y   th e   p r o g r am m er .   A f ter   th is   p r o ce d u r e,   th e  R ep ea t  m o d e  is   ex e cu ted   in   o r d er   to   r ep r o d u ce   th e  s a m e  d r a w i n g   f o r   w h ic h   th e  p r o g r a m   co d e  is   i m p le m en ted   as  s h o w n   in   t h e  f o ll o w i n g ,     #   P r o g r a m   co d e  f o r   im p le m e n t in g   r ep ea t  m o d e   i m p o r tlib _ d y n a m i x el  as ld   i m p o r t  m at h   i m p o r t ti m e   m 1 a= [ ]   m 2 a= [ ]   m 3 a= [ ]   m =ld . D y n a m i x el_ C h ai n ( d ev = '/ d ev /tt y USB 0 ' , b a u d r ate= 1 0 0 0 0 0 )   w it h   o p en ( " v al . tx t" ) as f :     ar r ay = f . r ea d lin e s ( )   id s   =  [ 7 ,   9 ,   1 1 ]   Evaluation Warning : The document was created with Spire.PDF for Python.
IJ RA   I SS N:  2089 - 4856       Dev elo p men t o f Tea ch   P e n d en t b a s ed   R o b o tic  A r m  fo r   Dra w in g   u s in g   . . .   ( Ha r ikri s h n a n   M. )   235   i=0   j =0   w h ilei<le n ( ar r a y ) :     if   'm 1 '   i n   ar r a y [ i] :       j = j +1       x =a r r a y [ i] . f i n d ( '   ' )       m 1 a. ap p en d ( f lo at( ar r ay [ i] [ x +1 :] ) )     if   'm 2 '   i n   ar r a y [ i] :       x =a r r a y [ i] . f i n d ( '   ' )       m 2 a. ap p en d ( f lo at( ar r ay [ i] [ x +1 :] ) )     if   'm 3 '   i n   ar r a y [ i] :       x =a r r a y [ i] . f i n d ( '   ' )       m 3 a. ap p en d ( f lo at( ar r ay [ i] [ x +1 :] ) )       i=i+1   i=0   w h ilei<j :     if i== 1 :       ti m e. s leep ( 0 . 5 )     an g s 1 = [ m at h . r ad ian s ( m 1 a) , m a th . r ad ian s ( m 2 a) , m at h . r ad ian s ( m 3 a) ]     p r in t  m 1 a,   m 2 a,   m 3 a       m . m o v e_ an g les_ s y n c( id s ,   an g s 1 )     i=i+1   #   E n d   o f   p r o g r am   co d e     T h is   p r o g r a m   b asical l y ,   r etr ie v es  th e   an g u lar   v a lu e s   f o r   ea ch   m o to r   f r o m   th e   v a l.tx t   f ile  an d   w r ites   it  to   th e   m o to r   co n tin u o u s l y .   T h is   p r o ce s s   co n ti n u es  u n til  t h e  en d   o f   v al. tx t  is   r ea ch ed .   T h er eb y   i t  r ep r o d u ce s   ex ac tl y   th e  s a m e  f ig u r e  w h ich   w a s   tau g h t p r ev io u s l y   b y   t h e  p r o g r a m m er   d u r in g   t h e  R ea d   m o d e  o p er atio n .       4.   CO NCLU SI O N   AND   F U T U RE   WO RK   I n   th i s   p r o j ec t,   th e  r o b o tic  a r m   w as  d ev elo p ed   to   i m p le m e n t  teac h   p en d e n t  b ased   d r a w i n g   alg o r it h m   w h ic h   ca n   ea s il y   d r a w   an y   co m p lex   f ig u r es  w it h o u t  th e   in v o lv e m e n t  o f   co n v e n tio n al  co m p lex   p r o g r a m m i n g   p r o ce d u r es.  Mo r eo v er ,   th is   a r m   h as  b ee n   d e v elo p ed   w i th   a  m o t iv e   to   m ak e   it  a s   a   p ar t  o f   a   co m p let e   h u m a n o id   s tr u ct u r e.   Fu r t h er m o r e,   w it h   t h is   m et h o d   as  b asis   a  m u c h   m o r e  co m p le x   s y s te m   w h ich   h as   alr ea d y   b e en   ta u g h t   b asic  f i g u r es  b y   t h e  p r o g r a m m er   ca n   b e  u s ed   to   g en er ate  a n d   d r a w   m u ch   co m p lex   s tr u c t u r es  u s i n g   d if f er en t  s o lid   m o d ellin g   tec h n iq u es s u ch   as C o n s tr u cti v e  So lid   Geo m etr y   ( C SG)   is   b ei n g   d ev e lo p ed   [ 5 ] .       ACK NO WL E D G E M E NT S   T h is   w o r k   w as   s u p p o r ted   in   p ar t  b y   Dep ar t m e n t  o f   Me ch a tr o n ics,  S R M  U n i v er s it y .   T h e  c o m p o n en t s   r eq u ir ed   f o r   th e  co m p letio n   o f   th i s   p r o j ec t  w as  p ar tl y   f u n d ed   b y   SR M  T ea m   H u m a n o id   R o b o tics   R esear c h   C en tr e   L ab .   T h e  g u id an ce   f r o m   all   t h e  f ac u lt y   m e m b er s   o f   Dep ar t m e n t   o f   Me ch a tr o n i cs,  S R M  U n i v er s it y   w a s   r ea ll y   h elp f u l.       RE F E R E NC E S     [1 ]   G ó m e z - Esp in o sa ,   P . D.  L a f u e n te - Ra m ó n ,   C.   Re b o ll a r - Hu e rta,   M . A .   He rn á n d e z - M a ld o n a d o ,   E. H.  Ol g u ín - Ca ll e jas ,   H.   Jim é n e z - He rn á n d e z ,   E. A .   Riv a s - A ra i z a   a n d   J.  Ro d ríg u e z - Re sé n d i z ,   “ De si g n   a n d   Co n stru c ti o n   o f   a   Did a c ti c   3 - DO F   P a ra ll e l  L in k s  Ro b o t  S tati o n   w it h   a   1 - DO F   G rip p e r, ”   Jo u rn a l  o f   A p p li e d   Re se a rc h   a n d   Tec h n o lo g y ,   V o l  1 2 ,   Ju n e ,   2 0 1 4 ,   p p .   4 3 5 - 4 4 3 .   [2 ]   M .   P é re z   Ch a v a rría,  a n d   E.   Est u d il l o   Zam o ra ,   “ De v e lo p m e n t  o f   a   d a ta  a c q u isit io n   sy ste m   f o r  a n   o c e a n o g ra p h ic  b u o y ” ,   Jo u rn a l  o f   A p p li e d   Re se a rc h   a n d   T e c h n o lo g y ,   V o l.   7 ,   N o .   2 ,   A u g u st,  2 0 0 9 ,   p p .   1 9 3 - 2 0 1 .   [3 ]   F e i  Ch a o ,   Zh e n g sh u a i  W a n g ,   Ch a n g ji n g   S h a n g ,   Qin g g a n g M e n g ,   M in   Jia n g , Ch a n g le  Zh o u ,   Qia n g   S h e n ,   “ A   d e v e lo p m e n tal  a p p ro a c h   to   r o b o ti c   p o in t in g   v ia  h u m a n – ro b o t  In tera c ti o n , ”   In f o rm a ti o n   S c ien c e s  2 8 3 ,   2 0 1 4 ,   p p .   2 8 8 – 3 0 3 .   [4 ]   J.  Ro d ríg u e z - Re sé n d iz,  G .   He rre ra - Ru íz,  a n d   E.   A .   Riv a s - A ra i z a , “ A d ju sta b le  S p e e d   Driv e   P ro jec t  f o r  Tea c h in g   a   S e rv o   S y ste m s Co u rse   L a b o ra to ry , ”   IEE E  T ra n s.  Ed u c . ,   V o l .   5 4 ,   No .   4 ,   No v e m b e r,   2 0 1 1 ,   p p .   6 5 7 - 6 6 6 .   [5 ]   F a e z   A h m e d ,   Ka l y a n m o y   De b ,   Bish a k h   B h a tt a c h a ry a ,   “   S tru c t u ra l  t o p o lo g y   o p ti m iza ti o n   u si n g   m u lt i - o b jec ti v e   g e n e ti c   a lg o rit h m   w it h   c o n stru c t iv e   so li d   g e o m e tr y   r e p re se n tatio n , ”   A p p li e d   S o f t  Co m p u ti n g ,   Vo l.   3 9 ,   F e b r u a ry   2 0 1 6 ,   p p .   2 4 0 - 2 5 0 .   Evaluation Warning : The document was created with Spire.PDF for Python.
                      I SS N :   2 0 8 9 - 4856   IJ RA    Vo l.   5 ,   No .   4 ,  Dec em b er   201 6 :   2 3 0   –   2 3 6   236   [6 ]   G u a n fe n g   S u n ,   T e tsu o   S a w a ra g i,   Yu k io   Ho rig u c h i,   Hiro a k i  Na k a n ish i,   “ Kn o w led g e - In ten siv e   Tea c h in g   A ss istan c e   S y st e m   f o r  In d u strial  R o b o ts  U sin g   Ca se - Ba s e d   Re a so n in g   a n d   Ex p lan a ti o n - Ba se d   L e a rn in g , ”   1 9 th   IF A C  W o rld   Co n g re ss ,   Vo l.   4 7 ,   Iss u e   3 ,   2 0 1 4 ,   p p .   4 5 3 5 - 4 5 4 0 .   [7 ]   A n g e l e s Ho y o ,   Jo se   L u is  G u z m a n ,   Jo se   Ca rlo s M o re n o ,   M a n u e l  Be re n g u e l,   “ Tea c h in g   Co n tro l  En g i n e e rin g   Co n c e p ts  u sin g   Op e n   S o u rc e   to o ls  o n   a   Ra sp b e rry   P i  b o a rd , ”   IF A C  W o rk sh o p   o n   In tern e t  b a se d   c o n tr o l  e d u c a ti o n   IBCE  1 5 ,   V o l .   4 8 ,   Iss u e   2 9 ,   2 0 1 5 ,   p p .   9 9 - 1 0 4 .       Evaluation Warning : The document was created with Spire.PDF for Python.