Buzzer - High Quality Passive Buzzer Module

SKU: HS1024
Passive buzzer module: black round buzzer on a blue PCB with a 3-pin header and one SMD transistor, angled view

Buzzer - High Quality Passive Buzzer Module

SKU: HS1024
Regular price $2.49
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

The ePartners Passive Buzzer Module is a 3-pin, 3.3–5 V buzzer board that plays tones from Arduino, ESP32 and Raspberry Pi Pico pins when you send it a square wave.

A passive buzzer lets you choose the pitch, so one module can beep, play alarms or play simple melodies. This board adds an on-board transistor and a 3-pin header (VCC, GND, I/O) so it plugs straight into jumper wires.

Type
Passive buzzer
Supply
3.3–5 V
Interface
3-pin: VCC, GND, I/O
Board size
3.3 × 1.3 cm

Why choose it

  • You pick the pitch: the tone follows the frequency you send, so one module covers beeps, alarms and melodies.
  • Works on 5 V and 3.3 V boards: the supply range is 3.3–5 V, so Arduino UNO, ESP32 and Raspberry Pi Pico can all power it.
  • Easy to mount: a 3-pin header for jumper wires and one fixed bolt hole on the board.

Specifications

Core
Type Passive buzzer module (needs a square-wave signal)
Drive signal Square wave; supplier guidance is about 2–5 kHz. Steady DC gives no tone.
On-board driver One SMD transistor and one SMD resistor (visible in the product photo)
Power and interface
Operating voltage 3.3–5 V DC
Interface 3-wire: VCC, GND, I/O
Header 3-pin header (VCC, GND, I/O)
Physical
Board size (PCB) 3.3 cm × 1.3 cm
Mounting One fixed bolt hole

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Power from 5 V; use tone()
ESP32 (3.3 V) ✓ Yes Power from 3V3; use LEDC (ledcAttach, ledcWriteTone)
Raspberry Pi Pico (3.3 V) ✓ Yes Power from 3V3(OUT); use MicroPython PWM
Software Arduino IDE, MicroPython No extra library needed

In the box

Included
  • 1 × Passive Buzzer Module

Applications

  • Alarm or alert tones for a sensor project
  • Doorbell chimes and simple melodies
  • Audible feedback for button presses or menus

Tutorial

What you'll build: a three-note beep (C4, E4, G4) that repeats every second, played by the passive buzzer module. · About 15 minutes.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D8, 5V, GND C++ (Arduino IDE) First-timers: the fewest setup steps
ESP32 3.3 V GPIO18, 3V3, GND C++ (Arduino IDE) Projects that add Wi-Fi or Bluetooth later

New to this? Start with the Arduino UNO.

How it works

A passive buzzer has no built-in tone generator. Steady power (DC) does not make it sing; your board must send it a rapidly switching on/off signal called a square wave. The pitch you hear is how many times per second the signal switches.

  • GND: the return path for the current. Every GND must be joined.
  • I/O: the signal pin. The board sends the square wave here.
  • Frequency (Hz): switches per second. A higher number is a higher note. Supplier guidance for this type of module is a square wave of about 2–5 kHz.
  • Transistor: the small part on the module that switches the buzzer for your board, so the board pin does not have to power it directly.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable, 3 jumper wires (female-to-female, or male-to-female if you use the pin header)

Wiring diagram: passive buzzer module to Arduino UNO Arduino UNO D85VGND Passive buzzer module I/O (signal)VCCGND signalpowerground Pin order on the module may differ: follow the printed labels.

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected

# Board pin Module pin Wire Notes
1 D8 I/O (signal) Yellow Tone signal from the board
2 5V VCC Red Supply, 3.3–5 V
3 GND GND Black Ground
1
Install the Arduino IDE
Download and install the Arduino IDE. No extra library is needed: tone() is built in.
2
Wire it up
Unplug the USB cable first. Join the three wires as in the table, matching the labels printed on the module.
3
Choose board and port
Plug in the UNO. In the IDE choose Tools → Board → Arduino UNO, then Tools → Port → the port that appeared.
4
Upload and listen
Paste the sketch below, click Upload, then open Tools → Serial Monitor and set 115200 baud.
▸ Example 1: three-note beep
// Passive buzzer module on Arduino UNO
// Wiring: I/O -> D8, VCC -> 5V, GND -> GND
const int BUZZER_PIN = 8;        // I/O pin of the module  (you can change this)
const int IDLE_LEVEL = HIGH;     // pin level between beeps (you can change this)

void beep(int freq, int ms) {
  tone(BUZZER_PIN, freq);        // start a square wave at freq Hz
  delay(ms);                     // keep it going for ms milliseconds
  noTone(BUZZER_PIN);            // stop the square wave
  digitalWrite(BUZZER_PIN, IDLE_LEVEL);
}

void setup() {
  Serial.begin(115200);
  Serial.println("OK - epartners.co.nz test");
  pinMode(BUZZER_PIN, OUTPUT);
  digitalWrite(BUZZER_PIN, IDLE_LEVEL);
}

void loop() {
  Serial.println("Beep");
  beep(262, 300);                // C4  (you can change this)
  beep(330, 300);                // E4
  beep(392, 300);                // G4
  delay(1000);                   // pause for one second
}

✓ Check: Serial Monitor (115200 baud) prints “OK - epartners.co.nz test” once, then “Beep” every second, and you hear three rising notes each time.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB data cable, 3 jumper wires

