Creative Happy Birthday Ideas

by cc_chao in Circuits > Arduino

830 Views, 0 Favorites, 0 Comments

Creative Happy Birthday Ideas

IMG_2364.JPG
IMG 2369
Screen Shot 2020-05-25 at 8.34.41 PM.png
IMG_2292.JPG
IMG_2324.JPG
IMG_2327.JPG
IMG_2328.JPG
IMG_2329.JPG
IMG_2375.JPG
IMG_2377.JPG
IMG_2372.JPG

This is a birthday card idea made for your friends and loved ones. The LED light symbolizes the candle within the card, while the black round thing is the speaker, the speaker will be playing the happy birthday song. Both the song and the light will be controlled by Photoresistor, simulating the close and open motion of the card. So when you open the card, the light will simulate the candle, and the happy birthday song will be playing in the background. The card is a happy birthday card, the cake on the card is a happy birthday cake, in which on the top of the cake, there lies a candle for a touch of competence. The creature on the right-hand side is what I believe kids looked like when they look at their birthday cake. It doesn't really matter whether the target audience is for elders or children, the symbol of a kid looking at the birthday party means the innocence we all possess when we were younger.

Supplies

- Breadboard *1

- wires * 7

- extended wires*4

- speaker (piezo) *1

- LED*1

- Photoresistor *1

- Resistor*2

- paper* 1

- pencil* 1

- Adaptor* 1

- coloring pencil*1

Set Up the Photoresistor

IMG_2330.JPG
IMG_2332.jpg
Screen Shot 2020-05-27 at 9.45.49 PM.png

Before you set up the photoresistor, remember to connect the wires ( shown in picture 1), connect the positive to 5v and the negative to GND to assist on the flow. Then, from the positive lane, you will need to connect another wire and extend it to the ABCDE lane of the breadboard. The next to the freshly connected wires, you will need to use another wire to connect the next spot to A0 on the Arduino board. After connecting the A0, you apply the photoresistor onto the breadboard, make sure both ends of the photoresistor lines up with the positive-extended wire and the A0 wire. Once your photoresistor is lined up, you will then add the resistor, which should also be lined up with the A0 wire. While on the other hand on the resistor, you will need to use another wire to line it up and extend the wire to the negatively charged lane. The complete product should look like the second picture.

Connect the LED

IMG_2332 2.JPG
IMG_2339.JPG
Screen Shot 2020-05-27 at 9.47.30 PM.png

First, you will have to use a longer wire connect the D-pin, which is any pin on the top of the Arduino board ( I used D12) then connect it to any part of the Arduino board. Next, use an extension wire for the LED ( should look like a red clip) line up one of the ends with the D-pin, while connecting the other end on any spot on the breadboard. On the bottom of one end, the end who is not lined up with the D-pin should use a resistor. At the other end of the resistor, use the wire to connect it to the negatively charged lane ( should be lined up). The finished product should look like the image above.

Setting Up the Speaker

IMG_2340.JPG
Screen Shot 2020-05-27 at 9.48.28 PM.png

Because the wires connected to the speaker can't directly connect it to the board, so we will be needing extending wires. The red one connected to the speaker is the positive one, so therefore, we need to connect it to the D-pin. The black wire is the negative one, so therefore, we need to connect it to GND.

Coding

The website for my coding: https://create.arduino.cc/editor/coco_chao/34e072...

At first, the int speaker pin is the D-pin for the speaker. Then the length is the number of notes, the char notes are the notes the happy birthday song is going to play. The beat is the note in numbers and the tempo is the length of the note. In the happy birthday song, there are 8 notes each, starting from note one, the note will be one second, then the code will move on to note two, so and so forth. Then the next part of the code is for the Photoresistor to control the speakers. Next, the part where it says void play note is basically the same thing, it plays the note corresponding to the frequency. As mentioned above, there are 8 notes in this song, and the code will inform the speaker to start from note one. Then the next part where it says set the digital pin as an output, its the LED lightbulb. The void loop is the Photoresistor's code. So when the light waves are smaller than 500, the Photoresistor won't commend the LED and speaker to work, but if it's over the amount, then the LED will shine, and the speaker will start playing songs.

Decoration

IMG_2364.JPG
IMG_2365.JPG
IMG_2367.JPG
IMG_2370.JPG

The decoration varies from person to person. I personally, enjoy hand craft cards, so I made one. The key to making the card is easy, all you need are coloring pencils, a pencil, some tape, and an A4 paper. You can find a birthday cake that you like, and either trace or draw in down on the top half part of the paper. After drawing it, you could add some other illustrations on the side. After finish decorating the upper part of the paper, fold it in halves. After folding it halves, figure out where do you want your LED and Photoresistor and cut 2 holes, one for each spot ( cut a small hole, but big enough to fit Photoresistor and LED). Use tape to secure the LED and Photoresistor. Then the bottom half is for you to write your heartwarming birthday message. The completed card is shown in the pictures above. Good luck!