Skip to main content

In this challenge, you will create a VEXcode V5 project to sort six disks based on the color reported by the Optical Sensor. Red disks will be diverted off the conveyor system, and green and blue disks will be moved to their designated drop off location using the arm of the Workcell.

Follow these steps to complete the challenge:

  • Using the skills developed earlier in this Lab, create a VEXcode V5 project. Your project should accomplish the following using sensor data:
    • Move two red, two blue, and two green disks from the entry conveyor to the locations shown in the image above.
      • The red disks should be diverted off the exit conveyor and stop in front of the exit sensor.
      • Each green and blue disk should pass through the diverter, stop in front of the pickup sensor, and be sorted into the drop off locations by the arm on the Workcell.
  • Once the first red disk has been diverted to the exit conveyor and stopped in front of the exit sensor, remove the disk from the Workcell. This will prevent any errors when the Line Tracker is reporting values from the exit conveyor.
  • Note that multiple location points will be needed in this project to pick up each green and blue disk and move it from the transport conveyor to the drop off location.