Blumcaw Cupcake (Blinking, LED, Ultrasonic, Motorized, Cackling, Arduino, Witch) With 3d Printed Parts

by MikeTheMaker in Cooking > Cupcakes

2832 Views, 3 Favorites, 0 Comments

Blumcaw Cupcake (Blinking, LED, Ultrasonic, Motorized, Cackling, Arduino, Witch) With 3d Printed Parts

blumcaw51.jpg


This old witch has a blinking wart on her nose.  If you step too near (as determined by a Ping ultrasonic transducer), she will cackle out a greeting, her hat will spin and her eyes will flash seven colors.

Blumcaw can be made as a "plain old cupcake" without electronics and 3d printed parts if maintaining sanity is important in your household.

blumcaw09.jpg
Let's start by making cupcakes!

Almond Cupcakes

 

Preheat the over to 350 degrees F and line a cupcake tin with 12 paper cups.

 

Ingredients:

¾ cup softened butter

1 ¼ cup granulated sugar

3 eggs

½ teaspoon pure vanilla extract

½ teaspoon of almond extract

1 ½ cup all-purpose flour

½ teaspoon baking powder

½ cup milk

 

Put softened butter and granulated sugar into a mixing bowl and cream together with an electric mixer until light and fluffy. Add eggs, vanilla, and almond extract. Blend together. Add flour, baking powder, and milk. Mix until the batter is smooth. Fill a cookie scoop with batter and put batter into one cupcake paper. Repeat process until all of the paper cups are filled. Bake for 20 minutes or until the top of cupcake springs back when touched.

Yield: 12 cupcakes

blumcaw04.jpg
I needed a structure to hold the motor and route the wires--also I needed something to fit on the motor shaft and hold the witch's hat.  I made these parts with a MakerBot Replicator--design files here:

http://www.thingiverse.com/thing:31224

blumcaw01.jpg
Inside the L shaped tube there is a channel for wires.  At the top end of the L, there is a rectangular hole which holds the motor I am using.

schematic.jpg
This is the schematic and parts list for the electronic components.

blumcaw03.jpg
Solder wires to the motor.

blumcaw05.jpg
Using wire wrap wire, connect the LED's as shown on the schematic (resistors will be outside the cupcake, no need to insert them).

To connect the 7 color LED's, take a look at these instructions:

http://www.seanliming.com/Docs/Articles/MSGBB557TA_7_Color_LED.pdf

blumcaw06.jpg
Insert the motor and wires into the "L."

blumcaw07.jpg
Press the motor into its slot.

blumcaw11.jpg
Choose your cupcake and cut a square out of the center for the support tube.

blumcaw12.jpg
Turn the cupcake over and cut out a segment to allow passage of the small part of the "L"

blumcaw13.jpg
Insert the "L" tower into the cupcake.

blumcaw15.jpg
Obtain 7 ounces of marzipan candy dough.  Divide the dough in half.

blumcaw16.jpg
Add green food coloring to half the dough.

blumcaw17.jpg
When well mixed, you'll have a uniform colored green ball.

blumcaw20.jpg
Remove about 1/3 of the ball and divide that into two elongated pieces.

blumcaw21.jpg
Using a nut pick, hollow out the inside of the "nose."

blumcaw22.jpg
Poke a hole through the nose for the "wart LED." 

blumcaw19.jpg
Take the main green ball and hollow out the inside.

blumcaw23.jpg
Poke a hole in the main green ball and join it to the "nose hole" on the nose.  NOTE:  these holes are needed for wires, they are not needed for a witch without electronics.

blumcaw24.jpg
Add the "lower jaw" piece below the nose.

blumcaw25.jpg
Shape the mouth using the nut pick.

blumcaw26.jpg
Take a small ball of marzipan and mix in yellow food dye.

blumcaw27.jpg
Make a few small spheres.  Two will be for eyes, the others for teeth.

blumcaw28.jpg
Add eyes.

blumcaw30.jpg
Add teeth.

blumcaw29.jpg
This is a little gross, but the electronic version needs holes in the eyes where LED's will eventually be.

blumcaw31.jpg
Make purple dough using red and blue food coloring.

blumcaw35.jpg
Make a flat coin type piece and a hollow cone for the hat.  Bend the tip of the hat over.

blumcaw36.jpg
Assemble the hat.

blumcaw37.jpg
Create a yellow "snake" and put this band around the hat.

blumcaw34.jpg
Make a couple of "mean" eyebrows.

blumcaw38.jpg
Put magnet wire (or string) through the nose and eye holes.  This is "pull" wire to assist in getting the LED's into place.

blumcaw39.jpg
Pull the LED's into place.  This is a challenge, even with two people working.

blumcaw41.jpg
Add the hat base to the end of the motor shaft.

blumcaw32.jpg
Put some marzipan in a garlic press.

blumcaw33.jpg
Squeeze, and you have lovely hair.

blumcaw42.jpg
Add hair.

blumcaw43.jpg
Time for some frosting:

Butter Cream Frosting  (for witch’s purple collar)

 

Ingredients:

1 lb. of 10X confectioner’s sugar

1 stick of softened salted butter

¼ cup milk

2 teaspoons real vanilla extract

red and blue food coloring

 

Using an electric mix, cream ingredients together until frosting is smooth. Add 6 red drops of food coloring and 4 blue drops and mix together for purple frosting.

 

blumcaw44.jpg
Pipe the frosting onto the cupcake.

blumcaw45.jpg
Finish with the frosting and add hair as desired.

blumcaw47.jpg
Place the hat on the rotating disk.

blumcaw48.jpg
Now, we need to load a "sketch" (software) into the Arduino. Note the "if duration <4000" line below--the "4000" is the number that determines how close you must be to the Ping ultrasonic sensor to trigger the witch.  Change this number if you want a different minimum activation distance.

const int pingPin = 7;

long duration;

int ledPin = 13;

int eye = 5;

 

void setup ()

{

  pinMode (ledPin, OUTPUT);

  pinMode (eye, OUTPUT);

}

 

void loop ()

{

  digitalWrite (ledPin, LOW);

  digitalWrite (eye, LOW);

  delay (10);

  pinMode (pingPin, OUTPUT);

  digitalWrite (pingPin, LOW);

  delayMicroseconds (2);

  digitalWrite (pingPin, HIGH);

  delayMicroseconds (5);

  digitalWrite (pingPin, LOW);

  pinMode (pingPin, INPUT);

  duration = pulseIn (pingPin, HIGH);

  if (duration <4000)

  {

    digitalWrite (ledPin, HIGH);

    digitalWrite (eye, HIGH);

  delay (10000);

  }

else

{

  digitalWrite (ledPin, LOW);

  digitalWrite (eye, LOW);

}}

 

blumcaw08.jpg
Remove the "play" switch on the digital recording module and solder two small (wire wrap wires) wires on the traces that the switch connected.  A contact from the relay will activate the play mode.

blumcaw49.jpg
Wire it all together--as in the schematic in step #4.

blumcaw50.jpg
She's not a thing of beauty, so any mistakes just enhance the final product! 


I added this video so that technically curious people could see the entire system in operation.  Sensitivity range is around two feet for triggering the cupcake.

Special thanks to my wife for marzipan work and wire pulling :)