Click here for my process documentation! This document holds the dates and descriptions of all the work I did to complete this project. It includes videos, code, and Onshape files.
Click here for my process documentation! This document holds the dates and descriptions of all the work I did to complete this project. It includes videos, code, and Onshape files.
The Skittle starts its journey in a red Skittles bag, which we pour into a 3D-printed funnel. We designed the funnel using the extrude feature in Onshape, printed it, and attached it to the top of our sorter using superglue.
Once in the funnel, the Skittles fall into our grabber, also called the centerpiece. We made it by printing a custom cardboard shape multiple times and gluing the layers together to make it sturdy. This centerpiece is attached to the servo horn of a positional servo, which is mounted on a long piece of cardboard connected to the wall of our sorter. The servo horn goes through a small hole in the wall so the centerpiece can spin freely without anything getting in the way.
The positional servo starts at the bottom of the funnel at 180 degrees, where it pauses for 1 second. Then, it rotates to 115 degrees, positioning the Skittle near the color sensor, and waits there for 0.5 seconds or until a color is detected. Once the sensor picks up the color, the servo moves to 0 degrees, which allows the Skittle to drop out of the centerpiece.
To make this work, we wrote code using if-then statements based on the RGB values sensed by the color sensor. When the code detects a certain range of red, green, and blue values, the servo moves to release the Skittle and also triggers the next part of our sorter: the ramp.
After falling from the centerpiece, the Skittle lands on a guiding piece of cardboard that leads into our ramp. The ramp is shaped kind of like a lightbulb, which gives it more surface area so the Skittle doesn’t miss. It's connected to a second positional servo, which also runs based on the same if-then statements used for the centerpiece. Once the color is detected, this second servo moves the ramp to the right angle so the Skittle rolls into the correct color-coded bin.
The ramp’s servo is attached to a small piece of cardboard at the bottom of the sorter, and the ramp goes through a hole in the middle layer so it lines up perfectly with the centerpiece.
Finally, the Skittle glides down the ramp and lands in its designated bin. These bins were also designed in Onshape, and we added glass panels for an aesthetic touch which allows viewers to watch the bins fill with colorful Skittles!
How has this project compared to other projects you have done?
This project has compared to other projects I have done in many ways. One way is that it is very time consuming and takes a lot of grit to complete. This project has also challenged me to work with a partner and hear their perspectives on new ideas or options for the project. Along with those things, I also had to push myself more mentally because in other classes, some of the challenges I overcome can be easily fixed, but this project required a lot more brainpower and struggles in order to fix some of the challenges I encountered.
What is one challenge you have overcome on this project and how did you overcome it?
One challenges I overcame during this project was the speed of our grabber/centerpiece. I decided to change the servo of my centerpiece from a continuous servo to a positional servo. I did this because the speed of our skittle sorter was very disgracefully slow, getting close to 15 minutes. I overcame this by replacing the continous servo with a positional servo and changed the code so that our centerpiece would more smoother.
What are you most proud of about your project?
I am most proud of the centerpiece that we designed for our project because it singularizes very efficiently and consistently.
Click here for my code document. The functions I used were for my robot to go forward, left, right, backward, and to stop. These functions consist of the speed for my left and right servos and time sleep. The "if then statements" I used were for the Bluetooth module. These statements told the module what message to send/what to do when a certain button was pressed.
My robot moves forward very well. It moves fast and does not drift. My robot also turns efficiently. I believe coding my servos at a specific speed helped with the efficiency of my robot.
Onshape is a CAD platform that allows you to design products using a wide range of tools. Onshape allows you to create parts, create 3D designs, digitally build your design, and more! For this project, I used Onshape to digitally fabricate all of my pieces. I designed the sides, chassis, back, front, top, wheels, and outline of my sleigh all on Onshape! I also used Onshape to design my my castor and servo mounts.
I used the laser cutter to cut out all of the pieces of my robot. I used the 3d printer to print my castor, which aided in the quickness and ease of the movement of my robot, and the servo mounts.
Servo mounts and castor holder.
I used the laser cutter and 3D printer.
Compared to other projects that I have done, this project was very demanding. This project caused me to come in early, during lunch, and commit a lot of time at home to complete it. Although this project was very challenging, the end result was very rewarding.
The only thing I would change about my robot moving forward is the size. My robot is very small, which helps with it's motion, but it was difficult fitting my wires into my robot.
A top skill I think I know well enough to teach other is how to use Onshape and the laser cutter. I think this because I used Onshape to create a very difficult and unique shape, which taught me a lot about the platform. I also used the laser cutter for every piece of my robot, so I believe I could teach someone the rules fairly well.