edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
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 provided500,286
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

Comments