This is a machine I call Get Cancelled Machine. It sorts the candies according to their colors.
In the contest Mechanical Marvels
96
92
0
3400
updated September 4, 2022

Description

PDF

This is the first tme I did a project like this and it took many iterations for many of the parts. With my inexperience my cad files are a complete mess. So I can't really suggest someone to print this and build it, it will be hard. /thats why I'm not sharing .stl files you mght need to change somethings) You need to know some Python and Arduino code to figure it out and get it to run. If you don't know but you wish to learn I would really suggest "Paul McWorther"s tutorials on youtube. With that said I would be more then happy to help if someone wants to build it themselves. 

 

You will need

1*608zz bearing

1*9gr servo (sg90 or someyhing same size)

Various sized m3 bolts(I would suggest getting a set with many sizes)

m3 nuts and washers

2 nema 17 steppers

2 a4998 drivers

Arduino

Power supply of some sort to run the steppers

Webcam(if  the wecam has no light built in you'll also need to figure a way to light up the candies.)

A computer with a python IDE

You'll need to find a way to attach your own webcam (the one O used is from a local turkish brand probably re branded but still I don^t thin you can find the same one)

You might also need to adjust the size of the holes according the size of the candy you'll use. The one I used is a local turkish brand. Holes needs to be about 1 to 1.5 mm larger than the candy diameter. The candy I used is 13.5-14.5mm in diameter.

In the video there is time lapse that shows the order to put the machne together.

For the software you can find the codes here:

https://github.com/canAktas/MandMsorter (You don't need color.py it' contains diffrent version of the color detection function.) 

It is possible run the code in a mac but it may require some changes.

You' need to update hsv7Color.py 's color values with the color reading you get from your camera/lighting you can find the correct values with https://toptechboy.com/tracking-an-object-based-on-color-in-opencv/ The code in here.

The arduino stays connected to the laptp when working it communicates with python throuh USB. (If you opened Cura after you started the computer it meses with the communucation You'll need tı restart)

Tags



Model origin

The author hasn't provided the model origin yet.

License