In VEXcode 5, you can add individual devices, such as a Motor, LED Bumper, or Eye Sensor, to your VEX GO robot’s configuration one at a time. Each device you add puts its blocks in the toolbox so you can code it.
To add a whole VEX GO build at once, like a Code Base 2.0, go here.
Add a Device
Select the Devices tab.
The Devices tab is on the right side of VEXcode, next to the Help tab.
If you don’t see the Devices tab, select Reset Tab Layout from the View menu.
This puts the Devices and Help tabs back on the right side of VEXcode.
Select Add a device in the Devices tab.
Select the device you want to add, such as LED BUMPER.
These steps are the same for the LED Bumper, Electromagnet, Eye Sensor, and One Stick Controller. The Drivetrain and Motor have a few extra steps, shown below.
Select the port the device is plugged into.
Ports already in use are grayed out. The Eye Sensor always uses the Brain’s Eye Sensor port, and the One Stick Controller has no port, so skip this step for them.
Select Done.
To rename the device, type a new name at the top before selecting Done.
The device now shows in the Devices tab, with the port it uses.
Its blocks also appear in the toolbox. For example, adding an LED Bumper adds the LED category.
Add a Drivetrain
In the Select a device list, select DRIVETRAIN.
Add a Drivetrain if two motors drive your robot’s wheels, like on the Code Base.
Select the port the left motor is plugged into.
Left and right are as seen from the back of the robot. The Code Base has its left motor in port 4.
Select the port the right motor is plugged into.
The port already used for the left motor is grayed out. The Code Base has its right motor in port 1.
Select Done.
If your build needs it, change the Gear Ratio or Direction first, or switch to Super Car Drivetrain for the Super Car build.
Add a Motor
In the Select a device list, select MOTOR.
Add a Motor for a motor that isn’t part of a Drivetrain, such as the arm motor on the Robot Arm build.
Select the port the motor is plugged into.
Type a name for the motor, such as ArmMotor.
You can also rename its two directions, such as up and down. Use the Normal and Reversed switch to make sure the rotation of the motor matches your build.
Select Done.
The Motion blocks now use the motor’s name and directions.
Descriptive motor names can help make your code easier to read, like spin ArmMotor up.
Delete a Device
Select the device in the Devices tab.
Each device you added is listed with the port it uses.
Select Delete.
The device and its blocks are removed right away.
To connect your VEX GO Brain to VEXcode 5 so you can run your project, go here.