Simple Arduino


146

Introduction: Simple Arduino

In this experiment, you will understand how a passive buzzer works and how you can create a simple Arduino soundboard. Using some buttons and choosing a corresponding tone, you can create a melody! The parts that I've used are from By Aleksandar Tsvetkov in Circuits.

Step 1: Parts Needed

You will need:

  • an Arduino board
  • a breadboard
  • an USB Cable
  • Jumpers
  • 4 x Buttons (number of caps and buttons is optional)
  • 4 x 10k ohm resistors
  • a box

Step 2: Connecting the Buttons and Buzzer

Firstly, let's start with the buttons. For each button, choose one of its sides. You will see 2 pins. The one on the left (you can swap them as well) connects to the ground of the Arduino (through the breadboard) with a 10k resistor. Connect the same row to digital pin 2, 3, 4 or 5 of the Arduino (can be configured in the code). The pin on the right side of each button connects to 5V. You can use the above picture for reference. Do these steps for all of your buttons.

So, on the top of the buzzer, you can see a red jumper, it indicates the positive side of it. You need to connect the opposite end to ground and this one to digital pin 8 of the Arduino (can be changed later).

Step 3: Uploading and Modifying the Code

My code is here

Step 4: Step 4: Put It in to the Box

The last step is to put it into the box, remember to poke some hole let the bottoms can put on the box, and also poke a hole for the USB cable.

Then You Are Done.

Be the First to Share

    Recommendations

    • Digital Fabrication Student Design Challenge

      Digital Fabrication Student Design Challenge
    • Tinkercad to Fusion 360 Challenge

      Tinkercad to Fusion 360 Challenge
    • Frozen Treats Speed Challenge

      Frozen Treats Speed Challenge

    Comments