Description
Arduino Passive Piezoelectric Buzzer Module Keyes KY-006, it can produce a range of sound tones depending on the input frequency.
Specifications
The KY-006 Buzzer Module consists of a passive piezoelectric buzzer, it can generate tones between 1.5 to 2.5 kHz by switching it on and off at different frequencies either using delays or PWM.
Operating Voltage | 1.5 ~ 15V DC |
Tone Generation Range | 1.5 ~ 2.5kHz |
Dimensions | 18.5mm x 15mm [0.728in x 0.591in] |
KY-006 Connection Diagram
Connect signal (S) to pin 8 on the Arduino and ground (-) to GND. The middle pin is not used.

KY-006 Example Code
The following Arduino sketch will generate two different tones by turning on and off the KY-006 buzzer at different frequencies using a delay.
int buzzer = 8; // set the buzzer control digital IO pin
void setup() {
pinMode(buzzer, OUTPUT); // set pin 8 as output
}
void loop() {
for (int i = 0; i < 80; i++) { // make a sound
digitalWrite(buzzer, HIGH); // send high signal to buzzer
delay(1); // delay 1ms
digitalWrite(buzzer, LOW); // send low signal to buzzer
delay(1);
}
delay(50);
for (int j = 0; j < 100; j++) { //make another sound
digitalWrite(buzzer, HIGH);
delay(2); // delay 2ms
digitalWrite(buzzer, LOW);
delay(2);
}
delay(100);
}
KY-006 Related Products
Hot Deals from AliExpress
Correct a error in the 15th row. There must be j++ instead of i++
Hi, thanks for the heads up, it’s fixed now.
buzz buzz