Coding with VEXcode V5

VEXcode V5 is the coding environment for programming the VEX V5 Robot. The following article provides links to other articles that will help you start coding with VEXcode V5. At the end of the article you will have the options of either programming the VEX V5 Clawbot to drive forward or to create a project to print ‘VEX’ on the color touch-screen of the V5 Brain.

Image of a VEX V5 robot kit showcasing its components, including motors, sensors, and structural parts, set against a white background. This image is part of the V5 Category Description in the Next Steps section.

Note: in order to test your project at the end of this article, ensure you begin with a charged V5 Battery.


Download the application

Screenshot of the VEXcode download page, featuring the VEXcode logo and options for downloading the software, relevant to the V5 category description and next steps for users.

VEXcode V5 is available for several different types of devices. The application needs to be downloaded onto your device. View the VEXcode download page.

The following links will help you download the application onto your device:

Note: A MSI install version is available for IT.


Devices and Templates

Screenshot showing the interface of V5 with highlighted options and features under the 'Next Steps' section, providing guidance for users on navigating the platform.

When you open a new VEXcode V5 project, the project is set up to only use the VEX V5 Brain. The only blocks which will appear in the Toolbox are the default blocks.

Screenshot of V5 Category Description section highlighting the Next Steps, featuring a list of actions to take with relevant icons and instructions for users.

A project is customized by adding the devices that are being used on your robot. Additional blocks will populate the Toolbox for each device that is added.

For example, adding a ‘DRIVETRAIN 2 motor’ device will add the set of ‘Drivetrain’ blocks to the Toolbox.

Image showing a Speedbot and Clawbot, two VEX robotics models, highlighting their design and features. This visual aids in understanding the V5 category description and supports the next steps in robotics education.

There are a number of standard VEX V5 builds, such as the Speedbot and Clawbot, that can be used in the classroom and the VEX STEM Labs.

Bar graph showing the number of templates available in V5, illustrating the distribution across different categories. This image supports the Next Steps section of the V5 Category Description article.

VEXcode V5 has a number of templates that are already set up for these builds. For example, an easy way to start a VEXcode V5 project for the V5 Clawbot, is to use an example template. This will configure the Clawbot’s devices and add the specific devices’ blocks to the Toolbox.

Diagram illustrating the next steps in the V5 category description process, featuring flowchart elements and labeled stages for user guidance.

Open an example project by selecting ‘Open Examples’ from the File menu.

Screenshot of the VEX V5 template selection interface, showing various template options for users to choose from in the Next Steps section of the V5 Category Description article.

Select ‘Templates’ from the Filter bar.

Image of a Clawbot, a robotic model designed for VEX V5 robotics, showcasing its claw mechanism and structure, used in educational robotics competitions and projects.

Then select the Clawbot (Drivetrain 2-motor, No Gyro) Template.

Note: view the Robot Config section of articles for more information on configuring devices.


Using Blocks

VEXcode V5 opens as a Blocks project. Programming with blocks provides an environment that is accessible, with a very low entry threshold. However, coding a Blocks project also allows for an advanced level of programming.

Screenshot of a V5 block added to a programming interface, illustrating the next steps in the V5 category description process.

A block can be added to a project by dragging it over from the Toolbox to the workspace.

Screenshot of a block deletion confirmation message in V5, illustrating the next steps for users after deleting a block.

It can be just as easily deleted from the project by dragging the block off of the workspace.

Some additional helpful articles using blocks include:


Saving

Flowchart illustrating the steps to take after completing a project in V5, highlighting key actions and next steps for users.

Once you have completed your VEX V5 project, it will need to be saved to your device. Saving your project differs depending on your device.

The following articles explain how to save your project on your device:


Update firmware if needed

V5 Firmware Utility Icon representing the V5 category in the Next Steps section of the VEX Knowledge Base.

The VEX V5 Brain and other smart devices have an underlying software that allows the devices to work with the VEXcode V5 project. This software is called firmware, or otherwise known as VEXos.

Firmware update interface showing progress bar and instructions for updating V5 robot firmware, part of the V5 Category Description and Next Steps section.

If the firmware is not up to date with your current version VEXcode V5, you will not be able to download your project to the V5 Brain. VEXcode V5 alerts you when the firmware is not up to date by displaying an orange brain icon as soon as a powered V5 Brain is connected to your device.

Note: view this article article for more information about getting started with firmware.


Downloading and Running

Diagram illustrating the V5 Brain connection with labeled ports and components, highlighting the connections for optimal setup in robotics applications.

