I’m planning on building a Word Clock myself, which I will write an article about later in the project. One of the parts that I’m going to use for this clock is an RGB led strip with individual addressable LED’s. When then arrived in the mail, I put together a small test using an Arduino to see how amazing those LED’s are.
The WS2812B LED strip contains 60 LED’s per meter, which are all indivual addressable. This means you can set the color of every single LED, instead of the whole LED strip at once like the SMD5050 LED strips. This gives amazing ‘rainbow’ like effect with just a few lines of code.
To control this strip, just connect the positive and negative wire to a 5V power supply, and connect the DATA IN wire to an Arduino (digital pin 6 in this example) through a resistor of 470Ω (ohm).
Next, upload the source code as attached below this post. Make sure to configure the number of LED’s you are connecting in row 16 in the source code. I’ve used 128 LED’s for the example, as I connected 2 meters of 60LED/meter RGB strip.
Also you might need to install the Adafruit NeoPixel library in your Arduino IDE. This can be done by going to ‘Sketch > Include Library > Manage Libraries’ and search for ‘neopixel’. Install the Adafruit NeoPixel library from there and it should all compile and upload to your Arduino without any problems.