DJ Pi 2: receiving serial input

October 4, 2017

In the previous post we looked at how to use an Arduino to read an analogue control and transmit it to a Raspberry Pi over serial. Now it’s time to look at how to handle those values on the Pi. We’ll also look briefly at how the C++ application uses the JUCE framework and its multi-threaded approach.

You can look at the complete C++ code here (MainComponent.cpp will be of most interest). The structure of this code is roughly taken from the multi-threading example here.

Read more »

DJ Pi 1: analogue controls with Arduino

October 3, 2017

In this series of posts I’m going to document building a digital DJ effects box using a Raspberry Pi and Arduino. The inspiration for this project came from the combination of me having a crappy mixer with no built-in effects, a Pi and Arduino (both in need of a purpose) and a desire to learn more about audio programming and digital signal processing (DSP).

In terms of hardware I’ll be using the aforementioned Raspberry Pi 3 with this sound card to handle audio inputs and output and the Arduino Uno to handle the analogue control inputs. The Arduino side will be done in C, because it’s fun to program Arduinos in C, and the Pi app handling the actual audio processing will be in C++ because everyone seems to use it for audio DSP. I’m using the JUCE framework as an easy way in.

Read more »