Unable to control WS2812D-F5


Hi All,

I got my hands on a few WS2812D and tried setting them up according to the spec sheet:

2xLEDs connected via Dout/Din with 75R in between
Regulated 5V supply with 104C between +ve and -ve
Control via Arduino UNO PWM pin (eg pin 3), 75 Ohm resistance between Arduino D3 and Din
Arduino UNO GND connected supply GND on breadboard

In terms of code I tried all FastLED library examples and NeoPixel library examples (blink, colour pallet,etc), varying LED chip definitions (WS2812, WS2812B, WS2811,..) but it doesn’t seem to make a difference: both LEDs turn bright green, drawing (capped by regulated supply) 200mA combined when Arduino D3 is not connected. When D3 is connected, first LED turns more blueish, second remains green.

Tried varying number of LEDs (1 to 3) and resistor values between D3/Din/Dout (75-220 Ohm)

First time playing with addressable LEDs. Anything I’m missing here?

is the Arduino GND connected to the Breadboard?

Doesn’t show clearly in the pictures, but yes, a jumper runs from an UNO GND pin to the breadboard GND rail.

Please post a link to the spec sheet that you mention.

Please post a clear picture of one of the LEDs against a darker background.

From the supplier’s website:

WS2812D-F5 spec sheet

I assume it's 3 x 220Ω in parallel that you have there to build the ~75Ω?

are the LEDs in the right orientation? (probably otherwise they would not work but...)

You assume correctly, crude but it’s the closest I can get to 75 Ohm. I measure 73 Ohm in that configuration, but I’m not sure if this is electronically sound on a signal line..?

LED orientation seems correct according to spec sheet pin out. Did try reversing pins but doesn’t work either.

How sure are you that they are WS2812 pixels? They look so much like regular RGB LEDs.

If you compare the drawing on the data sheet to those, there seems to be a difference. The height of the WS2812 is 5.1mm. I measured a 6mm RGB LED at 8mm which is how your LEDs look.

2812 dims

Apologies, I had edited the link after you downloaded apparently.

This is the box they came in, when going to the distributor’s website you can download a zip file with all spec sheets of LEDs in the box. The one under the link above now corresponds to the one the distributor supplies. P/N is Whadda WCS101

They look very similar to common anode and common cathode LEDs, but those have been verified to be in the correct box and working as expected (ie they’re not mismatched).

OK, I had to ask because of the difference in appearance between what you have and the drawing. Sorry if I caused any confusion.

the question is fair

the WS2812D I've seen were not crystal clear (opaque)

Have you tried just for the sake of it to drive one through PWM?

Just tried to drive them straight PWM on the three non-cathode pins, but nothing happens.

I present you from left to right: the common anode, common cathode and WS2812D LEDs..

The common anode and common cathode ones do work as intended though.

OK - sorry if that was not helpful (but fast try).

may be you can try with this library GitHub - cpldcpu/light_ws2812: Light weight library to control WS2811/WS2812 based LEDS and LED Strings for 8-Bit AVR microcontrollers. in case it's a timing sensitivity issue

Hey, I’m incredibly grateful for the engagement.
Just tried the library you suggested quickly, same result with the “Blinky” example. Might dig into it deeper to see how timings are built up and whether I can play around with them a bit.

Still not sure whether this is a controls or an electronics issue:

  • Current draw of 200 mA for two LEDs worries me a bit? My supply switches to CC mode at ~5.0V from a CV 12.0V starting condition (mind there’s a 12V to 5V step down to power the breadboard)

  • Disconnecting the Din on the first LED switches it to Green (like the second LED). Reconnecting switches it back to a more blueish tint.

  • Haven’t been able to visualise the UNOs output as I only have access to a RPi based oscilloscope board with a too low resolution. Just assuming the FastLED, NeoPixel and light libraries are doing their thing correctly.

that's a lot indeed, it should be 3x16mA = 48mA if all colors were on for 1 LED

The do work for many types of RGB LEDs indeed

So yeah, I wrote to the distributor of the LED set. They didn’t reply, just asked me my address. Today I had a small package in the mail with 5x LEDs that don’t look like the original ones but actually work as intended.. Original on the left/top, new on the right/bottom.

Just glad I’m not losing my mind. Thanks for the input guys!

good news and good service.

so seems that's the case with the new ones.