You are on page 1of 1

Programming Bootcamp

Task 5
Don’t cross the line
Challenge: Make your robot drive toward a blue line, but make it stop before it goes over it,
turn around, and then drive forward for 2 seconds.

-For this one, you will need to use a SENSOR block, but program it to see a specific color.
Play around with the SENSOR block to see if you can figure out how to have it recognize
the color blue.

-Here is what the Color Sensor block looks like.

-Remember to think about this step-by-step:


1) Go forward
2) Wait until you see a blue line
3) Stop moving
4) Turn around to face the other way
5) Go forward for two more seconds

-Test your robot with the blue line. When you are ready, bring your robot to Mr. L to get
checked off.

You might also like