Skip to main content

Variables Example

In this Play section, now that we have explored the difference between linear and joint movement, we will use variables to code the arm on the Workcell to make linear movements along the x and y-axis. You will create a project that will orient the arm to a beginning location and then draw a square. This is important because this motion is an introduction to how the arm moves when picking up and dropping objects, that will be explored in later Labs.

Materials Required:
Quantity Materials Needed
1 per group

V5 Workcell

1 per group

VEXcode V5

1 per group

Engineering Notebook

1 per group

Device to run VEXcode V5

1 per group

Micro-USB cable

1 per group

Dry-erase marker

In order to code the arm to draw a square, you first need to build the 'Lab 5- Variables' project.

In VEXcode V5, follow the steps in this video to open the 'Arm Display Position' example project, input your mastering values, adjust the tool, name, and then save the project as 'Lab 5- Variables.' 

Ensure you are using your mastering values, and not the ones displayed in this video. 

Video file

Once you have named and saved your project, check in with your teacher.