Wiring diagram: passive buzzer module to ESP32 DevKitC ESP32 DevKitC GPIO183V3GND Passive buzzer module I/O (signal)VCCGND signalpowerground Pin order on the module may differ: follow the printed labels.

■ Power ■ GND ■ Signal ■ I2C / SPI / UART ■ Other ⌒ = wires cross, not connected

# Board pin Module pin Wire Notes
1 GPIO18 I/O (signal) Yellow Tone signal from the board
2 3V3 VCC Red Supply, 3.3–5 V
3 GND GND Black Ground

Watch out: ESP32 pins are 3.3 V only. Power the module from 3V3 and never feed a 5 V signal into a GPIO pin. Check the pin labels printed on your board.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 boards
In File → Preferences, add https://espressif.github.io/arduino-esp32/package_esp32_index.json to “Additional boards manager URLs”. Then open Tools → Board → Boards Manager, search for “esp32 by Espressif Systems” and click Install (official install guide).
3
Wire it up
Unplug the USB cable first. Join the three wires as in the table, matching the labels printed on the module. Use 3V3, not 5V.
4
Choose board and port
Tools → Board → ESP32 Arduino → ESP32 Dev Module, then Tools → Port.
5
Upload and listen
Paste the sketch, click Upload, and open the Serial Monitor at 115200 baud. If the upload fails, set Tools → Upload Speed → 115200 and upload again.
▸ Example 1: three-note beep
// Passive buzzer module on ESP32 DevKitC (esp32 core 3.x)
// Wiring: I/O -> GPIO18, VCC -> 3V3, GND -> GND
const int BUZZER_PIN = 18;       // I/O pin of the module  (you can change this)
const int IDLE_LEVEL = HIGH;     // pin level between beeps (you can change this)

void beep(int freq, int ms) {
  ledcAttach(BUZZER_PIN, freq, 8);   // set up PWM on the pin
  ledcWriteTone(BUZZER_PIN, freq);   // 50 % square wave at freq Hz
  delay(ms);                         // keep it going for ms milliseconds
  ledcDetach(BUZZER_PIN);            // release the pin
  pinMode(BUZZER_PIN, OUTPUT);
  digitalWrite(BUZZER_PIN, IDLE_LEVEL);
}

void setup() {
  Serial.begin(115200);
  Serial.println("OK - epartners.co.nz test");
  pinMode(BUZZER_PIN, OUTPUT);
  digitalWrite(BUZZER_PIN, IDLE_LEVEL);
}

void loop() {
  Serial.println("Beep");
  beep(262, 300);                // C4  (you can change this)
  beep(330, 300);                // E4
  beep(392, 300);                // G4
  delay(1000);                   // pause for one second
}

✓ Check: Serial Monitor (115200 baud) prints “OK - epartners.co.nz test” once, then “Beep” every second, and you hear three rising notes each time.

Troubleshooting

Board Problem Likely cause Fix
All No sound Steady power does not drive a passive buzzer, or wires on the wrong pins Check the wiring against the printed labels and make sure the sketch sends a tone, not a plain HIGH
All Buzzer hums, clicks or the module warms up while silent The rest level of the I/O pin keeps the transistor switched on Flip IDLE_LEVEL in the code (HIGH ↔ LOW) and upload again
All Sound is faint or high-pitched squeal only Frequency far from what the buzzer likes Try values between 1000 and 5000 Hz
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or USB chip Tools → Upload Speed → 115200, then upload again
ESP32 Stuck on “Connecting…” Board not in upload mode Hold the BOOT button until uploading starts
ESP32 Compile error: ledcAttach not declared Older esp32 core installed Update “esp32 by Espressif Systems” to version 3.x in Boards Manager

Try next: change the three frequencies to play your own tune, or trigger a beep from a push button.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • This is a passive buzzer: it only makes a tone when your board sends it a square wave (for example with tone()). Steady power gives no sound.
  • Power it from 3.3–5 V. On ESP32 and Raspberry Pi Pico boards use the 3.3 V pin, as their GPIO pins are not 5 V tolerant.
  • Pin order can differ between batches. Wire it by the labels printed on the board, not by position.

Video guide

Resources

Which one should I choose?

Product Key difference Best for
This product: Passive Buzzer Module (HS1024) Passive; 3-pin module with on-board transistor; 3.3–5 V Playing different tones and melodies from a board pin
Buzzer - Passive buzzer Module (KY-006) Passive; 2 pins; listed working voltage 1.5–15 V DC Simple tone output without a driver board
Buzzer - Active Buzzer Alarm Sensor Module (KY-012) Active (built-in oscillator); listed working voltage 3.5–5.5 V A single fixed beep from a plain on/off signal

FAQ

▸ Is this an active or a passive buzzer?

It is a passive buzzer. It needs a square-wave signal from your board to make a tone; a steady HIGH gives no sound. For a buzzer that beeps from a plain on/off signal, see the active buzzer module linked in the comparison table above.

▸ Can I use it with a 3.3 V board such as ESP32 or Raspberry Pi Pico?

Yes. The module works from 3.3–5 V. Power it from the 3.3 V pin on 3.3 V boards.

▸ How do I make different notes?

Change the frequency of the square wave. In Arduino code that is the second argument of tone(pin, frequency); on ESP32 use ledcWriteTone; on Raspberry Pi Pico with MicroPython use PWM.freq(). The Tutorial above has working examples for all three.

▸ Do I need a library?

No. tone() on Arduino, LEDC functions on ESP32 and machine.PWM on MicroPython are built in.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed