Picture of Lego Mindstorms Candy Machine
Screen Shot 2014-05-27 at 5.21.12 PM.png
Screen Shot 2014-05-28 at 3.22.13 PM.png
Screen Shot 2014-05-27 at 5.08.37 PM.png

This "sweet" candy machine features two candy chutes, a locking mechanism for storing candy, and a fun and simple design. It uses 2 EV3 servo motors to operate both candy chutes. Also, the machine's program can be tweaked to add various sounds, images and more! It is fun, easy-to-use, made out of lego bricks, and dispenses candy. What more could you ask for in a machine?

This machine only works with small candies such as Nerds, Mini M&Ms, Sprinkles, Tiny Size Chiclets, etc.. Larger candies may result in the machine clogging.

Files Needed:

Lego Digital Designer Software (Free)

Lego Mindstorms EV3 Software (Free)

Candy Machine Instructions

Lego Digital Designer File

Parts List

Candy Machine EV3 Program

Remove these adsRemove these ads by Signing Up

Step 1: Lego Assembly

Picture of Lego Assembly
Screen Shot 2014-05-27 at 5.08.37 PM copy.png

Before starting, you will need to be sure you have the necessary pieces to build this. The color of the pieces can be changed depending on what you would like or what you have. The suggested colors are listed in the "Parts List" PDF. Refer to that document to be sure you have the necessary pieces. You will also need a LEGO MINDSTORMS EV3 Kit.

The "Lego Candy Machine Instructions" PDF provides the step-by-step building instructions for this Lego creation. If you would like animated 3D instructions, you can download the "Lego Candy Machine.lxf" file. This file can be opened with "LEGO Digital Designer", which is available free for download here. The LDD (LEGO Digital Designer) file provides 3D, animated building steps.

After you have made sure you have all of the necessary LEGO pieces, you may begin assembling the candy machine as described in LDD file or the PDF.

After assembling you will need to connect the motors to the Intelligent Brick. To do this, you will need to first take off the red roofing pieces from the top of the machine. This will open up room for you to plug in the cables. Now, (facing the front of the machine) connect the motor on the right to "Port D" and connect the motor on the left to "Port A" using the cables included in the LEGO MINDSTORMS EV3 Kit. Then replace the red roofing bricks.

jmay225 months ago

this is amaying

craftyshan1088 months ago
Can this different candy
goldlego (author)  craftyshan1088 months ago

Yes you can use different candy, as long as it is about the same size as the candy I used. Mini M&Ms, Tiny Size Chiclets, Sprinkles and Wonka Nerds are all candies that should work. Bigger candies tend to clog the machine. They may be others that work, so feel free to experiment with different candies.

CarterBond8 months ago
Really cool! I have a Mindstorm NXT 2.0 but I have not used it in a while. You have have encouraged me to start messing with t again. :)

This is awesome! I like that you can put two kinds of candy in it!