KY-012 Active Buzzer Module

Description

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

KY-012 Specifications

The KY-012 Active Buzzer module consists of an active piezoelectric buzzer, it generates a sound of aproximately 2.5kHz when signal is high. 

Operating Voltage 3.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]
Dimensions18.5mm x 15mm [0.728in x 0.591in]

KY-012 Connection Diagram

Connect signal (S) to pin 8 on the Arduino and Ground (-) to GND. Be aware that some boards are wrongly labeled, try inverting the cables if you can't hear any sound when running the sketch.

KY-012Arduino
SPin 8
-GND

 

Arduino KY-012 Passive buzzer module connection diagramclick to enlarge

KY-012 Example Code

The following Arduino Sketch will continually turn the buzzer on and off generating a serie 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 Reply

Be the First to Comment!

avatar