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

More than 512 leds, no light comes through #32

Open
davidboon78 opened this issue Nov 13, 2020 · 2 comments
Open

More than 512 leds, no light comes through #32

davidboon78 opened this issue Nov 13, 2020 · 2 comments

Comments

@davidboon78
Copy link

I'm using an ESP32 and trying to get 1024 LEDs to run, but if I make numLeds more than 512, even 513, the entire light array goes black. Some investigation finds that onDmxFrame sets sendFrame to 0 every time it's called. I tried to eliminate sendFrame but the FPS seems to drop significantly. Any suggestions?

const int lastUniverse=startUniverse+maxUniverses;

void onDmxFrame(uint16_t universe, uint16_t length, uint8_t sequence, uint8_t* data)
{
if(universe<startUniverse||universe>lastUniverse)
return;

// read universe and put into the right part of the display buffer
for (int i = 0; i < length / 3; i++)
{
int led = i + (universe - startUniverse) * (previousDataLength / 3);
if (led < numLeds)
leds[led] = CRGB(data[i * 3], data[i * 3 + 1], data[i * 3 + 2]);

}
previousDataLength = length;
FastLED.show();
}

@rstephan
Copy link
Owner

Here are my questions/advices for you. (I am guessing, the ArtnetWifiFastLED-Example is used.)

  • Is the initTest() working? Show all LEDs the red/green/blue pattern at start?
  • Removing sendFrame-behavior is a bad idea! With 512 LEDs your frame rate will drop to 1/3, with 1024 to 1/6!
  • The FastLED.show();-call takes time. You can find some calculations here: Latency When Writing to 620 LEDs (1860 Channels) #31 (comment)
  • Send the universes in a row, with no gap, e.g.: 0,1,2 wait 0,1,2 wait. NOT: 1,3,4 wait 1,3,4

I will try to replicate your setup, but this will take some time.

@davidboon78
Copy link
Author

  • the test works fine, all leds light up.
  • yeah that's what I'm finding.
  • I'm using resolume to send the universes. Each one with 510 channels.

Thanks for any help. If I can solve it myself ill let you know.

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