Page 55 - The Unofficial Guide to Lego Mindstorms Robots
P. 55

44



























          Flip the robot over and attach the wires as shown. The motors are attached to output A
          and output C, while the light sensor is attached to input 2.





























          Some Tricky Programming

          It's surprisingly hard to convince  our  robot to follow a black line  on the floor. (A lot of things in mobile robotics are
          urprisingly hard, as we discussed in C hapter 1, Robotics and MINDSTORMS.)

          The simplest way to describe the program is this:
   50   51   52   53   54   55   56   57   58   59   60