ColorSensor
ColorSensor
¢ Build instructions for modifying the front bumper of ADB so that the color sensors are
raised one LEGO module up are included on this website
¢ The two modes you can program the color sensor in: Color Mode and Reflected light
mode
¢ We will use color mode in this lesson
¢ Program your robot to move straight until the color sensor sees black
¢ You will need to use the Wait For block and the Boolean block of the color sensor
¢ Basic steps:
¢ Set the movement motors for your robot (A and E for Droid Bot IV and ADB robot)
¢ Set the % speed for your robot
¢ Start moving straight
¢ Use the wait until block to detect when the color sensor sees black
¢ Stop moving
In previous lessons, you learnt how to configure your robot. (See Configuring Your Robot
Lesson)
Configure robot
Start moving
¢ This lesson was created by Sanjay Seshan and Arvind Seshan for Prime Lessons
¢ More lessons are available at www.primelessons.org