Buzzer Tones in Python

Intermediate

Control the Beaver Board buzzer from Python. Play individual tones, then store a melody as a list of (frequency, duration) pairs and play it with a for loop.

15 min6 steps
BuzzerSoundMelodyListsIntermediate
0 of 6 steps

Step 1 of 6

Connect your board

Power on your Beaver Board — the OLED will show a PIN code. Click Connect in the toolbar, choose Connect via Bluetooth, and select your board. If it's your first time, enter the PIN shown on the screen.

The buzzer is on pin GP22 — no wiring needed.