Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
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,231
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

SURYATEJA

18 projects • 59 followers

Comments