Objective:
To activate the Buzzer in order to make sound for alert
Components Required
- Arduino Uno
- Piezo Electric Buzzer
Connection Diagram
Program
int Buzzpin=13;
void setup()
{
pinMode(Buzzpin, OUTPUT);
}
void loop()
{
digitalWrite(Buzzpin, HIGH);
delay(1000);
digitalWrite(Buzzpin, LOW);
delay(1000);
}
Working
The Program Activates the Buzzer to ON by supplying HIGH voltage to it and making it OFF by supplying LOW voltage to it. This process repeatedly happens to make the Buzzer alternately making the sound
Output
The Buzzer alternately making the sound