Skip to main content

Locating Coordinates

The location point of the Optical Sensor will need to be documented in order to pick up, determine the color, and move one colored disk. The exact location of the point may vary, but the z-values should move the arm mounted on the VEX V5 Workcell up enough to not collide with any standoffs or the Optical Sensor itself.

  1. Launch VEXcode V5.
    VEXcode V5 Icon
  2. Open the ‘Lab 3- Display Position’ project from a previous Lab.
    Open the ‘Lab 3- Display Position’ project.
  3. Set the parameter of the [Set tool] block to ‘electromagnet’ if it is not already.
    Set the parameter of the [Set tool] block to ‘electromagnet’
  4. Download and run the project.
    Download and run the project.
  5. The (x, y, z) values will be displayed on the V5 Brain’s screen.
    The (x, y, z) values will be displayed
  6. Attach a red disk to the Electromagnet. Then, manually move the arm mounted on the V5 Workcell so the Electromagnet is directly above the Optical Sensor. Record the (x, y, z) coordinates of the location in your Engineering Notebook.
    Sensing Red
  7. Stop the project.
    Stop the project.