This instructable is part of the Sparkfun and Epilog challenge so if you like it, vote for it. Also you can leave a comment or rate or subscribe!
Also a video of this in action will come in a little bit
Step 1: Bill of Supplies
1 x Bucket
1 x Standard 3 pin servo (This is the one I am using)
1 x Blank or unwanted CD
1 x Arduino or ATmega328 (I am using the Arduino Uno)
1 x 10K Ohm Resistor
1x Proto/Maker Shield or breadboard (You could use a Etched board, but it would be a lot easier to use aThe Makers Shield or Protoshield)
1 x Push button (This will be a override button)
1 x Sharpie Marker
1 x Large Cardboard Container (I used a Chips box from Costco)
1 x 9V arduino Battery pack or Wall Adapter
1 x Hot Glue Gun
1 x Dremel w/cutting wheel
1 x Soldering Iron
1 x Scissors
Step 2: Cutting the CD
Step 3: Affixing the CD to the Servo Head
Step 4: The Circuit
Step 5: Making a Bracket for the Servo
Make one of the things in picture 2 with hardwood, make sure the servo fits in it. Then cut two long pieces of wood and glue them on the side. Lastly, glue two more pieces on the pieces you just glued. Use picture one as a reference.
Step 6: Preparing the Container
MAKE SURE THAT BEFORE YOU GLUE IN THE CARDBOARD, YOUR ARDUINO AND CIRCUIT WILL FIT INSIDE THE CORNER COVERED BY THE CARDBIARD LIKE IN PICTURE 3
Next staple the servo cord up so it doesn't fall into the food. Then glue in the servo inside its mounting bracket from step 5 and slide another piece of hardwood under the top of the bracket like in picture 5
Now, Mark and cut a whole where the CD slit will be when its fully turned like in pictures 6 and 7.
Step 7: Adding the Chute
Step 8: Coding the Arduino
(For more help on libraries see my instructable about that here )
WHEN YOU CODE THE ARDUINO, MAKE SURE ITS PLUGGED INTO THE POWER AS WHEN IT RESETS, IT WILL RESET TO THE TIME GIVEN IN THE SKETCH
Step 9: Start It Up (And Some Final Words)
Also if you have a container with edges in the box that stop the flow of food, glue a piece of paper over this.