PLC Autonomous Cube Stacker


Brief overview

Led a team of 3 mechatronic engineer student to program a PLC (Ladder Logic and Structured Text) and an Arduino (C++) to perform autonomous cube stacking. The pick and place robot was designed and built with a $50 budget and scrap materials from the lab. A GUI was designed were a user can input the stacking specifications for the tower in terms or stack height, up to 16 cubes, and stack pattern, silver or black cubes. After the user added the stack pattern the robot will start stacking the cubes based on the user defined pattern untill the pattern is completed.


Video demo


Graphical user interface

A GUI was designed to interface with the pick and place robot. On the left there is a vertical array of 16 siwtches to indicate the color of the cube this determines the pattern of the stack. The to the right of that array from top to bottom there is three arm location LEDs that dispays the postion of the arm either in the contre, left or right. Underneath that is a ‘light’ type switch to turn on the robot, two squre LEDs that displayed the grippers state and a time passed counter. The middle column from top down displays the height of the arm [cm], the stack heinght [cube count], black cubes left to stack, and silver cubes left to stack. A large red digital emergency stop is included and a physical one. The height of the stack can be set by changing the maximum height, this will also disable and enable the vertical array switches on the left accoring tho the value entered here. The Kp gain, absolute height error value is also displayed along with error, command signal, and actual location graphs.

IMG_3949


Project objectives


16 Cubes stacked with an alternating pattern

IMG_3846


Setup

IMG_3828


Cube feeders

IMG_3941