Page 343 - Lego Mindstorms
P. 343

Robot 10 • RIS Turtle






               Turtle Step 42





























                   Add the light sensor and some
                   bricks. The round white 2x2 plate is
                   used together with the light sensor to
                   form a rotation sensor. As the plate rotates,
                   the sensor is either blocked by the bumps or
                   exposed, creating a transition in the light sensor value.
                   This transition can be monitored in the program, allowing the robot
                   to measure driving distances and turning angles. The round plate
                   must be close to the light sensor, but be sure it isn’t touching!




























                                                        328
   338   339   340   341   342   343   344   345   346   347   348