{"id":13218,"date":"2017-02-08T20:46:53","date_gmt":"2017-02-09T01:46:53","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=13218"},"modified":"2017-02-08T20:46:53","modified_gmt":"2017-02-09T01:46:53","slug":"automatic-candy-sorter","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/automatic-candy-sorter\/","title":{"rendered":"Automatic candy sorter"},"content":{"rendered":"<p>Built by <em>Willem Pennings<\/em> from the Netherlands, this <strong><a href=\"https:\/\/willemm.nl\/mm-skittles-sorting-machine\/\">color candy sorting machine<\/a><\/strong>\u00a0is robust and beautifully designed. It\u00a0uses an Arduino controller, stepper motors, an RGB color sensor and several 3D-printed parts to perform sorting of colorful candies like M&amp;M and Skittles. It can sort a 300 gram bag of mixed M&amp;M in approximately 2-3 minutes.<\/p>\n<div id=\"attachment_13219\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/02\/3rIcht3.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13219\" class=\"size-full wp-image-13219\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/02\/3rIcht3.jpg\" alt=\"Arduino candy sorter\" width=\"800\" height=\"906\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/02\/3rIcht3.jpg 800w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2017\/02\/3rIcht3-574x650.jpg 574w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><p id=\"caption-attachment-13219\" class=\"wp-caption-text\">Arduino candy sorter<\/p><\/div>\n<p>Posted below is a video showing the machine in action.<\/p>\n<p><iframe loading=\"lazy\" width=\"860\" height=\"484\" src=\"https:\/\/www.youtube.com\/embed\/ceGlMV4sHnk?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<blockquote><p>The machine is able to sort M&amp;M\u2019s and Skittles by colour by performing optical measurements using the RGB sensor. It can be modified to sort any type of coloured object, as long as the individual pieces have a regular shape with even dimensions. It takes approximately 2-3\u00a0minutes to sort a 300\u00a0g bag of Skittles \/ M&amp;M\u2019s and sorts about 2 pieces per second.\u00a0The machine\u00a0is 250 mm in diameter and approximately 300 mm\u00a0in height.<\/p><\/blockquote>\n<blockquote><p>While in the hopper, candy pieces are constantly mixed to prevent clogging at the inlet of the upper scanner tube. The scanner consists of a small wheel with four slots which are 90 degrees apart. After a piece enters a slot, the wheel, which is powered by a stepper motor, rotates 90 degrees so a measurement can be performed. The RGB sensor takes three consecutive measurements, which take 30 milliseconds each. The Arduino controller then determines the item colour (based on reference data) and positions the exit tube (also using a stepper motor) to guide the piece to the correct container. Just before the exit tube reaches its target position, the wheel turns another 90 degrees to drop the piece. The process is then repeated. During the process, visual feedback is provided using the LED strip that encircles the machine.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Built by Willem Pennings from the Netherlands, this color candy sorting machine\u00a0is robust and beautifully designed. It\u00a0uses an Arduino controller, stepper motors, an RGB color sensor and several 3D-printed parts to perform sorting of colorful candies like M&amp;M and Skittles. It can sort a 300 gram bag of mixed M&amp;M in approximately 2-3 minutes. Posted below is a video showing the machine in action. The machine is able to sort M&amp;M\u2019s and Skittles by colour by performing optical measurements using the RGB sensor. It can be modified to sort any type of coloured object, as long as the individual pieces<\/p>\n","protected":false},"author":1,"featured_media":13219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[150],"tags":[1631,1630],"class_list":["post-13218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-2","tag-arduino-color-sensor","tag-candy-sorter"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=13218"}],"version-history":[{"count":1,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13218\/revisions"}],"predecessor-version":[{"id":13220,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/13218\/revisions\/13220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/13219"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=13218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=13218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=13218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}