Christmas is a time for giving, and we’re eternally grateful to all-round geek and The Pi Forged visitor Richard Hayler for gifting us this Raspberry Pi challenge: a chocolate-dispensing introduction calendar that may solely dispense exactly one deal with per day.
Hayler, a programme supervisor with Raspberry Pi who works on the Astro Pi challenge, created the deal with distribution system utilizing one of many in style single board computer systems, the Build HAT, some Lego elements, the 3D RGB Christmas tree kit, and a stash of candy, candy candies, plus a little bit of Python.
The Construct HAT is a collaboration between Lego and Raspberry Pi which permits Lego digital elements, similar to motors and sensors, for use with the favored Python programming language.
A press of a button is all it takes to get this Donkey Kong-like tower of Lego to permit a chocolate to roll, barrel-like, down its sloping paths to the underside, however it would solely work if it hasn’t already handed out a confectionary tidbit that day. If one of many scrumptious delicacies has already been allotted, a crimson mild is all you get.
Hayler's YouTube channel reveals earlier experiments with Pi-controlled Christmas lights, and a wonderful Lego Apollo 11 show case too.