Arduino Sound Board

by Sabrina1111 in Circuits > Arduino

609 Views, 0 Favorites, 0 Comments

Arduino Sound Board

IMG_7054.JPG

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

Prepare All the Materials You Need

IMG_7053.JPG

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

Connecting the Buttons

IMG_7057.JPG

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.

Connecting the Buzzer

IMG_7059.jpg

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.

Uploading and Modifying the Code

Here's the code!

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

DONE!

Video!

Arduino