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 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).

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.

Major Components in Project
Arduino

Servo motor

Three diodes

 

For more detail: Candy Tossin Coffin using an Arduino


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top