Skip to main content
Teacher Portal

Teacher Toolbox icon Teacher Toolbox - Facilitating the Sort the Disk Using Code Page

What the Teacher Will Do:

  • Instruct students that they will be working together in their groups to follow the steps on this page.
  • Circle the classroom as students work through these steps and answer any questions that arise.
  • As groups check in, ensure they have built their project correctly before moving on. Guidance for this check in is provided in a Teacher Toolbox at the bottom of this page.

Now that you have coded the arm to pick up the red disk from the pick up location, you will now continue to build on the project to code the arm to sort the red disk into the drop off location.

In VEXcode V5, follow the steps in this video to add a [Joint move] block, a [Wait] block, and enter the coordinates for Point 3.

Use your coordinates for Point 3 and not the ones shown in this video.

Download and run the project. The arm will move to the drop off location and sort the disk by dropping it into the standoffs. 

If your arm did not sort the disk, notify your teacher. 

Lab 7 - Red-Step6-2_3

Once you have finished coding the arm to sort the disk, stop the project.

Lab 7 stop_2

Teacher Toolbox icon Teacher Toolbox - Troubleshooting

If groups are finding that the arm does not pick up and drop off the red disk when they run their project, try the following troubleshooting techniques.

  1. Change the z-value in the [Joint move] blocks.
    1. The electromagnet may not reach the disk or may be too low to clear the standoffs in the pick up location. Have students change their z-values and test the project.
  2. Check the mastering values.
    1. Instruct students to check that the mastering values they recorded in their engineering notebook during Seek match what is in the [Set mastering] block.
    2. If the problem still persists, have students follow the steps in Seek to rerecord their mastering values.
  3. Check the VEXcode V5 project.
    1. Have students compare their project to the video on this page and ensure the order of the blocks match. Make sure students are re-downloading their project each time they make a change and before they run the project
  4. Check the build. 
    1. There may be a mechanical issue with your Workcell. Instruct students to look at the Lab 7 build instructions first and verify that the additions to their Workcell match.
    2. Have students go back to the Lab 1 build instructions for a complete look at the build and check that all elements match. Even one small detail being wrong can affect the movement of the arm on the Workcell.

Teacher Toolbox icon Teacher Toolbox - Check in

Review the following with the group during their check in:

  • Ensure groups have built their project correctly. View this example code as reference. Note that the mastering values and the coordinates will vary depending on the group.
    blocks
  • Ask students to explain the difference between setting the electromagnet to 'boost' and 'drop' with the [Energize electromagnet] block. 
    • 'Boost' boosts the magnetism of the electromagnet and attracts disks.
    • 'Drop' de-magnetizes the electromagnet and repels disks.