node-pixel icon indicating copy to clipboard operation
node-pixel copied to clipboard

Problem with maximum leds

Open johanneshermans opened this issue 4 years ago • 1 comments

Hi, We are program a WS2812B led strip with 300 LED's, The problem is that we can't handle more than 216 pixel leds. We are working with arduino uno, J5 and firmata. Is there a solution?

johanneshermans avatar Jun 07 '21 16:06 johanneshermans

Unfortunately not. The reason for the limit is that every pixel takes 3 bytes in ram to represent and firmata takes up a bunch as well. That limit was chosen after a lot of benchmarking to determine how much team was likely to be in use that was volatile and then maximize the remainder for the strip.

You can use a subordinate second Arduino of some form using I2C bus and you'll get a lot more(1000) or you can use an Arduino mega and you can use thousands.

Unfortunately this is a hardware limit

On Tue, 8 Jun 2021, 02:50 johanneshermans, @.***> wrote:

Hi, We are program a WS2812B led strip with 300 LED's, The problem is that we can't handle more than 216 pixel leds. We are working with arduino uno, J5 and firmata. Is there a solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ajfisher/node-pixel/issues/248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA5DI7SECZUIISQOX4OP4LTRT2HFANCNFSM46IB5QLQ .

ajfisher avatar Jun 07 '21 23:06 ajfisher

@ajfisher IS 216 The limit on a single strip ? Or on the whole strip that can be managed by a single UNO ? I imagine for a single uno ?

ScreamZ avatar Jan 26 '23 09:01 ScreamZ

@ScreamZ it is the total number of LEDs available on an uno (really atmega328) you can have before you start running into memory issues. If you run in backpack mode instead you can have about double that without too much drama.

ajfisher avatar Jan 26 '23 20:01 ajfisher

Thanks for your work on that

ScreamZ avatar Jan 27 '23 10:01 ScreamZ