Page 147 - The Ultimate Palm Robot
P. 147

Color profile: Generic CMYK printer profile
           Composite  Default screen
                                                      Bots / The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 6






                    130     The Ultimate Palm Robot



                                   6. Set the ServoDirection to 1 (duration can be either 1 for forward or
                                      -–1 for backward), and set the ServoNumber to 1. This will cause
                                      servo one to rotate in the forward direction.









                                   7. In the next ServoStart Block, set the ServoDirection to –1, and the
                                      ServoNumber to 2.
                                   8. Set the properties of the third and fourth components as follows:
                                       ❏ ServoDirection –1, ServoNumber 1
                                       ❏ ServoDirection 1, ServoNumber 2

                                   9. Now look in the palette for the component that has the picture of a
                                      string of Zs. This is the Sleep, or pause program, block. Click on this
                                      icon and add a Sleep block after the second ServoStart Block; add
                                      another Sleep block after the last ServoStart Block.








































           P:\010Comp\Bots\880-6\ch06.vp
           Monday, May 12, 2003 1:06:22 PM
   142   143   144   145   146   147   148   149   150   151   152