Hi there once again fellow MOD-monsters! As some of you might know, we are currently in the beta testing phase
for our new Control Chain footswitch extension
. At the same time, we have also released the brand new Arduino Control Chain shield
, allowing you to build your own awesome controllers.
If you’re thinking, hey Jesse, what is all that Control Chain talk about?
*Control Chain is an open standard, including hardware, communication protocol, cables and connectors, developed to connect external controllers to the MOD. For example, footswitch extensions, expression pedals and so on.
Comparing to MIDI, Control Chain is way more powerful. For example, instead of using hard-coded values as MIDI does, Control Chain has what is called device descriptor and its assignment (or mapping) message contains the full information about the parameter being assigned, such as parameter name, absolute value, range and any other data. Having all that information on the device side allows developers to create powerful peripherals that can, for example, show the absolute parameter value on a display, use different LED colors to indicate a specific state, etc. Pretty neat, right?
Until now, you could find two examples, for a simple momentary button and potentiometer, on our GitHub page
, but today we will add a new example: we will build a Control Chain device with expression pedal inputs.
What do I need?
- One Arduino Uno or Due
- One Arduino Control Chain shield
- One stereo (TRS) jack for every expression pedal input that you want (Max: 4 (Uno), 8(Due))
- A soldering iron, some wire and some soldering tin
- (Optional) Something to put your final build in
Because the Arduino has very high impedance analog inputs, there is no need for any current limiting resistor. We can simply hook up the TRS jacks as follows: (Tip to 5V, ring to signal and sleeve to ground)*
(*) not all expression pedals are made equal, some manufacturers use a different mapping than the one described above.
Another common mapping is: Tip to signal, ring to 5V, sleeve to ground. (For example on the Roland EV-5)
The Arduino code
is quite simple, it reads the ADC values using the analogRead() function, and stores it into a variable. The Control Chain library takes care of the rest.
The code is written in such a way that you can change the define at the top of the code to the amount of ports that you want, and not have to rewrite any code. Do you want 3 expression pedal ports?
#define amountOfPorts 3
The maximum amount of ports for an Arduino Uno is 4. The Arduino Due can provide a maximum of 8 ports.
- Solder wires to your TRS jack inputs
- Twist the wires together
- Solder the sleeves to the ground strip on the CC shield
- Solder the tips to the 5v strip on the CC shield
- Solder the rings to the corresponding analog inputs on the CC shield
Attach the CC shield to the Arduino, now your device should look a little like this:
- Follow the instructions on our Github Page and install the dependencies
- Change the define in the code to the amount of ports connected
- Upload the code to your Arduino
- Time for a test drive!
- Connect the MOD Duo to the “main” Control Chain port on your new device
- Connect your expression pedals and try them out with your MOD Duo!
- (Optional) Create an enclosure for (semi-)permanent installation, I used an old smartphone-box that I had laying around somewhere :)
The end result
You just built your own Control Chain device, and we hope with many more to come. We are looking forward to seeing what all you wonderful people come up with! Don’t hesitate to come and talk to us on the forums if you have any questions about Control Chain devices, the Arduino shield or our favourite musicians.
Talk to you later!
P.S. Vulfpeck is great