ADM Activity 1.1.4

Coding Movement

Build simple motion sequences using VEXcode Python.

Your lesson guide

Objective

Work toward the lesson goal: Coding Movement. Use the directions and success criteria in the activity below.

Materials

For the online work: a browser and your engineering notebook. Follow the activity’s materials list for any physical build, and get teacher approval before using equipment.

Plan your time

Suggested work block: 45–60 minutes. Physical builds and projects may span several classes; follow your teacher’s schedule.

Lesson Overview

In this lesson, you will practice using code to move the robotic arm through a sequence of points. The goal is to connect each movement command to a physical location and observe how ordered commands create repeatable motion.

Notes

  • Run the arm from a known safe starting position.
  • Read each movement command as a coordinate target.
  • Pay attention to how the final value changes the arm height or tool position.
  • Use testing evidence to explain what the robot does at each step.
  • Add meaningful comments before submitting code.
Code example

1.1.4: Coding Movement

Review the code, copy it when needed, and add comments before submitting your final version.

VEXcode Python Example
Code examples may be incomplete or missing comments. Comments are required for code submissions.
def main():
    signal_tower.set_color(SignalTower.WHITE, SignalTower.ON)
    signal_tower.set_color(SignalTower.GREEN, SignalTower.OFF)
    arm.set_speed(50)
    arm.move_to(150, -2, 10)
    arm.move_to(150, -2, 1)
    arm.move_to(150, -2, 30)
    arm.move_to(150, 104, 30)
    arm.move_to(150, 104, 1)
    arm.move_to(150, 104, 30)
    arm.move_to(99, 150, 30)
    arm.move_to(99, 150, 1)
    arm.move_to(99, 150, 30)
    arm.move_to(-1, 150, 30)
    arm.move_to(-1, 150, 1)
    arm.move_to(-1, 150, 30)
    arm.move_to(120, 0, 100)
    signal_tower.set_color(SignalTower.WHITE, SignalTower.OFF)

Build your lesson report

Checkpoint: is your evidence ready?
  • Check calculations, units, labels, and measurements against the activity requirements.
  • Record what actually happened, including unexpected results.
  • Explain what you changed and why; attach required drawings, photos, CAD, or code in your classroom assignment.

Submit the evidence specified in the activity and your classroom assignment. The report below collects your notes, calculations, observations, and reflections; attach any required drawings, photos, CAD, or code separately.

A PDF download is not a submission. Review it, then upload it and any required attachments through your classroom assignment system.