Arduino Uno - What is exact maximum amount of Neopixels it c

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ChrisManders
 
Posts: 1
Joined: Wed Jul 23, 2014 6:02 pm

Arduino Uno - What is exact maximum amount of Neopixels it c

Post by ChrisManders »

Hi - I have a question which I hope you can help with, please.

I need to know (if possible) the exact maximum amount of Neopixels that an Arduino Uno (2K RAM) can handle.
One page says 512, and another says 'about 600'. I realise that each pixels need 3 bytes, so for a 2K RAM, that would (theoretically) give a maximum of 2000/3=666 pixels if all the RAM is used for the matrix.
Is this possible? I am very new to the Arduino - Is part of the RAM used for other things? Is the hardware some-how limited to 512 or 600?

Thank you for any assistance you can provide.
Chris

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Arduino Uno - What is exact maximum amount of Neopixels

Post by Franklin97355 »

Is part of the RAM used for other things?
Yes, the total number depends on how much SRAM your code is using for things other than the pixels.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Arduino Uno - What is exact maximum amount of Neopixels

Post by pburgess »

The core Arduino code against which all projects are built requires a bit of RAM for such things as counters (for things like the micros() and millis() functions) and various flags and states. Then each library requires a bit of its own (or sometimes a lot of its own, such as the SD card library). It's not uncommon to be down a couple hundred bytes before your own code even gets a share. So no, there's no hard-and-fast rule as to how many NeoPixels will fit; anything mentioned is a guesstimate based on varying degrees of in-a-perfect-world.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”