Quick tutorial on driving WS2812(B) RGB LEDs with 8MHz AVR

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey all, I just posted this short tutorial and thought it might be of interest. Don't know the best group for this, so I'll do it here and trust it to end up in the right location.

http://www.embeddedrelated.com/s...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wow that's a nice site! (not just the 812 stuff).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Pretty cool device, but did not see where they can be had! Neither digikey or mouser lists the part.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Most people are buying them on ebay I think.

EDIT: yup, a search for "addressable LED" on ebay hits a lot of similar devices (though not 812) but most seem to come in strips which may not be exactly what everyone needs for Santa's ornaments ;-)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, I've gotten them from ebay. Strips, break-apart boards and bare LEDs. Search WS2812B. Or WS2811 for non-SMD LEDs. The flexible strips are very easy to cut up for any length, even down to a single LED.

http://www.ebay.com/itm/100x-WS2...

http://www.ebay.com/itm/WS2811-L...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Wow that's a nice site! (not just the 812 stuff).

Well, for my part (Introduction to Microcontrollers series), thanks for the compliment!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, ecellent article... one could increase bandwidth ( if suitable) by connecting string 1( of LEDs) to Pb0, string 2 to Pb1 etc....and modifying the ASM software and the array of data.(maybe)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The WS2812s can also be had from LadyAda and Sparkfun on single breakout boards for cases where strips are not suitable ( particularly when used in sew-able electronics ( for Flora or Lilypad boards ).

Also, agreed. A truly excellent tutorial!

Martin Jay McKee

As with most things in engineering, the answer is an unabashed, "It depends."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I buy mine from Ray Wu.

http://www.aliexpress.com/store/...

Cheers,

Ross

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There's several libraries that support the WS2812b, and as far as I know at least one version works on every Arduino except the new Tres. I've used ws2812b strip with 144 leds connected to a barebones ATMega328 running on the internal 8Mhz clock, and it works fine. :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

matt79 wrote:
There's several libraries that support the WS2812b,
Maybe you could post some links.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]