- :-

Topics Covered

  • Color Sensor
  • Forward Until Red
  • Lesson Links

    Check Your Understanding:
    1. 1. What does this program do when run?
    2. Move forward when the robot sees a red object
      Move forward until the robot sees a red object
      Move backward when the robot sees a red object
      Move faster when the robot sees a red object
    Mini Challenge

    Mini Challenge 1: Forward to Stop Line

    In addition to signs and lights, self-driving cars also need to obey pavement markings, like this stop line telling where to stop.

    Modify your Color Sensor attachment, so that it faces downward,
    and program your robot to drive forward until it reaches the line.

    COLOR SENSOR (DOWN) ATTACHMENT*
    *ACTUAL DESIGN MAY VARY
    Where can I find the instructions?

    The program is very similar to the "ForwardRed" program.

    Program the robot to move forward until it sees the line color

    + hint