Sooo... ControlChain completely abandoned?

Hi there! It’s been a while since I was herelast time, and judging by an awful lot of activity in this category I take it ControlChain is about where I left it two-three years ago?
The Arduino library is still buggy? The host side of it is also still glitching?
Pardon my scepticism and a bit of sarcasm, but it’s a pity that such a good idea has been just left to die…

I was actually hoping to have a crack at this as I have a bunch if parts lying around (arduino’s enclosures, footswitches, etc)

My idea was a small MXR style enclosure with one OLED display, one encoder, one footswitch. Then make as many as I need over time to build a physical pedalboard.

But it does look it’s not getting much attention.

What is the avantage of the Control Chain on the midi protocole ?

1 Like

As i understand it, two way comms. I.e the controller “knows” and can display what it is controlling. (Delay time: 300ms in a display type stuff) correct/educate me if i’m wrong.

Things like higher standard resolution (iirc we only have CC and not 14-bit midi or nrpn mapping and such?).

And you you can send data back to the device as additional HMI. Also the devices are (supposedly very easy to chain up.

I still have 3 Arduino shields, but haven’t taken the time to prototype anything with them. I always got the idea that 3d parties would have the opportunity to create control chain devices, but I think the market was always too small to go beyond individual prototypes.

Some attention to the arduino library - and maybe now that the firmware has opened up more: host side improvements - would certainly be nice. It is one of the unique and potentially compelling features of the MOD ecosystem.

2 Likes

Just for fun I decided to have a go at a rp2040 pro micro. Nice and cheap with good specs. Needs a bit of work, but useful if successful. :+1:t3:

if all else fails it can do midi over usb

1 Like

Following on from Rom’s question, I wonder if development effort would go further on the MIDI side than on reviving Control Chain. Most of the advantages listed here are gaps in MOD’s MIDI support, not limits of MIDI:

  • 14-bit CC and NRPN exist in MIDI, MOD just doesn’t map them yet.
  • Getting values back to the controller only needs MOD to echo CC when a parameter changes.
  • Showing names and values on the controller is what MIDI-CI Property Exchange does. The Korg Keystage ships with it today, over USB or DIN.

The payoff is reach: it would work with off-the-shelf controllers and any DIY board that already speaks USB MIDI, rather than a shield market that’s always been small. Control Chain’s cable is still nicer physically (power, chaining, long runs), and the assignment data the host already sends it (labels, ranges, units, scale points) is exactly what a Property Exchange service would need, so that work wouldn’t be wasted.

If MOD supported all this in midi, then Control Chain would still have the advantage of power and data over one cable but Midi has the advantage of being more universal

2 Likes

I think this is kind of my plan with the RP2040. Revive Control Chain in a more modern way, but at the same time add resilience by including usb Midi as a fallback/compatibility with other equipment.
The controller would be set to operate as either of those two.

I’ll start a thread once the parts arrive. :slight_smile:

1 Like

I think the main problem is that the Arduino control chain lib on Github is hopelessly out of date, it needs updating to use the most recent “real” control chain stuff.

I “think” the most recent is 0.7: cc-master/lib/src at master · mod-audio/cc-master · GitHub

The Arduino stuff is using 0.5, so someones first job is to convert it to use 0.7 and set it up as the new type of Arduino lib.

Or just ignore Arduino and do it on a proper board using that link above. Some little STM or NXP board maybe?

Edit: (sorry missed the RP2040 post!)

1 Like

The first two of these (and much more) are available in this build: Starless 18 with multiple controllers (use V1 version)

4 Likes

Actually already ported it to the RP2040 and fully tested with virtual boxes. (Control link up to 8 of them)

The pro micro 2040 can easily do two rotary encoders, two footswitches and two oled displays (that’s the build plan for a modular minimal foot controller for me)

The larger RP2040 doubles that amount easily on the available pins.

I spoke too soon :slight_smile:

Is it on GitHub?

Not yet, but i’ll see if i can get it there tonight. It’s just not verified 100% in hardware yet. Just ran virtual in my terminal across a couple of windows.

The idea is to have it fully documented, including a build. Will probably add an expression pedal input as well?

2 Likes

Nice, do you use the PIO for the RS485?

No, not in the current plan. The bus runs on the RP2040’s hardware UART0 (pins 0/1), with one plain GPIO (pin 2) switching the transceiver’s DE.

Why hardware is probably enough:

  • The bus is simple serial, 8N1, at 115200 baud or 1 Mbit/s (still to confirm on the Duo). The hardware UART handles both easily.
  • The only awkward part might be DE timing. The RP2040’s UART has no built-in RS-485 mode, so the firmware turns DE on, sends, waits for the UART’s “busy” flag to clear, then turns DE off. That releases the bus within a few microseconds, and each box’s time slot is 1 ms wide, so there should be plenty of margin.
1 Like

Good stuff, I looked at all this a while ago. I have the foot switch but wanted a device to do variable stuff for testing the stuff I have been doing in mod-host. After looking at it for a bit I decided just to build an emulator on linux and use that for testing :slight_smile:

I’m glad someone is taking this to the hardware again.

1 Like

Here’s where I got to so far:

Once everything is in I’ll start a thread detailing the build. Easy enough to expand to X amount of encoders/footswitches.

1 Like

Nice one, I will give that emulator a go today…

1 Like

I would settle for either, but the way MIDI is implemented on Dwarf is very limited. I have suggested implementing bi-directional MIDI with NRPN and all that years ago, but to no avail. There was even a bloke who had it implemented, but his branch was never merged into the master of Dwarf’s firmware. So…

Do you know where that was discussed and who it was? It could be worth letting @gianfranco know about it. He might be able to look into merging it now