Candy Tossin Coffin using an Arduino

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.

Arduino coffin

Step 1:

Major parts include:

4.5 rpm motor Β #155821
1.8 rpm motor Β #176050
Two shaft couplers Β #162270
Servo motor #358635
Arduino microcontroller Β #2121105
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).

Step 2:

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.

Step 3:

Add 11 1/2 inch upright pieces (using wood screws and glue) to form the shell of the box.

Step 4:

Install a cross board to support the motor, 7 1/2 inches from the end.

Step 5:

Mount the motor on the cross board.

Step 6:

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).
Arduino coffin Schematic
Attach the shaft coupler to the spine.

Step 7:

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.

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]Arduino

Servo motor

Three diodes[/box]


For more detail:Β Candy Tossin Coffin using an Arduino

About The Author

Scroll to Top