ESP32 FastLED wave functions for 1000 LEDs

Hi,
I’ve been trying to control 1000 leds with FastLED library using esp32 on a single pin. Below you can find a loop function. It is just a rainbow which is coloring each next led.

void loop() {

//generate wave for changing led pixels
uint16_t sinBeat = beatsin16(30, 0, NUM_LEDS, 0, 0);

//generate wave for colors
uint8_t colBeat  = beatsin8(45, 0, 255, 0, 0);

//assign colors to pixels
leds[sinBeat] = CHSV(colBeat, 255, 255);

fadeToBlackBy(leds, NUM_LEDS, 10);

FastLED.show();
}

This is working quite good but for 128 led strip. Above 256 leds there are starting to appear glitches as dark pixels - it looks like the wave generating positions of pixels skip some of them. Any ideas what could be an issue here?

I have installed WLED on the ESP32 before so for sure it is possible to control these 1000 pixels through single pin. I believe that there is some problem with this wave function when it comes to high number of leds.

Can you post all your code please.
Also most problems like this are caused by an insufficient current of the power supply or bad wiring. That is not having power and ground every 50 or so LEDs.

I have 4 points of connection with the 6mm2 wire from 30A power supply and as I said, with the WLED I was able to control 1000 and more leds even with higher brightness.

I asked you to post your code and you posted a link to some website.

If you want me to help you then I would ask you again to post the code correctly according to the page you directed to when you first attempted a post. This should be the code you are having trouble with. That link did not do that. For 1000 LEDs full on you need twice the power supply you have. I would like to see what you are doing to mitigate this.

Grumpy_Mike:
I asked you to post your code and you posted a link to some website.

I don't need help from rude people. Cheers.

strzala:
I don't need help from rude people. Cheers.

And I don’t give advice to someone who is uncooperative. So good luck trying to learn.

strzala:
I don't need help from rude people. Cheers.

'Bye!

Don't slam the door on your way out. :grinning:

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.