0
V
Operating Voltage
0
V
OPERATING VOLTAGE
0
FREQUENCY RANGE (HZ)
0
PINS NEEDED
What is a Buzzer Module?
A buzzer module is a small electronic component that produces sound when an electrical signal is applied. It is one of the simplest and most satisfying components to use with Arduino — perfect for beginners and experienced makers alike.
Active Buzzer
Has a built-in oscillator. Just apply 5V and it beeps at a fixed frequency. Simpler to use — great for beginners.
Passive Buzzer
No internal oscillator. Requires a PWM signal from Arduino. Can play different tones, melodies, and music.
How It Works
① Signal sent
The tone() function generates a square wave on the pin at the chosen frequency.
② Crystal vibrates
The electrical signal causes the piezoelectric crystal to flex rapidly, creating pressure waves.
③ Sound produced
Frequency determines the pitch. 262 Hz = Middle C, 440 Hz = A4, 1000 Hz = high beep.
④ Stop with noTone()
Calling noTone(pin) stops the signal immediately and the buzzer goes silent.
Components Needed

Arduino Uno

Breadboard

Piezo Buzzer Module

Jumper Cables
Connection Diagram
💡 Wiring tip: Pin 9 supports PWM on Arduino Uno, which is needed to control tone frequency with a passive buzzer. If using an active buzzer, any digital pin will work.
Pin Connections
| VCC (+) | → 5V |
| GND (–) | → GND |
| I/O (S) | → Pin 9 |
The Code!
Basic Beep Example
// Arduino Buzzer - Basic Beep Example const int buzzer = 9; // buzzer connected to pin 9 void setup() { pinMode(buzzer, OUTPUT); // set pin 9 as output } void loop() { tone(buzzer, 1000); // play 1kHz tone... delay(1000); // ...for 1 second noTone(buzzer); // stop the tone... delay(1000); // ...wait 1 second }
Bonus: Play a Do-Re-Mi Melody
// Play a simple do-re-mi melody int notes[] = {262, 294, 330, 349, 392, 440, 494}; // C4 D4 E4 F4 G4 A4 B4 void setup() { pinMode(9, OUTPUT); } void loop() { for (int i = 0; i < 7; i++) { tone(9, notes[i], 300); // play each note for 300ms delay(400); } noTone(9); delay(2000); // pause before repeating }
What You Can Build
Alarm System
Beep loudly when a sensor detects motion, heat, or an open door.
Game Sounds
Play win/lose tones in Arduino games and interactive puzzles.
Music Instrument
Map buttons to musical notes and build a tiny piano or melody player.
Timer Alerts
Sound a beep when a countdown finishes or a sensor threshold is crossed.






