Christmas Surprise Card(by Using Arduino)

by Zhang0821 in Circuits > Arduino

53 Views, 0 Favorites, 0 Comments

Christmas Surprise Card(by Using Arduino)

pareve-christmas.jpeg

Introduction to the Christmas surprise card:

Christmas (or the Feast of the Nativity) is an annual festival commemorating the birth of Jesus Christ, observed primarily on December 25 as a religious and cultural celebration by billions of people around the world. During Christmas, many people will buy gifts or write cards to their family and friend, and celebrate the event together.

How the Christmas surprise card works and briefly analyze:

From the about introduction of Christmas, writing cards to others are common during this event, but sometimes only "writing cards" are somehow boring to the others, so by making a "Christmas surprise card", it makes some entertainment and freshness. The "Christmas surprise cards " include LED lights, a speaker, and a bottom, by pressing the button, the song of Christmas song will play out from the speaker, and after the song is over, the LED lights will shine in a set program against the Christmas's song's beat until it ends. The card can either write letters to friends, it can even produce a better vibe against the LED lights and speaker with Christmas songs than an original Christmas card.

About the original idea:

The idea of Christmas light is from the down link:

https://www.instructables.com/Arduino-Christmas-Lights-2/

The extra features I added:

1. Button - This is a structure that originally didn't have. The program of the Christmas surprise card will start when a user presses the button, the program will end when the program is finished, it will start until the button is pressed again, which it won't play the noisy Christmas song illimited.

2. Buzzer- This also a structure that originally didn't have. When the button is pressed, the buzzer will play Christmas first, and when the song finishes, the LED lights will start to shine.

3. LED lights- This is an original structure in the original work. The LED lights will light after the Christmas song is played from the buzzer, and the LED lights will shine in four ways, in basic, pairs, chaser, and random.

4. The card- In the original work, there are just LED lights. To make the LED lights more usable and interesting, I employ the original work with a Christmas card to make it more interested than the origin.

By adding these functions and structures, I hope that you think it is interesting!

Step 1 : Preparation of Materials

截圖 2021-04-18 下午6.47.45.png
截圖 2021-04-19 上午11.05.44.png
截圖 2021-04-19 上午11.05.31.png
截圖 2021-04-19 上午11.05.13.png
截圖 2021-04-19 上午11.04.56.png

The materials used in this project are very simple and easy to get

1. 5 LEDs(can be any color)

2.A buzzer

3.A button

4.Breadboard

5.Arduino Leonardo

6.Card

7.Scissors

8. Computer used to process the program

9. Two Resistances

10.Breadboard connecting wire

Step 2: Start Making!

截圖 2021-04-18 下午6.58.56.png

The steps are easy and simple.

Wiring

Button- 1. wire the positive line and the first line of the button on the Breadboard

2. wire the second line on pin 12 with resistance connecting with the negative line on the Breadboard

Buzzer- 1.wire the first line of the buzzer on the GND

2.wire the second line of the buzzer on pin 9

LEDs- 1.Set five LEDs with the same line on the Breadboard with each a resistance and wire on the negative line on the Breadboard

2. Wire each LEDs on pin 2,3,4,5,6,7

Others- 1.Wire GND with the negative line on the Breadboard

Step 3: Coding

截圖 2021-04-19 上午10.47.15.png
截圖 2021-04-19 上午10.46.59.png
截圖 2021-04-19 上午10.46.43.png
截圖 2021-04-19 上午10.46.24.png
截圖 2021-04-19 上午10.45.58.png
截圖 2021-04-19 上午10.45.24.png
截圖 2021-04-19 上午10.44.59.png

The pictures are the codes of the design

The down link is also the code of the design

https://create.arduino.cc/editor/ryanzhang0821/e2d4c7eb-d236-453e-907f-5590b35f7ce6/preview

Original link:https://pastebin.com/ztkDNbdf

Step 4(The Outward)

截圖 2021-04-18 下午10.48.28.png
截圖 2021-04-18 下午10.48.02.png

Second part(outward)

It can be a card or a present box, but for me, I used a box, merely like a present. 1. Cut one 19x13 and two 12x 13of cardboards to encase the Arduino 2. on the outside of the cardboard, draw some Christmas trees and write a big Merry Christmas 3. On the inside of the cardboards, you can put some letters to your friends and family!

Materials needed:

2 20x20 cardboard

tape

Color marks

scissors

Final Project

截圖 2021-04-18 下午11.00.07.png
Arduino

Because the Buzzer is broken, so there's no video, but it works

Maybe the outward/appearance looks bad and ugly, but the main point is the functions

It's hard to execute to play both LEDs and the music (for my ability)