From Industrial Robotics & Automation - Fanuc Teach Pendant Programming

My project is having the robot finish a classic kids puzzle, where you have to put the correct shaped blocks in the correct holes. The idea is for the robot to pick up the block, orientate it, and place it in the correct hole and have it fall in.

Troy's Napkin Diagram

For this I will have to line the blocks up correctly and use the vacuum attachment for the robot.The vacuum is the perfect tool for this task. The suction will keep the block in the same position the entire time, unlike a magnet that would spin the block if bumped. The only issue with the vacuum will be the part swinging, and not lining up with the hole. The input to tell the robot what block to pick up in what row will be a pair of switches.