Your VEXcode V5 project needs to be downloaded to the VEX V5 Brain in order for your project to run. This is accomplished with a USB cord connected between the V5 Brain and your device.

Diagram illustrating the V5 wireless connection setup, showing the components and their connections for effective usage in robotics projects.

Or, wirelessly by connecting your device to the V5 Controller.

Diagram showing the layout of V5 with 8 slots, illustrating the configuration options for users in the V5 category description section under next steps.

The V5 Brain has eight download slots which allows eight different projects to be stored on the V5 Brain at the same time.

Once the V5 Brain is connected and a slot is selected, your project can be downloaded to the V5 Brain, and then run. When a project is run, it allows you to see how the project affects the behavior of your robot.

Occasionally, a download error may occur during the download process. However, these are usually easy to troubleshoot.

The following articles will help you with downloading and running your VEXcode V5 project:

Note: Before downloading your project, review the Pre-Downloading a Project Checklist.


Opening a Project

Screenshot of the VEX V5 software interface showing the 'Once Saved' notification, indicating successful saving of project files, relevant to the Next Steps section in the V5 Category Description.

Once a VEXcode V5 project has been saved on your device, it can be opened at a later time to be re-downloaded onto your robot, or the project can be modified.

The following articles will help you open your VEXcode V5 project on your specific device:


Additional helpful links

There are many additional VEX Library articles to assist you when working with the VEXcode V5.

Some additional helpful articles to get started include:

There are also many fun and educational activities found in the VEX V5 STEM Labs.

V5 STEM Lab banner showcasing various STEM-related activities and projects, designed to highlight the V5 category and guide users towards next steps in their learning journey.


My First Project

The following two projects will allow you to practice building a project in VEXcode V5.

Print ‘VEX’

This project will allow you to build a project without having to assemble a robot. All that will be needed is the VEX V5 Brain and a charged battery.

Diagram illustrating the V5 Brain connection with labeled ports and components, highlighting the connections for optimal setup in robotics applications.

Ensure the V5 Brain is connected to your device and powered on.

VEXcode V5 icon representing the V5 robotics programming software, used in the V5 Category Description section under Next Steps.

Launch VEXcode V5.

Screenshot of a blank VEX V5 programming interface, illustrating the starting point for users in the 'Next Steps' section of the V5 Category Description article.

A new blank project will open.

Illustration depicting the V5 category description with highlighted next steps for users, featuring icons and text that guide the viewer on how to proceed with the V5 system.

From the ‘Looks’ category select a [Print] block and attach it to the {When started} block.

Screenshot of the Vex Robotics V5 software interface highlighting the 'Replace' function in the programming environment, illustrating the next steps for users in the V5 Category Description section.

Replace the word ‘Hello’ in the parameter with the word ‘VEX.’

Screenshot of the V5 category description interface, highlighting the 'Next Steps' section with options for saving, downloading, and running tasks.

Save, download, and run your project.

V5 Display Project interface showing various programming options and settings for VEX Robotics, illustrating the features and functionalities available for users in the V5 category.

‘VEX’ will print on the color touch-screen of the V5 Brain.

Drive Forward

V5 Clawbot without Vision Sensor, showcasing the robot's design and structure, intended for educational purposes in robotics.

This project is intended to be used with the standard V5 Clawbot. View the Clawbot with Controller STEM Lab for build instructions.

Diagram illustrating the V5 Brain connection with labeled ports and components, highlighting the connections for optimal setup in robotics applications.

Ensure the V5 Brain is connected to your device and powered on.

VEXcode V5 icon representing the V5 robotics programming software, used in the V5 Category Description section under Next Steps.

Launch VEXcode V5.

Screenshot of a blank VEX V5 programming interface, illustrating the starting point for users in the 'Next Steps' section of the V5 Category Description article.

A new blank project will open.

Image of a Clawbot, a robotic model designed for VEX V5 robotics, showcasing its claw mechanism and structure, used in educational robotics competitions and projects.

Open the Clawbot (Drivetrain 2-motor, No Gyro) example project.

Screenshot of the Open Template feature in Vex Robotics V5 software, displaying options for creating and managing templates, relevant to the Next Steps section of the V5 Category Description.

From the ‘Drivetrain’ category, select a [Drive for] block and attach it to the {When started} block.

Save, download, and run your project. The Clawbot will now drive forward 200 mm.

Note: if you experience any issues when working with VEXcode V5, please use the feedback tool found within VEXcode V5.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: