Skittle Sorter

by mckybee in Craft > Digital Graphics

15 Views, 0 Favorites, 0 Comments

Skittle Sorter

front cover.png

Have you ever wished to separate the colors of your Skittles before you eat them? We created the perfect invention, the Skittle Sorter, to help sort your candy into individualized tubes. You can now enjoy your Skittles by eating one color of the rainbow at a time!

Supplies

SparkFun_Kit_image.jpg
color_sensor_image.jpg

3D Print Provided Components

Base_Plate.png
Rotating_Disk.png
Frame.png
Vial.png
Tube.png
Cover.png

Filament and Printing Time based on a Bambu Lab P1S 3D Printer:

  1. 1 Base Plate
  2. Main plate that holds the sorted skittle tubes
  3. Filament: 27.36g
  4. Printing Time: 47 min
  5. 1 Rotating Disk
  6. Pushes the skittles from the color sensor to their respective tubes
  7. Filament: 21.74g
  8. Printing Time: 36 min
  9. 1 Frame
  10. Holds the cardboard platform of the Skittle Sorter
  11. Filament: 6.28g
  12. Printing Time: 54 min
  13. 5 Vials
  14. Holds the Skittles, duh!
  15. Filament: 55.64g (all 5 Vials)
  16. Printing Time: 2 hr 43 min (all 5 Vials)
  17. 1 Tube
  18. Holds a column of Skittles that are yet to be distributed
  19. Filament: 12.69g
  20. Printing Time: 1 hr 19 min
  21. 1 Cover
  22. Covers the color sensor from other interfering lights
  23. Filament: 156.03g
  24. Printing Time: 5 hr 36 min

Total Filament: 279.74g

Total Printing Time: ~12 hr

Wiring

  1. Start by connecting the breadboard to the Arduino Uno by wiring both a power wire and a ground wire to their reciprocating inputs
  2. Wire the S0 pin from the color sensor to Pin 2 on the motherboard
  3. Wire the S1 pin from the color sensor to Pin 3 on the motherboard
  4. Wire the S2 pin form the color sensor to Pin 4 on the motherboard
  5. Wire the S3 pin form the color sensor to Pin 5 on the motherboard
  6. Wire the output pin from the color sensor to Pin 6 on the motherboard
  7. Wire the GND from the color sensor to any ground row hole on the breadboard
  8. Wire the VCC from the color sensor to any power rail hole on the breadboard
  9. Wire the black ground wire from the servo to any ground row hole on the breadboard
  10. Wire the red power wire from the servo to any power rail hole on the breadboard
  11. Wire the white signal wire from the servo to Pin 7 on the motherboard

Double check your wiring and verify that all of it is correct! It is vital to make sure that the wiring matches the instructions above to avoid the possibility of short-circuiting your board!

Coding

  1. Download the given code and input it into your Arduino Lab software
  2. Transfer the code into your Arduino Uno

Construct Non-Printed Components

shows 3x5 angle image 2025-04-30 12_23_57.JPG
shows 2x4 angle image 2025-04-30 12_19_11.JPG

All measurement dimensions are Length(or Height) x Width (in inches)

  1. Cut a 6 1/2" x 4 1/2" rectangle (platform); we will call this component "A"
  2. From Step 1's cardboard cutout, cut out a small hole (big enough to fit the spinning component of a Servo, but small enough to not have the entire Servo fit through) that is 1' in from its shorter front side and 1 3/4" from its longer right side
  3. Cut a 1 7/8" x 7/8" rectangle (vertical component of color sensor structure); we will call this component "B"
  4. Cut a 2' x 7/8" rectangle (horizontal component of the color sensor structure); we will call this component "C"
  5. Cut a 5' x 3' rectangle (Tube's wall); we will call this component "D"
  6. From Step 5's cardboard cutout, cut out a 2' x 1 1/2" rectangle from the bottom right
  7. Cut a 2 1/2" x 2' rectangle (support structure for Tube's wall); we will call this component "E"

It is okay if the cardboard component measurements are not exact, as they are merely structures to hold the rest of the project; on the other hand, position the cutout for the Servo accurately.

Assembly

bottom card board.png
card board and stand.png
card board top plate.png
7th pic from McKy.png
5th pic from McKy.png
6th pic from McKy.png
Color sensor pic.png
2nd pic from McKy.png
3rd pic from McKy.png
  1. Hot glue the top edges of the Servo to the cutout created on A; it should not peek all the way through, but enough that the 4 winged plastic component for the Servo's rotor to peek through the Rotating Disk in the later steps of assembly
  2. Place the Frame on a flat surface with the four prongs facing upwards
  3. Center A onto the four prongs of the Frame and hot glue them together
  4. Slide the Arduino Uno under A and on top of the rectangular surface of the Frame
  5. Attach the 4 winged plastic component from the SparkFun Kit to the rotor of the Servo
  6. Hot glue the Base Plate onto A, allowing the holes for the Vials to be extended off the platform whilst allowing the Servo to fit within the circular area of the Base Plate's design
  7. Center the Rotating Disk onto the Servo's rotor attachment, then hot glue together; make sure that the Rotating Disk and the Base Plate are aligned with one another, meaning they overlap one another almost exactly
  8. Run the code to mark the "set zero" angle of the servo (look at image for reference - ours says "160"); this mark is crucial for the alignment/positioning of the color sensor and Tube stand
  9. Hot glue one short end of C to one short end of B
  10. Hot glue the free short end of B to the cardboard platform, approximately 1' from the edge of the Rotating Disk / Base Plate and approximately 1/2" from the "set zero" mark from step 8; the tip of C should approximately extend to the far edge of the first divot of the Base Plate
  11. Tape the color sensor to the bottom of C; it should be positioned far out enough that the circular color sensing part of the sensor hovers entirely over the Rotating Disk / Base Plate
  12. Hot glue the bottom part of D approximately 1" from the Rotating Disk / Base Plate and approximately 1/2 from the "set zero" mark from step 8
  13. Hot glue the short side of E orthogonal to the center of the hot glued bottom edge of D
  14. Hot glue the Tube to D; one edge of the Tube should align with the edge of the Rotating Disk / Base Plate and the bottom of the Tube should barely hover above the Rotating Disk / Base Plate (look at image for reference)
  15. Create a hot glue wall in the shape of an L (look at images for reference); their purpose is to create a mini wall for the Cover to prop against when the Skittle Sorter is in action

Procedures

These instructions are procedures to follow before running the code:

  1. When inserting Skittles into the Tube, make sure the Rotating Disk is under the Tube; Skittles will jam and/or spill out of the Tube if this is not checked
  2. When positioning the Cover onto the Skittle Sorter, make sure that the edge that hovers over the Rotating Disk
  3. After all inserted Skittles are sorted, unplug the cord that powers the device to stop the functions, then insert more Skittles into the Tube


Video

Skittle sorter

Here is the Skittle Sorter in action!

Poster