The KY-012 Active Buzzer Module is a simple sound-generation module designed for Arduino, Raspberry Pi, ESP32, and other microcontroller projects.
Unlike a passive buzzer that requires a PWM or audio-frequency signal to generate a tone, the KY-012 contains an active buzzer with an internal oscillator. Applying the appropriate HIGH signal activates the buzzer and produces a fixed tone of approximately 2.5kHz.
This makes the module ideal for alarms, warning indicators, timers, notifications, and simple audible feedback in electronic projects.
Technical Specifications
Module: KY-012
Buzzer Type: Active Buzzer
Operating Voltage: 3.5–5.5V DC
Typical Supply Voltage: 5V DC
Maximum Current: Approx. 30mA at 5V DC
Resonant Frequency: Approx. 2.5kHz ±300Hz
Minimum Sound Output: Approx. 85dB at 10cm
Control Type: Digital HIGH / LOW
Built-In Oscillator: Yes
Working Temperature: -20°C to +70°C
Storage Temperature: -30°C to +105°C
Board Size: Approx. 18.5 × 15mm
Compatible Controllers: Arduino, ESP32, Raspberry Pi and other digital-control platforms
Active Buzzer Operation
The KY-012 is an active buzzer, meaning the oscillation circuit required to produce sound is already built into the buzzer.
When the module receives the appropriate HIGH control signal, it generates a continuous tone automatically.
When the signal is LOW, the buzzer stops.
This makes it easier to use than a passive buzzer when only a simple fixed alarm or notification tone is required.
Connection
The KY-012 module typically uses connections marked:
S – Signal / Control Input + – Positive Supply − – Ground
For a typical Arduino application, connect the signal pin (S) to a digital GPIO such as D8, connect the positive supply as required by the specific module version, and connect GND (−) to the Arduino ground.
Pin arrangement can vary between KY-012 board manufacturers, so always check the S, + and − markings printed on the actual PCB before applying power.
Arduino Example Connection
KY-012 S → Arduino Digital Pin 8 KY-012 + → 5V, when present/required on the module KY-012 − → Arduino GND
Digital Pin 8 is only an example. Another suitable GPIO can be used by changing the corresponding pin assignment in the program.
ESP32 & Raspberry Pi Note
The module can also be controlled using ESP32 and Raspberry Pi GPIO, but the electrical characteristics of the specific KY-012 board should be considered.
Because the buzzer can draw significantly more current than should be supplied directly by some GPIO pins, a transistor or MOSFET driver is recommended when the module's control/input configuration causes the GPIO to supply the buzzer current directly.
Applications
Ideal for alarm systems, warning indicators, timers, Arduino projects, Raspberry Pi projects, ESP32 projects, robotics, security systems, sensor alarms, equipment-status indicators, electronic games, DIY electronics, and audible notification systems.
Important Note
The KY-012 produces a fixed-frequency tone and is primarily intended for simple ON/OFF sound indication.
If an application requires different musical notes, melodies, or direct frequency control, a passive buzzer module is generally a better choice.
KY-series modules from different manufacturers can also have variations in their circuit and pin arrangement. Always verify the markings on the actual module before connecting it.
Package Includes
1 × KY-012 Active Buzzer Module
Active Buzzer Module
Default Title
Robot Pi Shop
Pickup currently unavailable
Ground Floor Shop, Sayde Street, Fanar Matn 1202 Fanar Lebanon