Magic Music Box

by j06395 in Circuits > Arduino

270 Views, 0 Favorites, 0 Comments

Magic Music Box

S__102809606.jpg
Arduino

My Arduino project is called Magic Music Box. It is a special box that makes sound and music. It also has a screen that shows music note names while making the corresponding sound. This is a perfect learning machine for kids that are willing to learn music.

I get my idea from the link: https://www.instructables.com/id/Simple-Arduino-Sound-Board/

Materials

S__102809602.jpg

You will need:

1. An Arduino board

2. A breadboard

3. An USB Cable

4. 21x Jumper wires

5. 7x Buttons

6. 7x 10k ohm resistors

7. An Arduino buzzer

8. An Arduino LCD

Connecting the Buttons

S__102809605.jpg
S__102809603.jpg

1. Each button has two pins

2. One pin has to connect to the ground with the resistor, and in the same row of breadboard connect to digital pin of 4, 5, 6, 7, 9, 10, 11.

3. The other pin of each button connects to 5V.

Connecting the Buzzer

S__102809607.jpg

The positive side connects to pin 8, and the opposite connects to ground

Connecting the LCD

S__102817794.jpg

1. Install LCD library in Arduino

2. There are four pins on LCD. Connect these pins to ground, 5V, SDA, SCL respectively to Arduino.

Writing the Code

截圖 2020-04-12 下午8.32.51.png
截圖 2020-04-12 下午8.33.59.png
截圖 2020-04-12 下午8.34.11.png

Congratulation! You Finished the Magic Music Box

Arduino 2