Active Buzzer Module for Arduino AVR PIC


Active Buzzer Module for Arduino AVR PIC

Product no.: KY-012

Currently unavailable

Notify on availability
2.98
Price incl. VAT, plus delivery

KY-012 Active Buzzer Module for Arduino AVR PIC

Working voltage:3.5-5.5V 
Working current:<25mA 
 
Arduino Sketch Below:
 
int buzzer=11;
void setup()
{
pinMode(buzzer,OUTPUT);
}
void loop()
{
unsigned char i,j;
while(1)
{
for(i=0;i<80;i++)//Output sound of one frequency
{
digitalWrite(buzzer,HIGH);//make a sound
delay(1);//delay 1ms
digitalWrite(buzzer,LOW);//silient
delay(1);//delay 1ms
}
for(i=0;i<500;i++)//output sound of another frequency
{
digitalWrite(buzzer,HIGH);//make a sound
delay(2);//delay 2ms
digitalWrite(buzzer,LOW);//silient
delay(2);//delay 2ms
}
}
}

 

Customers who bought this product also bought

* Prices incl. VAT, plus delivery

Browse these categories as well: Arduino, PICAXE & PIC, Arduino Boards & Kits, Educational, PICAXE & PIC, Modules, Arduino & Genuino Sensors & Modules, Raspberry Sensors & Modules