The candy dispenser incorporates a simple funnel and trapdoor that can be controlled by a servo. This allows candy to be easily loaded from the top, and it is released when the correct PIN is input into the KeyBox.
The Key Box is the key to getting your well deserved candy. There is a keypad mounted on the box for users to put in the code that they received, it should be 329 if you followed the code as set up in this project (you can make your own code if you make a few adjustments along the way). If they get the key correct, they get a candy! If they do not, a silly string sprayer, hidden in this box, sprays them.
The Silly String Sprayer is an optional part of this project. It needs mechanical parts made from a rigid material. We used a laser cutter and ¼”acrylic, but you could also use thin wood or other firm material. A servo activates the sprayer.
Note: It is best to run projects from a battery pack or wall supply, Do not try to run them off of the USB cable.
To create the silly string spray device you will need to either:
Download the Silly String Parts File (DXF) [3]
You will need a program capable of opening a .dxf document to open the parts file.
4.5x4.5 Inches
CAUTION: Always wear safety glasses when working with drills, hot glue, laser cutters or other tools!
You’re finished! Have fun spraying your friends!
Links
[1] https://learn.parallax.com/tutorials/language/blocklyprop/silly-string-sprayer
[2] https://learn.parallax.com/tutorials/language/blocklyprop/4x4-keypad-7-segment-led
[3] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Projects/Brain-Megaproject/SillyStringDXFFiles.zip