I’m sure a quick answer from those that are familiar with FastLED Library.
I have an Arduino Mega driving 480 WS2801’s. It seems most of the examples I’ve found to play around with I can only get them to go so fast. I know there is a limit to what can be achieved but I don’t think what I want is not achievable.
Could someone write a very simple WIPE or Fade that goes from one side to the other that would have a speed variable or something? I’m thinking something like this…Generic laymans terms.
LEDS: 480
LEDBLOCK: 20 (how many leds light up at the same time)
FADE: 10 (maybe add how many leds fade out at the end of the block)
SPEED: 100 (how fast does it go from led 1 to led 480.
My K-1000C controller will blaze some patterns across the leds in less than a second. But I’m not getting anywhere near that speed on the loops I’ve found.
Thanks for any guidance or pointers to what I can look for in the code, or samples you write
hello
looking at the data sheet of the WS2801https://cdn-shop.adafruit.com/datasheets/WS2801.pdf you can at least run at 2Mhz over 6 meters 24 bits*480 leds + latch time of 500µs should give you a total refresh time of 6.26ms for your 480 led
If the 1000KC can run at 25MHz then it should only take 1ms
what i would to is
long time=millis();
FastLED.show();
Serial.println(millis()-time);
FastLED.delay(1);
in your loop so will see how long it actually takes to ‘display the leds’
all overhead will be taken by any computation of what should be in the led.
just to let you know if fps1 is the frame rate only to display the leds. with fps2 the frame rate to calculate the leds color
your final fps < min(fps1,fps2)
fps=(fps1*fps2)/(fps1+fps2)
@Yves_BAZIN I understand some of that But I def see what your saying. The Arduino may not be able to run as fast as the K1000C. The additional lag I may be seeing is based on the math and building of the pattern in FastLED code. I’ll run the code you put here to see what I get to see if it’s comparable to what we would expect from these leds. Thanks for the time.