Avoiding Obstacles

Program the Finch to avoid running into objects. When testing your program, remember that the Finch obstacle sensors can be a bit finicky - large, lightly-colored objects (like cardboard boxes) make the best obstacles. Also, remember that a Finch can only sense obstacles that are very close to it (2 to 4 inches away).

For this project, the Finch should do the following:

  1. By default, the Finch should move forward with a green beak.
  2. If the Finch detects an obstacle on the left, it should turn right. The beak should be red.
  3. If the Finch detects an obstacle on the right, it should turn left. The beak should be blue.
Activity Level: