Project 6 Active Buzzer Sound Production
1.Introduction
Buzzers are divided into active and passive buzzers. Active buzzer can produce sound normally when connecting directly to power supply, usually with stable frequency.
In this project, with active buzzer, we use graphical programming to make buzzer ring for 1s and stop for 1s, circulating like this.
2.Materials Required
KEYESTUDIO UNO Control Board *1
V5 Sensor Shield*1
Active Buzzer*1
Female to Female Dupont Line*3
3.Connection Diagram


4.Sample Code
void setup()
{
pinMode( 8 , OUTPUT);
}
void loop()
{
digitalWrite( 8 , HIGH );
delay( 1000 );
digitalWrite( 8 , LOW );
delay( 1000 );
}
5.Result
Then buzzer rings for 1 second and stop for 1 second, circulating like this.