How to change the volume on the Pi Cap

change volume on Pi Cap

The Pi Cap is a great way to add sound to your Pi Zero projects or to create interactive sound installations with your Raspberry Pi. If you want to change the volume, you can do this easily with the help of alsamixer. In this tutorial, we are going to show you how.

We use SSH and the terminal to do this. If you don’t want to use SSH and the terminal, you can also use a monitor, keyboard and mouse connected to your Raspberry Pi to change the volume.

Step 1 Setting up your Pi Cap with a Pi

If you haven’t set up your Pi Cap then make sure to complete one of our set up tutorials first:

Setting up your Pi Cap on the Raspberry Pi 1, 2 or 3

Setting up your Pi Cap on the Raspberry Pi Zero

Step 2 Use alsamixer

Once you’ve SSH’d into your Pi, type “alsamixer”. This will bring up an interface within the terminal which will allow you to set the volume of the Raspberry Pi. Simply press the up and down arrow keys to either increase or decrease the volume. When you are done, press ESC.

Step 3 Run the code

Now enter “PiCapExamples/Python/picap-touch-mp3-py/run” to run the touch-mp3 code. If you touch the electrodes, you can play the tracks with the new adjusted volume!

Here, we tested our changes with the Python code, but the same method will work for the C++ or Node.js examples too.

Let us know if you have any questions. You can send us an email at info@bareconductive or contact us via Instagram or Twitter.

Have you seen these related resources?