2xTRS inputs for expression Pedals (almost like Jesse demonstrated in the mod-blog), 2 additional pots doing exactly the same thing.
I also had a display lying around, right now it doesn’t do anything but it’s in there - waiting for code!
This is my first time soldering and drilling/filing aluminum ever, so please be forgiving
we’ll see what’s next. maybe i’ll include a port for an accelerometer but i guess i have to sacrifice 1 or 2 of the analog ports for that (maybe switchable).
But first, it’s going to be painted (or foiled) and i still need some knobs for the potis.
did some more testing today - finally with cc itself.
when connecting the device via cc i get the message “new cc device connected”, pomptly followed by “device disconnected”.
What could be wrong?
CC code is (almost) the one provided by jesse and ricardo.
edit: now the code in github says “cc.begin()” which was “cc.init()” 10 days ago. can that be the problem? when i change it i get “class controlchain has no member named ‘begin’”. So, new library?
Is there any function blocking or delaying the loop?
No, that is not the problem. I’ve renamed to make it in agreement with Arduino’s guideline. The cc.init() is still available though, and it does exactly the same thing as cc.begin().
No delays.
even deactivated everything i added to the code.
I did not use any ports that are used by the shield itself.
Every actuator works (testing via serial monitor).
(Ports used: A0-3, D3-6, D11, D12, and 5V&gnd, obviously)
MOD v 1.4.2.472
Arduino Lib v0.3.1
had an old IDE (1.6) - downloading current atm
Test with amountofports 1 also failed
I’ll redo it all and try again. hope it’s not a wireing issue…
edit: current lib&IDE, still the same. also tried different cable to connect. same problem when “in the chain” behind footswitch or connected directly to the mod.
Ricardo found out, i had a buggy TimerOne library installed. Don’t download Version r11 and install it as a *.zip file in the IDE, instead use the Library Manager and search for TimerOne there.
I wanted to use my controlchain device as my secondary cc-device - meaning MOD–>Footswitch–>MyDevice.
2 Issues (one small, one big):
when changing values with MyDevice MOD CPU usage spikes by up to 8-9%. Doesn’t seem much but when you’re already at CPU limit it could generate problems in the future. Can this be optimized?
Now here’s the big one. When i have both devices connected, after manipulating the values through MyDevice for some seconds, the Footswitch is disconnected. It does not matter which device is first in the chain and also happens with low base CPU load.
Actually, it was Jan Janssen who found the bug. Not bad for his first day, right?
The control chain is supposed to consume some CPU when there is intense exchange of data. Do you know how much is the % variation when you are actuating your device?
Good catch. I just fixed it. You’ll need to update your ControlChain arduino library and the footswitch firmware.
@ricardocrudo I seem to be experiencing the same problem: my footswitch is v0.2.2, and my arduino shield is using cc version 0.5.1. My sketch is just running the expression pedal example.