Cd88902a f37b 4cf0 b160 ada14b767be0


Candy Machine w/LittleBits

by Ksenia

Published on February 29, 2016

Ever thought of combining a hamster running maze with littlebits modules? Why not? They make for a perfect candy machine:)

The following bits were used in the project:
power module+wire+button+wire+servo

The button is the control input for the servo's position. When it is pressed the servo moves its crossed horn to open the hole for the candy in the top compartment to fall through. The button is easily accessed by being mounted on the outside of the hamster maze. All the remaining modules fit snuggly inside.

Sugru, the mouldable glue that turns into rubber, was used to hold the servo in place. Sugru was also used to close the gap between the candy compartment and the rest of the maze. 

Duration: 2-3hours x 3 sessions

Credits: Ksenia - tech, consulting; Monica - creative, design, resources; Lihn - mastermind, philosopher

How To Make It


Choosing the base One of the hardest questions to answer in this project was how the candy machine should look. We went from evaluating numerous designs to decide on the hamster maze. We thought it to be the most colourful, creative and unexpected medium to use.
5c1781db d8b8 446f a597 9c40f70580e4


Choosing the tech After evaluating the benefits and limitations of using an Arduino-controlled servo, we decided to go with the Littlebits modules for the project. The ease of use and simplicity in design have been the deciding factors.
1ca90024 ed70 4bea 8e9d 583ddb589822


Assembling the hamster maze Next step was to assemble the configuration of the maze and visualize the possible location for the tech inside it.
00898792 11f0 4415 8fd2 aaa3d2e42190

F71e0170 0078 4462 b78c 826a219e9183


Separate the candy compartment from the rest Using soft plywood, we have cut out the hole, which separates the candy compartment from the rest of the maze and glued it to the walls of the hamster cage using Sugru. Note: Sugru is mouldable for approximately half hour, after which it requires 24 hours to harden.
59cf9d88 7d06 44a2 b91c 42602c87c7aa


The servo positioning The picture describes the mounting of the servo to the walls of the hamster cage using Sugru. As you can see, the servo was being held in place at the bottom by gluing the top of the plastic strip to the maze support.
D60316d5 6943 4141 81ef d3823f96fc79


Test phase Does is work? Does it hold? Does it let candy through? What is the smallest and the largest candy size which can pass through the hole?
376a01d1 3839 4249 ab5b edc1df7d44a0


The education Bit Now we get to explore the technology behind the candy machine, find out how to create a circuit, learn about electricity, electron movement, inputs/outputs and, of course, eat a lot of candy. The best science is sweet science.
Ec667dc1 2c28 43fb b18c 9d5c67ff5678

9147feaf 21c3 45a8 a12c 886eddb5c37f

5785281c 4a5f 465b 91a6 7b4bb268ec35

Related Projects

#HackYourHabits IOT: Water Tank Automation

It's a mundane activity to switch on the motor when your tank gets empty and switch it off when the tank overflows. This steals mo...

Space Drone Generator

A one oscillator drone generator with musical control via the keyboard bit attached to the cutoff filter's frequency in. Also...

The Celebration Board -- #hackyourhabits

April's #HackYourHabits challenge came at the perfect time for our daycare - potty training is in session!  We need to track ...