SURYATEJA
Published © Apache-2.0

USE a BUZZER MODULE (PIEZO SPEAKER) USING ARDUINO UNO

THIS PROJECT IS BASED on THE ALARMS AND BEEPS USING BUZZERS FOR SECURITY

BeginnerFull instructions provided499,394
USE a BUZZER MODULE (PIEZO SPEAKER) USING ARDUINO UNO

Things used in this project

Story

Read more

Custom parts and enclosures

CONNECTIONS

Schematics

CONNECTIONS

Code

BUZZER AND ITS USES

Arduino
const int buzzer = 9; //buzzer to arduino pin 9


void setup(){
 
  pinMode(buzzer, OUTPUT); // Set buzzer - pin 9 as an output

}

void loop(){
 
  tone(buzzer, 1000); // Send 1KHz sound signal...
  delay(1000);        // ...for 1 sec
  noTone(buzzer);     // Stop sound...
  delay(1000);        // ...for 1sec
  
}

Credits

SURYATEJA
18 projects • 59 followers
Contact

Comments

Please log in or sign up to comment.