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?
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?
After students watch the video and before practicing, come together for a whole-class discussion. Use student answers to the questions provided as the basis for discussion.
As you facilitate the discussion, be mindful of how students are participating in the conversation even when they are not speaking. Remind students of active listening strategies to help them have a more collaborative and fruitful discussion. Encourage students to:
- Make eye contact while speaking and listening.
- Rephrase ideas in their own words.
- Revisit their own ideas as the discussion progresses, to add onto them or change them.
Note students' contributions on the board so students can see and build upon each other's ideas. Encourage students to reference their journals if they need help articulating their thoughts. The journal is a tool to support students' metacognition.
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.
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.
Foreground the group work expectations at the start. Ask questions like:
- How is your group going to get started?
- How can you take turns while coding your robot with Button Coding?
- What is something you can do to be helpful if it is not your turn to code the robot?
Distribute task cards to each student. Remember, the provided task card (Google / .docx / .pdf) is the basis for this guided practice, and can be adapted to best meet the needs of your students. Here are some additional key points about using task cards:
- Encourage students to check off the items in the Practice Checklist to help them monitor their progress during the activity.
- Remind students to try the “Feeling Stuck?” strategy if they need help or additional support.
- Students should use the Success Criteria to help them communicate when they are ready for a teacher check-in to share their practice.
To learn more about the task card, view this article.
Circulate the room as students engage in the practice activity in their groups to discuss their progress and understanding. Ask questions like:
- What happens when you run your project? What do you see happen on the screen of the robot?
- What is your plan for your project? What is the robot going to do first/second/next?
- When you tested your project, did the robot do what you intended? Why or why not?
To read other educators' thoughts about Button Coding, see this conversation in the VEX PD+ Community.
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?
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?
Guide students to share their learning in a whole-class discussion. Help students converge their thinking around shared understandings or learning targets through this discussion.
The questions students answered in their journal are the starting point for discussion. Ask follow up questions to guide students to shared understandings. Follow-up with questions like:
- For sequence observations and evidence:
- Do you agree or disagree? Why? How does your documentation support your claim?
- For new learning from practice:
- Does that align with what other groups learned from practice? Why or why not?
- What are some common ideas that you hear? How would this new learning have impacted how your group completed the activity?
Create a shared map of the buttons, labeling each with its function, and note “tips” that students share to help create artifacts that reflect students' shared understanding of Button Coding so far.
Select Next > to move on to the next lesson.