Vision Sensor Color Sorting

For this year, I am trying to make a color sorter using the V5 Vision sensor. I do not have any opitcal sensors this year and i don’t know how to code it. I am on blocks in Vexcode V5 on the website and the app.

Regards,
899A

Potential process:

  1. Mount vision sensor ~6 inches away from intake to have space for the sensor to see the rings
  2. Make color signatures by putting individual rings on intake and screenshotting them in the Vision Utility
  3. Write code that recognizes when a color signature for a ring appears in field of view
  4. Tune timing to “derail” ring at the top of its arc (assuming you are using hook intake) or try “derailing” when the color signature is no longer detected

The vision sensor isn’t too good at detecting fast-moving objects though, so this method might not be the best.

2 Likes