{"id":171255,"date":"2019-11-01T03:31:37","date_gmt":"2019-10-31T19:31:37","guid":{"rendered":"https:\/\/www.geek.com\/featured\/-1809053\/"},"modified":"2019-11-01T03:31:37","modified_gmt":"2019-10-31T19:31:37","slug":"lego-candy-bar-dispenser-is-equal-parts-trick-and-treat","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2019\/11\/01\/lego-candy-bar-dispenser-is-equal-parts-trick-and-treat\/","title":{"rendered":"Lego Candy Bar Dispenser Is Equal Parts Trick and Treat"},"content":{"rendered":"<figure>\n\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.geek.com\/wp-content\/uploads\/2019\/10\/lego-dispenser-650x366.jpg?resize=640%2C360&#038;ssl=1\" width=\"640\" height=\"360\" data-recalc-dims=\"1\" \/><\/p>\n<div class=\"figcaption\">credit: Jason Allemann <\/div>\n<\/figure>\n<p>It&#8217;s Halloween night, and that means kids everywhere will be heading out to trick-or-treat. Most of those treats will be handed over or plucked from a bowl, but not at the house of one highly-skilled Lego builder.<\/p>\n<p>That&#8217;s because Jason Allemann decided to create the amazing contraption you see here. It&#8217;s <a href=\"https:\/\/www.brothers-brick.com\/2019\/10\/31\/get-high-on-sugar-this-halloween-with-a-lego-automated-chocolate-dispenser\/\">a Halloween vending machine<\/a>! All a trick-or-treater has to do is tap one of the buttons on the base and the machine springs into action.<\/p>\n<p>When activated, one of four motors (one for each row) whirs and conveyors guide the candy bars forward until gravity takes over and they drop into the Lego beast&#8217;s delightfully ferocious mouth.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1809072\" src=\"https:\/\/i0.wp.com\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-625x351.jpg?resize=625%2C351&#038;ssl=1\" alt=\"\" width=\"625\" height=\"351\" srcset=\"https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-625x352.jpg 625w, https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-300x169.jpg 300w, https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-650x366.jpg 650w, https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-141x80.jpg 141w, https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3-130x73.jpg 130w, https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/ev3.jpg 690w\" sizes=\"(max-width: 625px) 100vw, 625px\" data-recalc-dims=\"1\" \/><\/p>\n<p>Behind the scenes you&#8217;ll find a Mindstorms EV3 unit and motor running the show. It doesn&#8217;t have a very heavy workload in this particular build. Each button is attached to a lift arm.<\/p>\n<p>When a button is pressed, the far end of the lift arm activates a touch sensor. That tells the EV3 to activate the motor in the corresponding row and deliver the selected treat.<\/p>\n<div class=\"flex-video widescreen embed\"><iframe loading=\"lazy\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/bFGsgjLQXA8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div>\n<p>Jason also coded in a 2-second delay. That brief pause prevents button mashing from causing problems because only the first press will trigger a dispenser motor. It also makes it slightly more burdensome for overzealous types to empty the machine before anyone else gets a crack at the candy.<\/p>\n<p>When it does come time to reload, the process is simple enough. The spider and the skeletal thumb need to be shifted out of the way and there&#8217;s a USB cable to disconnect (it sends power from the EV3 to a LED light bar). After that the lid lifts right off and a fresh supply of candy can be stuffed into the conveyors.<\/p>\n<p>This is just one of Jason&#8217;s numerous amazing Lego creations.\u00a0Be sure to <a href=\"https:\/\/www.flickr.com\/photos\/truedimensions\/\">head over to Flickr<\/a> and check the rest, from kinetic sculptures to a <a href=\"https:\/\/www.flickr.com\/photos\/truedimensions\/38877851662\/\">fully functional mechanical keyboard<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.geek.com\/wp-content\/uploads\/2019\/10\/lego-dispenser-650x366.jpg\" width=\"650\" height=\"366\"><\/p>\n<div>credit: Jason Allemann <\/div>\n<\/figure>\n<p>It&rsquo;s Halloween night, and that means kids everywhere will be heading out to trick-or-treat. Most of those treats will be handed over or plucked from a bowl, but not at the house of [&hellip;]<\/p>\n<p>The post <a rel=\"nofollow\" href=\"https:\/\/www.geek.com\/tech\/lego-candy-bar-dispenser-is-equal-parts-trick-and-treat-1809053\/\">Lego Candy Bar Dispenser Is Equal Parts Trick and Treat<\/a> appeared first on <a rel=\"nofollow\" href=\"https:\/\/www.geek.com\/\">Geek.com<\/a>.<\/p>\n<p> <a href=\"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2019\/11\/01\/lego-candy-bar-dispenser-is-equal-parts-trick-and-treat\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"slim_seo":[],"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[3779,6575,2,2335,7195,7196,2077,7],"tags":[364,398,402,397,414,413,410,409,407,408,406,399,400,394,10,401,372,396,403,412,374,411,395,371,405,404,366],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7prtj-Iyb","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/171255"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/comments?post=171255"}],"version-history":[{"count":1,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/171255\/revisions"}],"predecessor-version":[{"id":171256,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/171255\/revisions\/171256"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/media?parent=171255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/categories?post=171255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/tags?post=171255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}