Data compression of string to refresh WS2811 RGB LEDs fast

Hi everyone :slight_smile:

I have the following problem. I am using 150 WS2811 diodes, Arduino Due and node.js to my project. I want to stream video from a device connected to a node.js server and show it on array of diodes. Right now I am able to capture video from any device with browser and camera, change resolution of the video to desired by me (15x10) and create String chain containing informations of all colors (R,G,B) of all diodes. I am sending it from node.js server to arduino though serial port with baud rate 115200. Unfortunately sending process it is too slow. I would like it to refresh the LED array at least 10 times per second. So I was wondering maybe to compress this string which I am sending to arduino, when it gets there decompress it, and set colors to diodes. Maybe you guys have some experience with similar project and advice me what to do.

For handling diodes I am using adafruit_neopixel library.

Thanks in advance :wink:

Hi, you didn't tell us how you are formatting the data now.

In theory, you need to send 15 x 10 x 3 x 10 bytes per second, which is 36,000 bits per second, plus overheads for start & stop bits. So 115,200 baud should be more than enough.