It’s time to code your robot with blocks! In this lesson, you'll explore coding your VEX AIM Coding Robot for the first time using VEXcode AIM. You'll learn how to code the robot to move straight ahead, precisely passing between two barrels on the field. Discover how your code directly controls the robot's movement!
Watch the video below to learn about:
- Using the Move for block in a project
- Changing the distance parameter in a project
- Downloading, running, and starting a VEXcode AIM project
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 blocks compared to driving or Button Coding? 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 VEXcode to move the robot to a location.
- What is a skill you have that you think will help you be successful with coding in VEXcode?
Guided Practice
Now that you have learned about and discussed coding the robot, it is your turn to practice!
Step 1: Set up the field as shown below.

Step 2: Model the movements of the robot needed to complete the task using Drive mode.
- Your task is to drive the robot from the blue barrels to the orange barrels passing between each set. Document your planned path from driving, then, make a plan for how to code that movement.
- Use this task card (Google / .docx / .pdf) to guide your practice.
- Pro Tip: Make sure that each member of the group has a turn to both drive and record, so that you can have meaningful collaborative discussions as you create a shared plan.
Step 3: Code the robot to complete the task.
- Your task is to use your planned path from Step 2 to code the robot in VEXcode AIM to move from the blue barrels to the orange barrels, passing between each set.
- Use this task card (Google / .docx / .pdf) to guide your practice.
- Pro Tip: Move back to Step 2 and do additional practice driving if you get stuck while coding the robot. Driving can help you to solve problems like determining the distance to move between the barrels.
Step 4: Explore! Move between driving and coding to iterate on your project and improve your solution.
- Together with your group, brainstorm ways to make your project better.
- Drive the robot to test out your ideas, and choose one to start with.
- Iterate on your project to make it match the new driven behaviors.
- Continue to move between driving and coding to iterate on your project and find the best strategy to complete the task!
Resources for Practice:
The articles linked here are available if you need additional support while completing the activity.
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:
- What was your strategy for completing practice? How does that strategy relate to your planned path? Why do you think it was successful? Be specific in your answers.
- How did you use both Drive mode and VEXcode to complete the task? How did your group collaborate on driving, coding, and iterating on your project?
- Now that you have created your first VEXcode project, what did you notice about coding with VEXcode that is different than Button Coding? What did you notice that is similar to Button Coding?
- What is something you learned through practice that built onto what you saw in the video?
Select Next > to move on to the next lesson.