To control Buzzer using Raspberry Pi Pico
Required Components
- Buzzer module _ 1 no
- Raspberry Pi Pico _ 1 no
- Connecting wires _ 1 set
Circuit
Steps
- Make sure the components are working properly.
- Connect the Raspberry Pi Pico board GP15th pin to the Buzzer.
- Connect Buzzer board GND to GND of Raspberry Pi Pico Board.
- Check the Electrical Circuit.
- Check the Arduino program.
- Run the Arduino program.
Arduino Program
const int buzzer = 15;
void setup( )
{
pinMode(buzzer, OUTPUT);
}
void loop()
{
tone(buzzer, 1000);
delay(1000);
noTone(buzzer);
delay(1000);
}