# Micro:Bit with Addressable LEDs WS2811 v WS2812B

**URL:** <https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517>\
**Category:** micro:bit\
**Tags:** extension\
**Created:** [September 22, 2022, 8:12pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517 "2022-09-22T20:12:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thornomad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thornomad/32/6839_2.png) [@thornomad](https://forum.makecode.com/u/thornomad)\
**Post date:** [September 22, 2022, 8:12pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/1 "2022-09-22T20:12:50Z")

</div>

Hoping someone here has some familiarity with this topic and can point me in the right direction.

tl;dr — I’ve tried both **WS2812B** LED strips _and_ **WS2811** LED strings but can’t get the **WS2811** to work. Is \*\* WS2811\*\* supported by the neopixel library?

I recently purchased both the **WS2812B** led strip and some **WS2811** light strings to experiment with addressable LED programming. Since my kids and I have a few Micro:Bit devices and supporting gadgetry I wanted to give it a whirl with what I have.

Using a GPIO extension board with 5v of power I was able to get the **WS2812B** strips working immediately but no luck with **WS2811**. I don’t see the **WS2811** lights [referenced in the API docs](https://microbit-micropython.readthedocs.io/en/v1.0.1/neopixel.html) but wanted to check in with the community: _is anyone using these successfully with Micro:Bit?_

Thanks!

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [September 22, 2022, 11:03pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/2 "2022-09-22T23:03:44Z")

</div>

Hi

What make / model of WS2811 strip are you using ? I have some but they are 12v only .

Do you get any sort of signs of life from the 2811 strip at all ?

Do you have access to an Arduino or other microcontroller so you can test the 2811 strip to make sure it works ?

Regards

---

<div class="post-metadata">

**Author:** ![thornomad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thornomad/32/6839_2.png) [@thornomad](https://forum.makecode.com/u/thornomad)\
**Post date:** [September 26, 2022, 4:48pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/3 "2022-09-26T16:48:21Z")

</div>

Ah! That may be the tip I needed — double checked the listing I purchased from and lo and behold: “12V K1000S T500 Controller”. So these are 12V. I’m using a freenove GIPO extension board which only does 5V output. Sounds like that might be my issue. The listing for the lights does say, elsewhere, “DC 5V/DC 12V 0.3W / led” but maybe that’s not accurate.

I will try and read a little about how (if) I can provide a different power source to those lights and still use the Micro:Bit. This is all really new to me so am figuring it out as I go.

I don’t have an andruino or espruino board (yet). This is my first attempt at addressable LEDs and I got a little overwhelmed with options. But since I have a couple Micro:Bit devices I wanted to start there and a small string of lights and see how much I could do. Also seems chip shortage affecting stock of various micro stuff.

Okay — this is a great lead. If you have any other tips or places I can read about the APIs and powering (stringing multiple sets together) it’s all much appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [September 26, 2022, 8:36pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/4 "2022-09-26T20:36:04Z")

</div>

Hi

glad to have helped point you in the right direction

I am guessing the the 5V DC relates to the control signal voltage that the strip needs from the MicroController, Whereas the 12V relates to the voltage needed to actually power / light the LEDs. If you send me a link to the LED that you have i can try to confirm this for you.

In your case as the GPIO board only gives 5V you will have to power the LEDs from an external source (12V ) - don’t panic its easier than it first looks!!

Here are a couple of links that may point you in the right direction - PLEASE NOTE they show supplying 5V external power to DOTSTAR/neopixel led but the same wiring etc applies if using 12V external power…

> **[Adafruit DotStar LEDs](https://learn.adafruit.com/adafruit-dotstar-leds/power-and-connections)**
>
> NeoPixel LEDs are the bee's knees, but in a few scenarios they come up short…connecting odd microcontrollers that can’t match their strict timing, or fast-moving persistence-of-vision displays. Adafruit DotStar strips deliver high speed PWM and an...

> **[Adafruit NeoPixel Überguide](https://learn.adafruit.com/adafruit-neopixel-uberguide/powering-neopixels)**
>
> NeoPixels are “intelligent” full-color RGB LEDs that can be controlled and chained from a single microcontroller pin. This guide presents an overview of NeoPixel products, along with tips for building and powering projects of all shapes and sizes.

Please Read this thoroughly & make sure you understand as connecting the wrong wire can destroy your LEDs or MicroBit - DON’T ASK ME HOW I KNOW!!!

As always let me know if you need any further help or have any further questions on this

---

<div class="post-metadata">

**Author:** ![thornomad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thornomad/32/6839_2.png) [@thornomad](https://forum.makecode.com/u/thornomad)\
**Post date:** [September 27, 2022, 4:27pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/5 "2022-09-27T16:27:14Z")

</div>

Hi again! Thanks for your replies!

So I think I can safely say the **WS2811** _do_ work and are not DOA. [Here is the link](https://www.ebay.com/itm/154595033958?var=454674243869) to the item. Also, I am using this GPIO from Freenove:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/bbf6252f4d58e44ef0a68f8e6b63d1e29f89693b.jpeg)

I had read somewhere (and saw again in the articles that you linked) that _under_ 12V was fine just not over. So, what I tried was connecting a 9V battery to the GPIO and then using the `VIN` pin (instead of the `5V` pin) to power the LEDs. Not sure where I read that the `VIN` pin would bring over the power from the battery but lo and behold: they came alive!

I can control the colors but they seem a little “off” (maybe this has to do with the under voltage) and the “rainbow” feature is not working (works with the 5V strip).

So will try and figure out how to get proper 12V and see if I can connect that directly to the string to power them. Maybe that will sort out the colors.

I am going to read those two articles you sent more carefully. I hope not to blow the lights but am prepared for a few mistakes along the way!

Thanks again!

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [September 29, 2022, 4:49pm UTC](https://forum.makecode.com/t/micro-bit-with-addressable-leds-ws2811-v-ws2812b/15517/6 "2022-09-29T16:49:47Z")

</div>

so glad to hear they are working !

the “off” colours problem - can you share your code?  
It may be that the 2811 LEDs need the colours specified in a different order ?
