Hi ! I wanted (for fun) to build my own color sensor. So I took a Photoresistor and a RGB led. I first light the candy in red, then in green and last in blue and mesure the value of the photo resistor for each color. That gives me three informations of the amount of light absorbed by the m&m's for each color. I automaticaly recorded thoses values for more than 10 000 candy and use the python Library SKLearn to do some machine learning on thoses values. I used this library to generate a Decision Tree which I implemented in my arduino code. And that's how it works :). Hope that helps.
Ah ah good question :). The trick is that I drilled the holes slightly in diagonal. So when the hole is at the bottom, the m&m’s will roll inside the hole. And when it rotated 180 degrees, it will be oriented the other way and the m&m’s is gonna roll outside the hole. Simple as that :)
Great, but please show us more of the machine!
Nice !
Hey, great job! Can you send me the program of the Arduino? And maybe the construction plans. Thanks
Is it possible to get a copy of the code you used for your color sensor? I have been trying to make one like this and this one is the best ive seen
Which type of color sensor did you use?
Hi ! I wanted (for fun) to build my own color sensor. So I took a Photoresistor and a RGB led. I first light the candy in red, then in green and last in blue and mesure the value of the photo resistor for each color. That gives me three informations of the amount of light absorbed by the m&m's for each color. I automaticaly recorded thoses values for more than 10 000 candy and use the python Library SKLearn to do some machine learning on thoses values. I used this library to generate a Decision Tree which I implemented in my arduino code. And that's how it works :). Hope that helps.
that's cool!
Thanks :)
Why the candy doesn't fall when it's inside the hole? and only fall when it is located the mecanism to give the candy to the glass. I don't get it!
Ah ah good question :). The trick is that I drilled the holes slightly in diagonal. So when the hole is at the bottom, the m&m’s will roll inside the hole. And when it rotated 180 degrees, it will be oriented the other way and the m&m’s is gonna roll outside the hole. Simple as that :)