Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Multiple faderbanks on the same I2C bus #16
Is it technically possible to have multiple faderbanks on the same I2C bus ? I'm wondering if it has already been tested.
Out of curiosity I tried to add an offset here but of course, it doesn't work :-) And I realize that teletype/src/ops/fader.c would probably need a modification, too.
I don't think so. Disclaimer: I am not the I2C expert.
Basically, in non-master mode - the default for Teletype - each device needs an address, and Teletype only knows one 16n address (for the device
It might be more possible in MASTER mode, because it's multiple devices sending to endpoints, but even then, code modification would be required - setting custom addresses, possibly changing the fader data sent over I2C.
So: for now, I'm paging Brendon (when he has time), but my gut says not without significant work. I also think that work would be largely user-unfriendly for an edge case.
You could have a one in normal mode and one in master mode, i think (but haven't tried it). Things get complicated with the Teletype as it isn't a fan of multiple masters at the moment. So, until that gets resolved (and scanner_darkly has a lead on that), you wouldn't have a stable multi-master configuration.
If you want to have two that you READ from, we could enhance the firmware to support another set of addresses. It would work the same way that it was coded for the TXi. Basically, the Teletype knows that each device has N inputs and for queries outside of that index, it advances in the address space one and normalizes to the appropriate input on the device. For example, TI.PRM 5 = TI address #2; knob 1.
That all means adding more sequential addresses for the 16n and updating the TT code to know about multiple 16n. At the bare minimum, the 16n firmware would need to be updated and compiled with the new address(es). It also could be modified to increment the ports that it sends to in Master mode - which would make sense.
I decided not to do all this (even though I have the code from my TXi implementation) to keep things simple and easy to modify by others. Given the Teletype's script limitations, I've found creatively using all 16 sliders to be a challenge in and of itself. :)
Thanks for these explanations @bpcmusic.
Yes, if the issue with the Teletype gets solved, this configuration would be perfect.
Absolutely, I understand that.