WS2812B not responding at all

Hello guys,my leds arent responding to any data from my arduino.I have tried many things like using examples,finding out colour order but nothing works.I can provide a link of my wiring and diagram if needed.Also i will provide my code but it is just an example included with fast led library called “Blink”.When i just tap 5v wire to my led strip some leds flash dimmed green instead of red which is stated in this program.I have changed value of pin to 2 and num of leds to 52.

Here is diagram of wiring

Here are few pics and gif of setup in action r/Arduino help - Album on Imgur

Here is code used

#include <FastLED.h>

#define NUM_LEDS 52

#define DATA_PIN 2


void setup() {

FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);


void loop() {

// Turn the LED on, then pause

leds[0] = CRGB::Red;;


// Now turn the LED off, then pause

leds[0] = CRGB::Black;;



you should post everything here instead of providing links, and use code tags as well so its easier to read. instructions for properly formatting a post and attaching an image are stickied.

the code you posted would only write a value to the first LED. you need a for-loop to write a value to the whole strip.

Your power supply might need minimum loads on 5V and +12V. Maybe required on other outputs as well. Measure the 5v and see what's happening. Or throw the ATX away would be best.

My pc is powered by that atx psu and i want to put leds in case as well.It worked well with other 5v stuff like rgb controller(non adressable) for my fans and other led strips.Im gonna check with with potentiometer but i dont think psu is problem because leds flash as seen in gif when i touch 5v rail of psu

i dont think psu is problem because leds flash as seen in gif when i touch 5v rail of psu

So keep your finger on the 5V rail. No problem.

The +5 connection looks suspect. It looks like it is not actually soldered to the strip and the connection to the external supply looks hairy to say the least.

While electricity famously dosn't care what colour it flows through using red for ground is just asking for it.