Gum Ball Machine
I built a gum ball machine. It is powered by a CPB and battery pack, and controlled by a potentiometer. I have attached the code I used below.
Downloads
Supplies
- 1/8" Birch Wood
- Battery Pack
- Gum Balls
- Circuit Playground Bluefruit
- Mason Jar
- Potentiometer
- Laser Cutter
- PVC pipe, elbow
Laser Cut Box
Using Makercase.com, make an open ended box. My plans are in the picture above.
Next, use a laser cutter to cut the box out.
Finally Assemble the box. Glue may be necessary.
Make sure to cut out a small hole at the top/front of the box for the potentiometer tip to come through. Cut an additional rectangular hole at the front of the box for the 3D printed piece to go.
3D Print Piece
3D print a rectangular piece like the one above. The rectangular cutout should be large enough to squeeze your servo in, but small enough that the servo does not slip out (you can use glue to secure it). The round hole should be large enough for a gum ball to easily pass through.
Glue this piece to the hole that you cut in the front of your box.
Set Up Servo
Assemble the servo and plug its wires into your CPB. Then place the servo in the rectangular cutout in the 3D printed piece. Try to have all wires concealed within your box.
Set Up Potentiometer
Attach your potentiometer to the CPB. Place the knob of the potentiometer through the hole at the top of your box - it should be visible when looking at the box.
PVC
Place the PVC piping in the box so that is allows passage of the gum ball from the mason jar to the 3D cutout.
Set Up Mason Jar
Fill your mason jar with gum balls, and place it on top of the hole (at the top of your box).
When you do this, a few gum balls should fill the passage.
Clean Up Box
Make sure all wires and devices are concealed under the box. You may need to use tape or glue to secure device within the box.
Try It Out!
After attaching the battery pack, turn it on and test it out!