Stop at Line

Objective

Use the Color Sensor to stop the robot when a line is detected.

 

Need more info?

View the User Guide.

Build It

Build the following modules using the building instructions available below or the printed booklet included in your brick set.

 

Driving Base

Color Sensor Down

 

Skip this step if the model is already built.

Animation

Play the video to the right to see how the program controls the robot.

Test It

Recreate the program shown below, then download it and run a test.

 

Hints: The Color Sensor is optimized to recognize LEGO® brick colors, so try to use a similar shade of blue when testing the program.

The line may not be detected if the robot turns too quickly.

 

Add a Comment Box to the Canvas (see the purple palette). Describe the robot's behavior in as much detail as possible.

Modify It

Now it’s your turn! See if you can make the Color Sensor detect a different-colored line.

The maximum quantity of an item that can purchased in each transaction is 99.

To inquire about purchasing more than 99 of one item, please call 800-362-4308.

To inquire about purchasing more than 99 of one item, please call 800-362-4738.