Skip to main content

Lesson 2: Plan Your Own Route

There’s more than one way to reach your goal! In this lesson, you’ll use Button Coding to plan and code different paths to the same location. By testing multiple strategies, you’ll see how sequencing affects movement and discover the best way to navigate with your VEX AIM Coding Robot.

Watch the video below to learn about:

  • Planning a path for your robot.
  • Breaking that path down into a sequence of button presses.

Now that you have watched the video, capture your thoughts in your journal. Answer these questions to guide your thinking and help you prepare for a whole-class discussion: 

  • Does path planning make it easier to use Button Coding? Why or why not?
  • What did you see in the video that supports your assertion?
  • What are two questions you have about path planning that you want to answer to help you use Button Coding effectively?
  • Do you think there are additional paths to reach the AprilTag that were not shown in the video? Why or why not?

Guided Practice

Now that you have watched and discussed the video, it is your turn to practice!

Step 1: Set up the field as shown below.

The AprilTag 0 is on the top right side of the field. The robot is in the bottom left side of the field.

Step 2: Start the activity.

  • Your task is to plan and code your robot to navigate to AprilTag ID 0 using Button Coding.
  • Use this task card (Google / .docx / .pdf) to guide your practice.
    • Pro Tip: Keep track of the order of button presses you use to complete the task with printable buttons or with this Button Coding Planning sheet. Having a visual of your project can help you keep track of the sequence of steps, which will be helpful when you need to find or fix an error in a project.

Resources for Practice:

The article linked here is available if you need additional support while completing the activity.

Wrap-Up

Now that you have practiced coding different paths, it is time to share what you learned. Answer the following questions in your journal to help you reflect on your learning and prepare for a whole-class discussion:

  • How did your group collaborate to choose the paths you coded? What strategy did you use to make decisions together?
  • What more did you learn about planning and coding a Button Coding project after practicing that you did not know before?
  • How did the planning of the project relate to the order of the button presses when Button Coding? Did your plan match your button presses? Explain why or why not.

Select Next > to move on to the next lesson.