51b6d3ce 8d0e 4493 b334 ee0999986aec


Vending Machine

by Cara L

Published on July 7, 2016

This is my first ever vending machine creation. Use the slide dimmer and servo to lift the trap door and release the plastic eggs.

Duration: several hours

Credits: I would like to thank Jude Brisson and Sky Shin for collaborating with me.

How To Make It


Make the outside I chose two boxes, a wide one and a narrow one. I painted them, cut a square in each one to make a window, and attached the two boxes with Velcro. The back of the machine also closes with Velcro. The capsules are released through a trap door in the narrow box. They eventually reach the prize door at the base of the wide box. Don't forget to add a coin slot, and a door in the top of the narrow box to put the capsules in!
7528a20e 1a79 4748 be9d 85ae571223fb

1b16e9c6 88bf 4a49 ac87 4dbc033756d0


Make the inside The capsules fall into a plastic tube (a plastic bottle with the ends cut off). They fall into a cup with a doorway cut in the bottom. Coins fall into another cup (the bottom of a plastic bottle) that is attached with Velcro so it is easy to remove.
5d5359f3 17b0 4964 a234 9761fe1bc787


Build the circuit The circuit consists of Power + Wire + Slide Dimmer + Wire + Servo. A short popsicle stick with a hole drilled in it is fastened to the servo arm. A string tied through this hole lifts the trapdoor. Make sure to cut holes for the slide dimmer and the second wire.
05295bed 989d 4f8a b50d ecf2856ad8fd


Other things to keep in mind This project required a lot of trial and error. I found that the trap door was too lightweight and would not fully close. Taping four coins to the back helped somewhat, but making the door itself out of heavier material may have been a better solution. Also, because the plastic eggs are smaller at one end, they sometimes jammed inside the machine. I taped a marble into each half of each egg in an attempt to balance the weight. This helped a little, but round or cylinder shaped capsules may be a better choice for this kind of machine.
3d9e106e 498b 46fd 9069 3ccfc5050917

Related Projects

Polar Pingu Ice Float

A lego polar bear and penguin on top of an iceberg that lights up.

Auto slow/variable motion

Idea is to use the light sensor + cd motor + bright led in such a way that the motor actually turns a card or something between th...

Wireless Lighting

Turn on a lamp [or any other appliance that plugs into the wall] anytime from anywhere. Arriving home late to a dark apartment or ...