Circuit 2
In this circuit, we'll again bridge the gap between the
digital world and the analog world. We'll be using a
buzzer that makes a small "click" when you apply
voltage to it (try it!). By itself that isn't terribly
exciting, but if you turn the voltage on and off
hundreds of times a second, the buzzer will produce a
tone. And if you string a bunch of tones together,
you've got music! This circuit and sketch will play a
classic tune. We'll never let you down!
Piezo Buzzer
PARTS:
Wire
3
X
CIRCUIT #11
11
Piezo Buzzer
1
X
IOREF
RES
ET
RESET
7-15V
SCL
SDA
AREF
GND
13
12
~11
~10
~9
8
7
~6
~5
4
~3
2
1
0
TX
RX
13
3.3V
5V
GND
GND
VIN
A0
A1
A2
A3
A4
A5
POWER
ANALOG IN
DIGIT
AL (PWM~)
ON
ISP
TX
RX
LEARN. SHARE. HACK.
If the buzzer doesn't easily fit
into the holes on the breadboard,
try rotating it slightly.
GND
(Ground)
RedBoard
Piezo Buzzer
PIN 9
Page 61
Summary of Contents for RedBoard
Page 13: ...Page 11...