KY-012 Active Buzzer Module

The KY-012 Active Buzzer module produces a single-tone sound when it receives a high signal. To produce different tones, please use the KY-006 Passive Buzzer.

Compatible with popular microcontrolers like Arduino, Raspberry Pi and ESP32.

KY-012 Fritzing custom part image
KY-012 arduino passive buzzer module

KY-012 Specifications

This module consists of an active piezoelectric buzzer and 3 male header pins. It generates a sound of aproximately 2.5kHz when the signal is high.

Operating Voltage3.5V ~ 5.5V
Maximum Current30mA / 5VDC
Resonance Frequency2500Hz ± 300Hz 
Minimum Sound Output85Db @ 10cm
Working Temperature-20°C ~ 70°C [-4°F ~ 158°F] 
Storage Temperature-30°C ~ 105°C [-22°F ~ 221°F]
Board Dimensions18.5mm x 15mm [0.728in x 0.591in]

Connection Diagram

Connect signal (S) to pin 8 on the Arduino and Ground (-) to GND. The middle pin is not used.

Some boards migh have different pin arrangement, please check your connections before using this module.

SPin 8

KY-012 Arduino Code

The following Arduino Sketch will continually turn the buzzer on and off generating a series of short high-pitched beeps.

int buzzerPin = 8;

void setup ()
  pinMode (buzzerPin, OUTPUT);

void loop ()
  digitalWrite (buzzerPin, HIGH);
  delay (500);
  digitalWrite (buzzerPin, LOW);
  delay (500);


Leave a Comment