Walkthrough of project where I used a Pixy2 camera and an Arduino to make a machine vision based pick and place routine for the Dobot Magician Robotic arm.
Written article including links to several sources:
http://uptimefab.com/2019/10/02/how-to-make-a-robot-vision-system-with-the-pixy-2-camera/
Arduino program:
https://github.com/Robin61/Arduino-Pixy2-Dobot-Magician-Pick-and-Place
STL file of Pixy2 holder: https://www.thingiverse.com/thing:3893678