Arduino Forum

Using Arduino => LEDs and Multiplexing => Topic started by: miledelija on Oct 04, 2018, 08:20 pm

Title: WS2812B not responding at all
Post by: miledelija on Oct 04, 2018, 08:20 pm
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 http://prntscr.com/l27t70

Here are few pics and gif of setup in action r/https://imgur.com/gallery/Xu36Vsj

Here is code used

#include <FastLED.h>



#define NUM_LEDS 52



#define DATA_PIN 2



CRGB leds[NUM_LEDS];



void setup() {



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

}

void loop() {

// Turn the LED on, then pause

leds[0] = CRGB::Red;

FastLED.show();

delay(500);

// Now turn the LED off, then pause

leds[0] = CRGB::Black;

FastLED.show();

delay(500);

}
Title: Re: WS2812B not responding at all
Post by: silly_cone on Oct 04, 2018, 08:38 pm
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.
Title: Re: WS2812B not responding at all
Post by: boolrules on Oct 05, 2018, 02:06 am
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.
Title: Re: WS2812B not responding at all
Post by: miledelija on Oct 05, 2018, 01:39 pm
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
Title: Re: WS2812B not responding at all
Post by: boolrules on Oct 05, 2018, 05:30 pm
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.
Title: Re: WS2812B not responding at all
Post by: Grumpy_Mike on Oct 05, 2018, 09:57 pm
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.