Introduction: Raspberry Pi Soundboard

The purpose of this project is to create a soundboard with a Raspberry Pi, for any sounds. I personally created it for the purpose of Dungeons and Dragons soundboard ambiance. However, you can use this for anything is you customize it


For this project you will need:

Step 1: OS and Installation Time

So, First take your Micro SD card, You need to install some version of Linux. I used Rapbian because it's specifically designed for the Raspberry Pi. Here's the link to get a Raspbian image. Now you need some tool to install it onto the Micro SD card. I used Etcher. It's a cross system tool designed for this. Use this link to download and install it.

Once you've installed Raspbian on the Micro SD card, plug it into the Raspberry Pi's Micro SD card slot, and power it up. It'll say first time setup, so make sure not to power it off while setting up. Once it's up and running, you'll need to make sure you have a few things installed. Python 3, pip3, VLC Media Player, and libvlc. Open up a terminal and run this command.

sudo apt-get install python3 python3-pip vlc libvlc-dev youtube-dl

Now, here's how to verify some of it's installed.


>python3 --version


>pip3 freeze

VLC and libvlc

>vlc --version

Now, pip3 is a Python 3 Package manager. You can install python libraries with it. There are a few packages you need to install with pip3. Run these commands.

>pip install pafy

>pip install readchar

>pip install python-vlc

>pip install youtube-dl

When you type pip3 freeze, you'll find them there listed there.

Step 2: Downloading and Running

Now that you've installed everything necessary to run the code, here's where you download the code.

On the right hand side, you'll see a download button. Download the code, into a folder you want. Open the folder where you downloaded the files in the terminal. Once you're there, read the ReadMe,txt for more information.

To run the Application, you run this command

> python3

If there are errors at startup. check your last step to make sure it works correctly. Once you've installed and run the program, you're all set! If there are errors while running, be sure to add it as an issue on GitHub and I will make sure it's resolved and fixed

Key Inputs:

  • 0-9: Starts playing the respective sound in the preset you've selected
  • + or -: Pause and Play
  • *: Change preset. By default it'll be the the oldest saved preset. When you press the button, it'll list all of the presets present in the main directory.

Step 3: Customization and Afterword

Now that you've got the code running, you're welcome to create your own preset. Here's how to do it.

You'll need 10 links, on 10 separate lines of the preset file. Each line shouldn't contain any spaces on either side of the link. YouTube links work as well. Make sure there's an empty line at the end of the file. The program will let you know if it's acceptable or not.

Thanks for checking out this Instructable! If you find any bugs in the code, let me know on the GitHub Project page.