Active Speaker Buzzer Module

£ 2.70

FREE DELIVERY

Here we have a simple little buzzer module.

Simply connect to ground and an output pin and you are making noise !

These are output devices that simply connect to an Arduino Digital I/O port. You can turn them ON or OFF from a Software Sketch.

  • Easy to use
  • Active speaker
  • Operating voltage 5V
  • Fixing bolt holes

Active Speaker Buzzer Module

This Buzzer module makes sound when activated by applying 5 volts. This unit is not a "piezo buzzer" which has to be switched on and off rapidly to make sound.

  • Buzzer Module
  • Arduino
  • Jumper Wire

Connect the GND, VCC, and Center Pin to Arduino Pin 16


int buzzer=16;//Connect the buzz positive Pin to Pin 16
void setup()
{
  pinMode(buzzer,OUTPUT);//Set Pin Mode as output
}
void loop()
{
  unsigned char i,j;
  while(1)
  {
    for(i=0;i<80;i++) //Sound effect 1
    {
      digitalWrite(buzzer,HIGH);//Make some sound
      delay(1);//Delay 1ms
      digitalWrite(buzzer,LOW);//Be quiet 
      delay(1);//Delay 1ms
    }
    for(i=0;i<100;i++) //Sound effect 2
    {
      digitalWrite(buzzer,HIGH);//Make some sound
      delay(2);//Delay 2ms
      digitalWrite(buzzer,LOW);//Be quiet
      delay(2);//Delay 2ms
    }
  }
}