
I designed and built this Skittles machine, which dispenses Skittles only when the correct passcode is entered on the keypad. I made the housing using laser-cut acrylic pieces, and used an Arduino, a keypad, a stepper motor, and a servo motor to bring the machine to life.
When the correct passcode is entered, the lid opens fully, displaying a congratulatory sign and dispensing Skittles. However, when an incorrect passcode is entered, the lid only partially opens, shows a sign that says “Nope!!”, and no candy is dispensed.
There are two main mechanisms in this machine. The first mechanism is the lip opening mechanism, which is achieved by a servo motor. The motor only rotates 20 degrees when a wrong passcode is entered, and rotates 90 degrees when the correct passcode is entered. The second mechanism is the skittles dispensing mechanism, which is powered by a stepper motor. The motor rotates 90 degrees at a time, dispensing one Skittles from the reservoir above.