Help me to use the arduino to drive WS2812B Leds

Hi guys, newbie with arduino... I just buy WS2811 240 Leds strips, so, the controllers are in the way and I will like to drive them with the arduino that I just bought, It is installed and ready to upload the sketch so, I find this;

https://code.google.com/p/fastspi/downloads/list

But I think that I have to modify the library or sketch to drive the 240 Leds or how many to want to control so, what I have to change???

Thanks in advantage

EDIT the tittle to WS2812B are the leds what I have

(deleted)

spycatcher2k:
#define NUM_LEDS 150 Hmmmm.......

:wink:

Thanks...

Just that? Then save or upload?

(deleted)

spycatcher2k:
If I modify an example sketch, I save it under a different name, but you can just upload it to check if it works OK.

Great, thanks... I just go out... When I go back I will try...

Hi, I am back...

Troubles, I change the second line to #define NUM_LEDS 240

But when I try to upload the file to the arduino I get this message;

(deleted)

Thanks for the library thing... I miss that, well, I dont know that before, you and Thomas from http://funkboxing.com toll me to add the library... I have to say THANKS to Thomas... He help for almost 4 hours, after crash with a wall like 20 times with no luck and Led off I leave for start today again... Well, after some research a notice that my Leds are WS2812B and the first Led of the strips are faling, so, I cut it and the show go on... Now I have to start play with them

you can drive the WS2812B LED from a regular Arduino or similarly-powered device, but that is about all they will be doing since it takes nearly all the cycles of such a device to generate the waveform needed to drive these. Alternatively, you can add some external hardware which will help, but that makes the whole thing more complex. It is a non-standard waveform with some weird non-symmetrical timings, meaning the timing for a 1 or a 0 is different, and neither are particularly well divisible by eachother, so you spend a lot of time working around that in generating the signal. Also, there are few clock cycles between display pushes and it makes it nearly impossible to do any sort of real-time display other than simple color cycles.

Actually holman81 - since the WS2812B does not require constant updates, you can have your Arduino do other things if you need it to. You have more than enough time to respond to a controller or something. The longer the LED string, the longer it takes to set them, but once that's done they will hold that color until you set them again. So, during that time, you can do whatever.

These aren't hard to run, but I personally use different libraries that seem a little easier...