BuzzBox - powered by PiicoDev

The BuzzBox :loud_sound: :control_knobs:

Do you ever wanna pump up some jams but you dont know how to play a MIDI file? Fear not with the new PiicoDev Buzzer modules and a few other bits and bobs you can dance your heart out!
With more than one buzzer you can play chords and depending on the size of the output file, some pretty complex songs!

Whatcha need:

Putting it together

Here’s where PiicoDev shines, it’s super easy to get everything together.

  1. Move each of the DIP switches around into unique addresses - with the 2 switches 4 addresses are possible. Even more with the solder pads on the back (2 more states thats 16 addresses!)

  2. Plug in all of the modules using the cables then into the Expansion Board outside of the case helps my daisy chain goes:
    Expansion board
    50mm cable
    50mm cable
    100mm cable(underneath the Pico)
    50mm cable
    Then throw the Pico(the green one that tastes like Raspberries(PSA: dont lick any Raspberry Pi boards please)) into the expansion board.
    Whack all of the electronics into the case/platform of your choice

  1. Plug the USB cable in, lets flash some code!
    First of all lets make 2 folders, one for the Pico and one for the computer code.
    Head over to the Buzzer guide for the RPi Pico, run through the tutorial pop the code into the Pico directory and make sure all of the Buzzer modules work - just change the addr argument buzz = PiicoDev_Buzzer(volume=2, addr=<YOUR ADDRESS HERE>)
    Keep the PiicoDev code handy, we’ll need it later!
If you're note sure what the addresses are...

…run the following in the REPL

from machine import I2C
i2c = I2C(0)

Then power cycle the Pico - just unplug and plug it back in.

  1. Head over to my Git to download the code for the BuzzBox, it leans on the Python-Midi-Analysis Repo that Cornerback24 made.
    BuzzBox’s Git Repo
    Unfortunately this is too large to run on the Pico, but a Pi Single Board Computer (Pi 4 runs well) can give this program the grunt it needs.
    git zip

  2. To export a MIDI, download a .mid file, and put it in the Midis directory, load up the file and change the file_to_convert to the file that you wanna play, run the script, then grab the CSV along with the and (you can overwrite the file from the tutorial) from the Midi’s folder and move it to the same directory that you have the Pico files in.

  3. Upload all of the files to the Pico, just change the argument to the loadMusic function

    . Click play in Thonny and the Buzzers should start up!!

Feel free to ask questions, Im more than happy to accept feature requests or if you need a hand with anything :smiley: Liam


This is pretty cute. Nice work :slight_smile:


Nice print. Good job. :slight_smile:


Hey Oliver and G,

Thanks for the kind words!!


Hey Liam,

Nice project, good to see PiicoDev in use!



Hey Liam,

Nice work! Now I’m wondering whether you can use the output from the atmospheric or distance sensor/s in order to make an extremely basic miniature theremin (or something to a similar effect that is strapped to your wrist)


V cool :-))