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

wrong dmx out, like it's confmusing/mixing the steps #9

Open
SamiNeverland opened this issue Apr 7, 2021 · 2 comments
Open

wrong dmx out, like it's confmusing/mixing the steps #9

SamiNeverland opened this issue Apr 7, 2021 · 2 comments

Comments

@SamiNeverland
Copy link

SamiNeverland commented Apr 7, 2021

Greetings everyone,
thank you all for your contributions to DMX.

I 'm playing with the espDMX example and i have some issues running the code on wemos D1 mini v2 and i have implemented the MAX485 topology on dmxA(Tx0), a status led and i connected a 7 channel RGB led par.

I modified the steps for an R-G-B-black:

1-Master Dimmer
2-Red
3-Green
4-Blue
5-strobo
6-macro1
7-macro2


//4 steps with 7 channels in each
byte dmxChase[][7] = { { 255, 0, 0, 0, 0, 0, 0},
                        { 255, 255, 0, 0, 0, 0, 0},
                        { 255, 0, 255, 0, 0, 0, 0},
                        { 255, 0, 0, 255, 0, 0, 0}
 
};
void loop() {
  for (int i = 0; i < 4; i++) {
    
    // Output channels 1 - 10 on dmxA
    dmxA.setChans(dmxChase[i], 7, 1);

    // 1 second between each step
    delay(1000);
  }
}


what i get as a result to the led par is:
at the very first loop is almost the sequence as i wrote BUT
after that, every time the status led is blinking, it's like it runs 5 steps.

Any ideas?
Thanks in advance

@DenkyTuna
Copy link

DenkyTuna commented Jun 14, 2021

Maybe the "full 512 ch once per second" function which is in espDMX.cpp has bad affects.

I edited espDMX.cpp and killed it. Also I forced it to output 512chs always.

@mtongnz
Copy link
Owner

mtongnz commented Sep 5, 2021

Agreed. Some fixtures don't follow dmx spec and this can cause issues

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

3 participants