When you flip a switch, the coffin lid opens and a smiling red eyed ghost arises. The ghost flings some candy, pushes the switch back and returns to rest. Then, the coffin lid closes.
Major parts include:
4.5 rpm motor #155821 Jameco.com
1.8 rpm motor #176050 Jameco.com
Two shaft couplers #162270 Jameco.com
Servo motor #358635 Jameco.com
Arduino microcontroller #2121105 Jameco.com
Four limit switches #275-0016 Radio Shack
One Toggle Switch #275-652 Radio Shack
Three diodes 1N4004
Two Red LED’s
Five White LED’s
Wood, wire, screws
3 feet aluminum trim channel for 1/4″ plywood (or something else stiff for the ghost spine)
If you choose to build without the “candy flinging arm,” you can eliminate the microcontroller and servo motor (everything to the left and above the red line on the schematic).
Using 1″ x 2″ wood, assemble the base. Top and bottom pieces are 18″ long. The widest spot is 24″ wide. Use a piece of 1/4 inch wood rod and glue to attach the joint between the upper and lower pieces.
Add 11 1/2 inch upright pieces (using wood screws and glue) to form the shell of the box.
Install a cross board to support the motor, 7 1/2 inches from the end.
Mount the motor on the cross board.
Drill two 3/32 inch holes in the coupling shaft and create threads for 4-40 screws with a tap.
Note that I used a yardstick for the ghost spine. This worked for a while, until (during testing) the yardstick failed to contact a limit switch and the torque from the motor split the yardstick into pieces. I suggest using some sort of aluminum channel or angle for the upright piece (I used trim channel).
Attach the shaft coupler to the spine.
Cut a 12 inch long section from a yardstick. Attach a piece of aluminum angle in the center and drill the angle to bolt to the “spine” of the ghost. At the end of this arm, using double sided tape, attach a servo motor.
For more detail: Candy Tossin Coffin using an Arduino