Stereo buzzers

cable

Stereo buzzers

cable

cable Wire stereo buzzers

A wiring diagram for two buzzers attached to the Raspberry Pi Pico. One is attached to GP5 and GND and the other is attached to GP10 and GND.
1. Connect the short (negative) leg to GND.
2. Connect the long (positive) leg to a GP pin.

play_circle Play two buzzers in stereo


play_circle stop_circle
# Import the Speaker component
from picozero import Speaker

# Set up the buzzer with correct pin number
speaker_1 = Speaker(5)
speaker_2 = Speaker(10)

# Play two buzzers in stereo
speaker_1.play('c4', wait=False) 
speaker_2.play('a4', wait=False)

bug_report My buzzer doesn't play a sound

  • Check your connections.
  • Check the pin numbers in your code.