Hello. I've started to work with arduino pro micro recently.

Hello. I’ve started to work with arduino pro micro recently. I’m runnig this simple code on arduino and WS2813 led strip, with separate DC sources:

#include <FastLED.h>
#define NUM_LEDS 30
#define DATA_PIN 6

CRGB leds[NUM_LEDS];

 void setup() { 
   FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);

}

void loop() {
leds[0] = CRGB::Red;
FastLED.show();
delay(30);
}

I spent 3 hours on search some info about my issue when led strip just blinks by random colors with random leds, when I dissconect arduino it remember it state.When I connect arduino back, leds start their chaos back. When I connect a ground wire from the leds’ DC source to the arduino my led strip stops working at all. What shoud I do? Thank you!

So when you connect ground on the LED strip to ground in the arduino it stops working? That’s strange as there always needs to be a common ground between everything.

Do you have a link to the LED strip you bought?

Update, after connecting BI to the ground led lights start to work better however still randomly

Have you tried wiring it like this:
http://www.pixel-leds.com/products/256-ws2813.html
Data line to DIN on first pixel, and that same data line to BIN on second pixel?

Ground wires should only be connected to ground connection points, not data connection points.
http://pixel-leds.com - ws2813

Wait, I should have noticed this earlier, what version of the pro micro do you have, the 5V or 3.3V? (I’m guessing the 3.3V). The LED strips work best with a 5V data signal.

@marmil Arduino pro micro powered through USB port, led from the wall, when I’ve tried other libraries result was better but still bad, some diods doesn’t work and it’s not because they are dead or smth. All mmy tests went without connected ground to the arduino, at east it makes signs of life

https://www.aliexpress.com/item/ATmega32U4-5V-16MHz-Module-New-Pro-Micro-for-arduino-with-2-row-pin-header-For-Leonardo/32708975582.html

I found a library (https://github.com/cpldcpu/light_ws2812) every pixel is working now. From the side of the first pixel I’ve connected BI and DI to the Arduino pin without conecting ground to it. From the side of the last pixel I’ve connected 5+, GND and BI to GND as well. Seems like it works

Update, now with connected ground it not only works but follows he code

@D_Rudkovskyi I’d love to see a wiring diagram because I don’t understand how you have things working.