Passive Buzzer
Signal Type:
n/a
Makes variable-pitch beeping, driven by the frequency of a changing (alternating current) power source connected to it.
IDeATe Component Number:
0496
IDeATe Location:
Output: Sound
On the floor:
34 each
Backstock:
0 each
Supplier:
Last known price:
$1.13000 per each
Jump to section:
Passive Buzzer
About

A passive buzzer requires an AC (alternating current) power source to make noise, and will not make sounds if connected to a DC voltage. This is because it needs the frequency of the power source, which oscillates back and forth, to drive the frequency of the buzzer. However, this also affords the passive buzzer more variability than the active buzzer.

Getting started
Passive buzzer schematic for code below
Passive buzzer schematic for code below
const int BUZZERPIN = 8;

void setup() {
  pinMODE(BUZZERPIN, OUTPUT);
}

void loop() {
    tone(BUZZERPIN, 500);
    delay(200);
    tone(BUZZERPIN, 1000);
    delay(200);
}
Related parts