For our design we thought of using an 'elevator' to sort marbles by color. At the top we have a color sensor that relays the color information to the motor of the elevator, which moves vertically depending on the color. The marbles then fall on the elevator ramp and roll onto their appropriate baskets.
Preliminary Design Sketch
Final Build
Some challenges we faced was being able to control the timing of each marble being dropped to prevent them from messing up the sensor that controls the motor so that it properly separates the different colors as well as being able to actually create the elevator on our sculpture and having issues with the color sensor being affected by lighting or misreading the colors. While these challenges were in our way some solutions we came up with included a vortex funnel being able to set the marble from being scanned at different times.
From the start of the program the NTX Lego dial sends the proper information in order to control the joystick that controls the motor, once the ball has been seen by the color sensor it sends the color as the information to our motor changing the level in order to distribute to different levels in each basket.