Overview
In this lesson, you will learn how to program the UNO R3 or MEGA 2560 board to control a
passive buzzer, and then make the passive buzzer play music.
Components Required
Name
UNO R3 or MEGA 2560
Passive Buzzer
220Ω Resistor
NPN Transistor (S8050)
Component Introduction
A passive buzzer requires an AC signal to make a sound. It is like an
electromagnetic speaker, where a changing input signal produces the sound,
rather than producing a tone automatically like the active buzzer. The
principle of passive buzzer is using PWM to generate audio signal by making the air vibrate.
As long as you change the vibration frequency appropriately, it will generate different sounds.
And the frequency should be limited between 2KHz and 5KHz.
25
Lesson 6 Playing Music
Qty
1
1
1
1
Name
1KΩ Resistor
LED
Breadboard
DuPont Wire
Qty
3
3
1
10
Need help?
Do you have a question about the Ultimate Starter Kit for Arduino and is the answer not in the manual?
Questions and answers