Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple faderbanks on the same I2C bus #16

Closed
Elberstein opened this issue Jan 16, 2019 · 7 comments
Closed

Multiple faderbanks on the same I2C bus #16

Elberstein opened this issue Jan 16, 2019 · 7 comments

Comments

@Elberstein
Copy link

Elberstein commented Jan 16, 2019

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.

    // map and update the value 
    noInterrupts();
    currentValue[i] = temp;
    interrupts();

Thanks.

@infovore
Copy link
Collaborator

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 fader); adding more faderbanks would need more addresses over in Teletype land.

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.

@Elberstein
Copy link
Author

Elberstein commented Jan 18, 2019

Thanks for your reply.
Multiple Masters on the same bus: I'm not sure what will happen but I need to try that, if one faderbank can talk to the Teletype and another to the ER-301 while keeping the ER-301 connected to Teletype, that would be great.

@infovore
Copy link
Collaborator

I think multiple MASTERs may be a dead end; I am not sure what the expected behaviour is.

@bpcmusic
Copy link
Contributor

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. :)

@Elberstein
Copy link
Author

Thanks for these explanations @bpcmusic.

You could have a one in normal mode and one in master mode

Yes, if the issue with the Teletype gets solved, this configuration would be perfect.

I've found creatively using all 16 sliders to be a challenge in and of itself.

Absolutely, I understand that.
It's mainly for the ER-301 that I wish I had more faders but I can also use the CV after all ;)

@infovore
Copy link
Collaborator

@Elberstein I think this is effectively resolved? Before I close it, I think the best thing to do is convert @bpcmusic's response into some documentation. Is that OK?

@Elberstein
Copy link
Author

Yes, the work is on the Teletype side, I think we can close this issue :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants