ESP32 KY-006 Passive Buzzer Module

KY-006 Passive Buzzer Module image

KY-006

Protocol: PWM

Overview

The KY-006 is a passive piezoelectric buzzer module that produces sound when driven by a PWM signal. It is ideal for generating various tones and melodies in electronic projects.

About KY-006 Passive Buzzer Module

The KY-006 is a piezoelectric passive buzzer module capable of generating tones between 1.5 kHz and 2.5 kHz when driven by a PWM signal. Unlike active buzzers, it requires an external signal, allowing for custom tones and melodies.

Key Features

  • Customizable Sound Output – Produces tones and melodies via PWM control.
  • Frequency Range – Operates between 1.5 kHz and 2.5 kHz.
  • Operating Voltage – Compatible with 3.3V to 5V, making it ideal for ESP32, Arduino, and other microcontrollers.
  • Compact Design – Measures 18.5mm × 15mm, perfect for audio alerts in embedded projects.

With its flexibility and easy integration, the KY-006 is an excellent choice for sound-based notifications, alarms, and interactive projects. 🚀

Where to Buy

KY-006 Passive Buzzer Module

Starting from

1$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 3.3V to 5V
Sound Frequency Range 1.5 kHz to 2.5 kHz
Dimensions 18.5 mm x 15 mm
Type Passive Piezoelectric Buzzer
Control Method PWM Signal
Weight 2g

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin (S): Signal pin, connects to the microcontroller's PWM-capable GPIO pin.
  • Pin (+): Connects to VCC (3.3V or 5V).
  • Pin (-): Ground pin, connects to the ground of the circuit.

Wiring with ESP32

  • KY-006 Pin (S): Connect to an ESP32 PWM-capable GPIO pin (e.g., GPIO18).
  • KY-006 Pin (+): Connect to ESP32 3.3V or 5V.
  • KY-006 Pin (-): Connect to ESP32 GND.

Troubleshooting Guide

Common Issues

🔇 No Sound from Buzzer

⚠️ Distorted or Unintended Sounds

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-006 Passive Buzzer Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.