ajfisher / node-pixel

Library for using addressable LEDs (such as NeoPixels/WS2812) with Firmata and JohnnyFive
MIT License
275 stars 71 forks source link

Problem with maximum leds #248

Closed johanneshermans closed 1 year ago

johanneshermans commented 3 years ago

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?

ajfisher commented 3 years ago

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 .

ScreamZ commented 1 year ago

@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 ?

ajfisher commented 1 year ago

@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.

ScreamZ commented 1 year ago

Thanks for your work on that