Introduction: Arduino Sound Board

This is an experiment of the Arduino soundboard. You will understand how a passive buzzer works and how you can create a simple Arduino soundboard in this experiment. Using some buttons and choosing a corresponding tone, you can create a melody!

來源:https://www.instructables.com/id/Simple-Arduino-So...

Circuit: Add one more bottom

Step 1: Prepare All the Materials You Need

You need to prepare:

- an Arduino board

- a breadboard

- a USB Cable

- 12 x Jumper wires

- 4 x Buttons

- 4 x 10k ohm resistors

- a Buzzer

Step 2: Connecting the Buttons

First, you can see each button has 3 pins. The one on the left side of each button (you can swap them as well) connects to 5V (positive). The pin in the middle connects to the ground of the Arduino (through the breadboard) with a 10k resistor. The one on the right side connects the same row to digital pin 2, 3, 4, or 5 of the Arduino (can be configured in the code). You can use the above picture for reference.

Step 3: Connecting the Buzzer

You can see a + symbol on the top of the buzzer. It indicates the positive side of it. You need to connect the positive side to end to ground and this one to digital pin 8 of the Arduino (can be changed later). Then connect the opposite side to negative. You can use the above picture for reference.

Step 4: Uploading and Modifying the Code

Here's the code!

https://create.arduino.cc/editor/sabrinayeh/2bff8f7c-166e-482e-b3b7-821d9373ff34/preview

DONE!

Step 5: Video!