Introduction: Arduino Birthday Cake Topper

In celebration of Arduino's Birthday on April 2nd, I decided to make an awesome Arduino-based birthday cake topper with elecronic "candles" that can be blown out.

Parts list:

  • 1 x Arduino Uno
  • For each "candle", you will need:
    • 1 x 5mm yellow LED
    • 2 x 110Ω 1/4 watt resistors
    • 1 x paper straw
  • 1 x 9V battery
  • 1 x 9V battery holder
  • 1 x Paper clip
  • 1 x Adhesive address label or paper and glue
  • 3" of copper tape
  • 1 x wooden dowel or skewer
  • Hot glue gun

Step 1: Program the Arduino Uno

The Arduino file for this project is below. Simply open it in the Arduino IDE, and program the board as normal. When it has been programmed, you can test it using the LED circled in the picture above. It should be flickering when the Arduino Uno is powered. Using a piece of wire, connect analog in A0 to either of the GND (ground) connections, and the LED should flicker out after 1 second and stay off. If you want to test again, press the reset button and repeat the process.

Here's a 123D Circuits project, illustrating how the cake topper works. You can press "Start Simulation" to try it out:

Step 2: Add the Battery and Legs

Put the 9V battery into the battery box and make sure the switch is turned off (if there is one). Attach the battery box to the underside of the Arduino UNO with hot glue. Position it such that the on/off switch is accessible. For mine, I positioned it so that the switch was right next to the USB connector on the Arduino Uno board.

Find a skewer or wooden dowel that closely matches the mounting hole diameter of the Arduino Uno board. Cut four 2-1/2" sections and press into the mounting holes. These are the stands that will be pressed into the cake when the topper is put on.

Feed the two wires from the battery box over to the adjascent GND and VIN header holes of the Arduino Uno. The black wire should go in the GND hole, and the red wire goes in the VIN hole. I then taped mine in place using masking tape to make sure that they stay there.

You can test the power connection by turning on the power switch. Again you should see the LED start flickering.

Step 3: Make the "candles"

To make each candle, you will need to solder a 100 or 110Ω resistor to each leg of the LED. The resistors are necessary current-limiters for the LED and provide the height for the candle. They also allow the candle to be plugged directly into the header on the Arduino.

Once the soldering is done for each LED, measure and cut a paper straw section for each candle that allows the LED to sit flush at one end with the resistors inside and 1/4 inch or a little more of the resistor leads protruding from the other end.

If necessary, apply regular clear tape to the base of each LED to attach it to the straw.

With the Auduino Uno powered, put each candle in place in the digital headers. The candles will be in the following positions:

  • 1 and 2
  • 4 and 5
  • 7 and 8
  • 10 and 11
  • 13 and GND

The candles will only light when the wires are in a certain direction, so if a candle doesn't light, turn it around so that the wires are switched and try again.

Step 4: The "Happy Birthday" Flag

In order to "blow out" the candles, you need a switch that responds to air movement. This will be made from a small paper flag, some copper tape, and a couple of pieces of metal paperclip.

I used an adhesive address label that I had lying around (Avery 5027) for the flag. You can use a piece of cardstock or white paper and glue or tape just as easily.

Fold the paper in half. If it is an adhesive label, remove the back to expose the adhesive.

Lay the copper tape down on the paper/label adhesive-side-to-adhesive-side, such that the copper tape goes across the fold and out past one edge.

Place an unfolded paperclip along the fold and close the paper/label (if no adhesive, use glue or tape it closed). The tail end of the copper tape should be hanging out from between the folded paper/label.

Fold the copper tape around the edge and attach it to one side of the flag. It should go most of the way across that side of the flag.

Cut the paperclip wih wire cutters so that about 3/8" of paperclip remains protruding from the flag.

Write "Happy Birthday", or whatever you wish on the black side of the flag.

Step 5: Completing the Switch and Trying It Out

Place the flag in either the analog in A0 or A5 hole, depending on which direction the flag faces with the words visible.

Trim a straight section of the paperclip so that it is similar length to the piece in the flag. Place it in the other hole (A0 or A5).

When the copper tape comes into contact with the other paperclip piece, the switch is completed. Position the flag so that it is almost touching the other paperclip.

If the Arduino Uno is powered and the candles are in place, they will go out when the switch is closed by blowing on the flag.

You can press the reset switch on the Arduino Uno to turn the candles back on.

Have fun and a happy birthday!

Comments

author
ewalsh4 (author)2017-01-12

Wouldn't it be cool if you used a flame sensor to switch it on?! It would be really funny, in my opinion, to still have to strike a match to light fake candles.

author
suryanarayanb (author)2016-08-30

help me with fix this error

ice_screenshot_20160830-222705.png
author
SoLongSidekick (author)2016-04-04

What exactly is a "paper straw"? I thought you made them yourself by rolling up paper and running some electrical tape up the tube lengthwise and diagonally, but it from what you've written it sounds like you purchased these somewhere.

author

Any straw of an appropriate diameter will do, whether it is plastic or paper. I managed to find the striped paper straws that I used for this project at a handly dollar store. They happen to be made of paper, but the material doesn't really matter. A search on amazon came up with these straws that are similar to the ones that I used: http://amzn.com/B009VZVQ1C

author
jcantalupo (author)2016-04-03

Nice. For my son's 7th birthday, we did an "electronics" party and spent a month or two making all sorts of gadgets. We did something similar to this, but used a BMP180 pressure sensor breakout board to sense the blow. But this is nice and simple!

author
DukeOfMarshall (author)2016-04-03

Creative AND simple. That's awesome!

author
wold630 (author)2016-03-31

So creative! I love this!!

About This Instructable

5,624views

61favorites

License:

More by Autodesk Circuits:Wearable ElectronicsCadsoft EagleElectronics
Add instructable to: