How to change the volume on the Pi Cap

How to change the volume on the Pi Cap

Tune the volume of your Pi Cap installation with a simple change in code

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.

We love it when you share your projects! Post your project on Instagram, YouTube, or Twitter, and make sure to tag @bareconductive or use #bareconductive. You can also send your videos and photos to info@bareconductive.com so we can post them on our site for the world to see.

You will need:

  • 1 x Touch Board
  • 1 x USB Micro B to USB A or USB C (depending on your computer's USB port type)
  • 1 x Computer running Mac OS, Windows, or Linux
  • 1 x Headphones or speakers

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.