User Manual

Lesson 7 Passive Buzzer
Overview
In this lesson, you will learn how to use a passive buzzer.
The purpose of the experiment is to generate eight different sounds, each sound
lasting 0.5 seconds: from Alto Do (523Hz), Re (587Hz), Mi (659Hz), Fa (698Hz), So
(784Hz), La (880Hz), Si (988Hz) to Treble Do (1047Hz).
Component Required:
(1) x Elegoo Mega2560 R3
(1) x Passive buzzer
(2) x F-M wires (Female to Male DuPont wires)
Component Introduction
Passive Buzzer:
The working principle of passive buzzer is using PWM generating audio to make the
air to vibrate. Appropriately changed as long as the vibration frequency, it can
generate different sounds. For example, sending a pulse of 523Hz, it can generate
Alto Do, pulse of 587Hz, it can generate midrange Re, pulse of 659Hz, it can produce
midran
ge
Mi.
By
t
h
e
buzz
er,
y
ou
c
an play a son
g
.
We
should be
c
a
re
ful no
t
t
o us
e
the ME
GA2560
R
3
boa
r
d analo
g
Wr
i
te
() function
to
gener
a
te
a puls
e
to
the
bu
zzer,
be
c
aus
e
the puls
e
ou
t
pu
t
of analo
g
W
rit
e
() is
fi
xe
d (5
00
Hz).
68
/
223