BUZZER

TINKS021

  1. Buzzer is an audio signalling two terminal device.
  2. It is a transducer which can change electrical signals into sound.
Features:-
  1. Narrow operating voltage: 1~16 V.
  2. Higher current consumption: 30~100 mA.
  3. Lower rated frequency.
  4. Smaller footprint.
  5. Lower sound pressure level.
Applications:-
  1. Used in alarm.
  2. Timers.
  3. Game shows.
  4. Sporting events.

    

int buzzer=11;

void setup() {

// put your setup code here, to run once:

pinMode(buzzer,OUTPUT);

Serial.begin(9600);

}

void loop() {

// put your main code here, to run repeatedly:

tone(buzzer, 1000);// Send 1KHz sound signal

Serial.println("sound");

delay(1000);

noTone(buzzer);

delay(1000);

Serial.println("no sound");

}