It’s time to take control—this time with code! In this lesson, you’ll use Button Coding to code your VEX AIM Coding Robot to move to a specific location. By planning your button presses carefully, you’ll see how sequences impact movement and how small changes can make a big difference in reaching your target.
Watch the video below to learn about:
- Using Button Coding to drive and turn the robot.
- Building, starting, and erasing a Button Coding project.
- Using the One Stick Controller with Button Coding.
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:
- What do you notice about moving the robot with Button Coding compared to driving? Write at least three observations.
- What did you see in the video to support your ideas?
- List at least two questions you have about using Button Coding to move the robot to a location.
- How did the order of the button presses change the actions of the robot?
- What is a skill you have that you think will help you be successful with Button Coding?
Guided Practice
Now that you have learned about and discussed Button Coding, it is your turn to practice!
Step 1: Set up the field as shown below.

Step 2: Start the activity.
- Your task is to drive the robot to AprilTag ID 0 then to AprilTag ID 1.
- Use the article linked here for guidance on starting Button Coding with your robot.
- Use this task card (Google / .docx / .pdf) to guide your practice.
- Pro Tip: Make note of what each of the buttons does, and things like starting or erasing a project for yourself as you practice. You can reference those notes during the wrap up discussion with your class.
Wrap-Up
Now that you have practiced, 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:
- Was the order, or sequence, of button presses important in completing the task? Why or why not?
- What evidence do you have to support this idea?
- What is something you learned through practice that is different than what you saw in the video?
Select Next > to move on to the next lesson.