You can always depend on Jason Allemann to take all things LEGO to a new level. For Halloween this year, the actual action of dishing out treats to tiny monsters, ghouls and all toddler-sized superheroes has been automated. It’s powered by a Mindstorms EV3 control unit and motor.
It holds a total of 40 candy bars separated by Technic axles acting as dividers. The buttons are connected to lift arms which go all the way to the back activating touch sensors to release the sweet goods.