How to create a DJ mixer with the Pi Cap

Discover how to create a DJ mixer with the Pi Cap

Bare Conductive electric paint DJ mixer

The Pi Cap has polyphonic playback, which means you can play multiple tracks together at the same time, without needing to stop a playing track first. This allows you to mix songs and tracks and create a DJ mixer with the Pi Cap. For this tutorial, we SSH into the Pi to set up the power switch, but 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.

Step 1 Set-up the Pi Cap

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 Choose and change the tracks

The Pi Cap has 12 electrodes, which means you can mix up to 12 different tracks! These can be anything from a background track to voice overlays or mixed instruments. We used three instruments from Garageband in our demo.

If you haven’t changed the tracks on the Pi Cap before, have a look at our changing tracks tutorial. For this tutorial, we are using the Python example code, but you can also use any of the other example codes.

change tracks on the pi cap

Step 3 Touch the sensors to mix the tunes

Once you have changed the tracks, attach some speakers and run the code by entering “PiCapExamples/Python/picap-touch-mp3-py/run”. The code should now use the new tracks that we have just changed. Try mixing the tracks by touching the corresponding electrodes. Note that timing is key, so it might be a bit tricky at first, but keep trying and get creative!

change volume on Pi Cap

Step 4 Take it further

You can take the DJ mixer even further by using Electric Paint and changing the electrodes to proximity sensors. For example, we have painted three circles with Electric Paint, cold soldered our Pi Cap to it and triggered the tracks by approaching the circles with a hand. If you want to create something similar, have a look at our cold soldering tutorial and how to change the sensors to proximity.

We also suggest looking into launching the code at start-up and adding a power switch to the Pi.

We’d love to see your creations, send us your images or videos to or via Instagram or Twitter.

Bare Conductive electric paint DJ mixer

Have you seen these related resources?