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.
- Launch VEXcode V5.

- Open the ‘Lab 3- Display Position’ project from a previous Lab.

- 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’](/stemlabs/sites/default/files/inline-images/lab-3-set-tool-to-magnet_0.png)
- Download and run the project.

- The (x, y, z) values will be displayed on the V5 Brain’s screen.

- 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.

- Stop the project.
