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

Multi controller example #17

Open
octave opened this issue Apr 1, 2023 · 1 comment
Open

Multi controller example #17

octave opened this issue Apr 1, 2023 · 1 comment

Comments

@octave
Copy link

octave commented Apr 1, 2023

Hi,

Thank you for this awesome work that you've done. I was wondering if you have already written best practices and/or a guide on how to implement/connect multiple modules of 4 faders to control faders configuration of 8, 12, 16, etc for example?

@tttapa
Copy link
Owner

tttapa commented Sep 3, 2023

I haven't written any guides for this, but I'll quickly share some guidelines:

To connect multiple ATmega328Ps to one central microcontroller, you can use I²C. You should give each ’328P a different address:

static constexpr uint8_t i2c_address = 8;

In the motor controller sketch, you should then add more PBValue instances (one for each fader), and make the fader_index and slave_addr constants variable. This requires a bit of refactoring, but it shouldn't be difficult.

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

No branches or pull requests

2 participants