Akshay Joseph
Published © GPL3+

Interface Buzzer With Arduino Uno

This article is discussing about using a Piezoelectric buzzer with Arduino Uno with and without tone() function.

BeginnerProtip45,022
Interface Buzzer With Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Piezoelectric Buzzer
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Interface buzzer with tone()

Code

Interfacing buzzer with tone()

Arduino
//Buzzer with tone().
//sketch created by Akshay Joseph
void setup() {
pinMode(11,OUTPUT);
}

void loop() {
tone(11,200);
delay(500);
noTone(11);
 delay(500);
}

Interface buzzer without tone()

Arduino
//Buzzer without tone()
//Sketch created by Akshay Joseph

void setup() {
pinMode(11,OUTPUT);
}

void loop() {
digitalWrite(11,HIGH);
delay(500);
digitalWrite(11,LOW);
 delay(500);
}

Credits

Akshay Joseph

Akshay Joseph

25 projects • 156 followers
B.Sc. Electronics Student at Govt. College Tanur

Comments