Author Topic: WS2811 vs WS2821  (Read 9191 times)

0 Members and 1 Guest are viewing this topic.

Offline made2hackTopic starter

  • Frequent Contributor
  • **
  • Posts: 424
  • Country: 00
    • Made2Hack
WS2811 vs WS2821
« on: June 22, 2015, 04:59:09 pm »
Hello,

So I am contemplating purchasing RGB "pixel" LEDs from WorldSemi and wondering about the difference between the WS2812 and WS2822 chips. The LED's are WS2812 and WS2822, however, the IC's contained in the LED chips are the WS2811 and WS2821, thus the title. I've attached (hopefully) the PDFs in this post as they did not seem to have them online.

Basically, I need help decoding the Chinglish in these documents. One seems to be serial programmed and the other parallel? I'm not sure, but this is what I gathered since the WS2821 states "Parallel-Single" wire - Three channels. And, reading WorldSemi's Alibaba page states the WS2821 is also DMX512 protocol ready? OK.

So, my question is - Which ones to get?

What I mean is, I want to drive them with an MSP430 (specifically the MSP430G2553 - 16Mhz / 16Kb). How do I know which chips are better suited? How do I calculate how many of them I can run and how fast? I tried to read and understabd the chinglish data sheets but it all comes out as gibberish.

Quote
When the refresh rate is 30fps, low speedmodelc ascade number are not less than 512 points, high speed mode not less than1024 points. Send data at speeds of up to 400 Kbps and 800
Kbps two patterns

What does this even mean? Can the MSP430 even address these chips? How fast? How do I translate 16Mhz into Frames per second x String of LED chips I can program? Should I even bother or go to a more powerful arm based platform like the Pi?

Thanks in advance and I hope the question was clear.

Offline miceuz

  • Frequent Contributor
  • **
  • Posts: 387
  • Country: lt
    • chirp - a soil moisture meter / plant watering alarm
Re: WS2811 vs WS2821
« Reply #1 on: June 22, 2015, 05:13:11 pm »
Those are LED driver ICs you are refering to. I'd get WS2812B - controller chip is integrated near RGB led itself, easy to drive, plenty of example code around. You send serial data (24 bits per led) by providing different length pulses - longer for '1' and shorter for '0'. Each led "takes" first 24 bits it sees and passes the rest thru. When it sees data line low longer than ~50ms, it latches the data it has to the output.
 
The best way to drive them is to use a microcontroller with DMA capability as is done in Fadecandy https://github.com/scanlime/fadecandy project otherwise it's quite processor - intensive.
 
The following users thanked this post: ROT

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6459
  • Country: nl
Re: WS2811 vs WS2821
« Reply #2 on: June 22, 2015, 05:17:16 pm »
if you look at the protocol those WS leds are not fun  |O .
I'd pass on them and look for RGB leds with seperate clock and datalines such as the apa102, at least you are in control wrt timing.
 

Offline hneve

  • Regular Contributor
  • *
  • Posts: 58
  • Country: no
    • http://www.neve.nu/
Re: WS2811 vs WS2821
« Reply #3 on: June 23, 2015, 07:41:54 am »
What are you going to use them for.?
It kinda depends on how much memory or communication is going to be going on.  I have a few projects running the one data line from an 8mhz tiny85 with no problems but the code use almost no memory as the coloring is done mathematical. I belive you need something bigger if you have other plans.
73 de LB4NH
 

Online Jeroen3

  • Super Contributor
  • ***
  • Posts: 4068
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: WS2811 vs WS2821
« Reply #4 on: June 23, 2015, 07:55:53 am »
There are several other variants, not limited to worldsemi, which use a synchronous protocol. Which is much easier to implement.
You can also consider using a special driver IC. Such as DM163. If your application supports the extra space required.
 

Offline Tantalum

  • Regular Contributor
  • *
  • Posts: 79
  • Country: 00
Re: WS2811 vs WS2821
« Reply #5 on: June 23, 2015, 10:43:40 am »
What I mean is, I want to drive them with an MSP430 (specifically the MSP430G2553 - 16Mhz / 16Kb). How do I know which chips are better suited? How do I calculate how many of them I can run and how fast? I tried to read and understabd the chinglish data sheets but it all comes out as gibberish.

Well the RAM is the main limitation, the software implementation also of course.
Don't worry you can easily go over 1000 chips per channel on small MCUs with the WS2812.

Quote
When the refresh rate is 30fps, low speedmodelc ascade number are not less than 512 points, high speed mode not less than1024 points. Send data at speeds of up to 400 Kbps and 800
Kbps two patterns
Can the MSP430 even address these chips? How fast? How do I translate 16Mhz into Frames per second x String of LED chips I can program?

You need, well, you have to use DMA (in conjunctions with timers/pwm signals), if you don't use DMAs to generated the datastream, the MCU will only be able to generate the signal and nothing else, otherwise he won't fulfill the timings restrictions.


EDIT:
The differences between WS2812 & WS2822S (WS2821 driver IC) are:
- different communication protocol
- WS2822S supports "only" 1024 chips max per channel
- WS2822S strings are more reliable since those LEDs are connected in // (if one LED fails, the chain isn't broken)
- WS2822S needs more external components (resistors)
- WS2822S has 6 pins vs 4 pins for the WS2812, but is not as thick (1.6mm vs 2.0mm).

No data found about brightness.
« Last Edit: June 23, 2015, 11:29:14 am by Tantalum »
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6459
  • Country: nl
Re: WS2811 vs WS2821
« Reply #6 on: June 23, 2015, 12:03:35 pm »
There are several other variants, not limited to worldsemi, which use a synchronous protocol. Which is much easier to implement.
Please do name them, always interesting to see whats out there  ;)
 

Offline made2hackTopic starter

  • Frequent Contributor
  • **
  • Posts: 424
  • Country: 00
    • Made2Hack
Re: WS2811 vs WS2821
« Reply #7 on: June 23, 2015, 12:33:34 pm »
Well, basically I want to use Glediator or other such software to have exciting visuals in large matrixes. Perhaps make squares or rectangles of 64 LEDs that can be daisy chained up to the maximum that your PSU can handle.

There are several other variants, not limited to worldsemi, which use a synchronous protocol. Which is much easier to implement.
Please do name them, always interesting to see whats out there  ;)

I believe  that Kjelt recommended the apa102 as an alternative and probably other chips with serial. Which, the more I look into it looks more reasonable.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf