Arduino Projects

WS2811 RGB Led Strip with Arduino,FastledWS2811 12V

Arduino fastled Color Palette Tutorial using WS2811 RGB Led Strip

WS2811 RGB Led Strip:

 

WS2811 RGB Led Strip with Arduino, Fastled WS2811 12V– Recently, I got a 5 meters long, Programmable and Addressable, IP67 Tube Waterproof, 12V WS2811 RGB Led Strip from SunFounder for only 23.99 dollars with free shipping. This RGB Led strip has a total of 150 Addressable LEDs; 30 LEDs/meter. Each and every Led in this strip can be individually programmed using a microcontroller board like Arduino, ESP8266, ESP32 WiFi + Bluetooth Module, STM32, etc, using only one pin on your controller board.

Since this is my first time using the WS2811 Led strip, so first I am going to start with the Arduino and then later I will use this LED strip with other controller boards as well. I will make a complete series covering, how to control the WS2811 Led strip using Android Bluetooth Application, IR Remote controller, WiFi, Long Range Radio transceiver modules like Lora, and NRF24L01, etc. So, consider subscribing if you don’t want to miss any of my upcoming projects.

allpcb circuit

Anyway, as usual, before I am going to share with you its technical specifications, It’s interfacing with Arduino, Library installation, and different programs. First, I am going to share with you the final test results and afterward, I will explain everything else.




I am using my 4S lithium Ion Battery pack to power up the Entire Led strip and the Arduino board. You can read my previous article if you want to make the same Lithium Ion Battery pack or you can use a 12V adaptor.

I have already uploaded the Example number 1 code. So, let’s go ahead and power up the Led Strip and Arduino Board.

WS2811 RGB Led Strip

I successfully tested more than 10 different projects. I didn’t had to write even a single line of code except changing the number of the LEDs in the strip. The Library itself consists of so many example codes which can also be modified.

If you don’t like any of those readymade LEDs effects, you can also try the Adafruit library or the pixels library or you can write your own unique code and make some cool animations. Anyway, now I am going to explain all the other important things, so, without any further delay, let’s get started!!!



Amazon Links:

Arduino Nano USB-C Type (Recommended)

WS2811 LED Strip

WS2811 LED Strip SunFounder

*Disclosure: These are affiliate links. As an Amazon Associate I earn from qualifying purchases.

WS2811 Led Strip:

WS2811 RGB Led Strip

This is a 5 meters long, Programmable and Addressable, IP67 Tube Waterproof, 12V WS2811 RGB Led Strip. This RGB Led strip has a total of 150 Addressable LEDs; 30 LEDs/meter.  Each and every Led in this strip can be individually animated using a controller board like Arduino, ESP8266, ESP32 WiFi + Bluetooth Module, STM32, etc, using only pin on your controller board.

Every 3 LEDs can be cut without damaging the rest of the strip to help you meet different size needs.

The Operating voltage is 12V and its 7.2Watts/meter and the chip model is WS2811. There are 10 WS2811 ICs per meter. The Entire Led strip is covered with a Silicone tube which makes it IP67 Waterproof.

WS2811 RGB Led Strip

This LED strip has got connectors on both the ends, this way multiple LED strips can be connected without any issues.The RED wires are 12v wires, the green wire is the Din wire, and the White wires are the ground wires.



Parameters:

Product Model: BTF-5050RGB3T-2811-12V
Color: full color
Working voltage: DC12V
Power: 7.2W/M
LED number/m: 30 LEDs/M
IC model: WS2811
Number of IC per meter: 10pcs
Waterproof level:IP67(casing waterproof)
Luminous angle: 120°
Wavelength: R: 620-630λ; G: 520-525λ; B: 465-470λ.
Light intensity: R: 500-600mcd; G: 900-1200mcd; B: 250-310mcd.
Luminous flux: R: 1.68lm; G: 3.2lm; 0.84lm.
Size specification: 5000x10mm
Weight/roll: 320g

Wide Application

It can be used to make led screen, led wall, advertising boards and widely applied to hotel, KTV, bars, Outdoor advertising signs, wedding party lighting, home and car decoration, city skyline, building outline and so on.

WS2811 LED Strip with Arduino:

WS2811 RGB Led Strip

The data in or DIN pin on the WS2811 LED strip is connected with the D5 pin on the Arduino. And the +12V and GND pins are connected with the 12V external power supply. In my case I am using a 4S lithium Ion Battery pack. And I am using a 5V regulated power supply to power up the Arduino board. As you can see the Output and ground legs of the 7805 voltage regulator are connected with the VIN and GND pins of the Arduino.

For the easy interfacing, I also soldered this DC Female power jack with the Red and White wires and now I can easily connect a power supply.

You can download the Gerber files of the Arduino Nano Development board from PCBWay.

WS2811 RGB Led Strip

Finally, I connected everything as per the circuit diagram.

WS2811 RGB Led Strip

And now let’s take a look at the programming.



Required Library:

As usual, before you start the programming, first of all, make sure you install the FastLED library. To install this library simply go to the Sketch Menu, then to Include Library, and click on the Manage Libraries, and Search for the fastled.

WS2811 RGB Led Strip

As you can see I have already installed this library.

WS2811 LED Strip Arduino Code:

After installing the library, you can start with the readymade example codes.

WS2811 RGB Led Strip

As you can see there are more than 20 example codes. You can check these one by one and you will get the idea how the code works. Let’s go ahead and open one example code.




ColorPalette Example Code:



About the code:

Once you open the program. Enter the pin number which is connected with the Data in pin on the LED strip, Next, enter the number of LEDs you want to control. Specify the brightness and update the chip type if incase your LED strip has a different chip. Make same changes in all the other example codes. If you want to see different example codes in action then you should watch my video.

Watch Video Tutorial

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button