WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Ledstrip freaks out on nodemcu when powered over usb

Open vwtune opened this issue 7 years ago • 16 comments

First of all, thank you for this lovely project! I really enjoy it.

I encounter some problems though; In my test case i use ws2812B leds and a 5volt 20 amps power supply. The leds are connected on D4 pinout and the nodemcu is powered by the same powersupply as for the leds. I use pins vv and ground. WLED 0.8.5 is online and i can set the lights, but when i do around 70% of brightness in a setting with effect alle the leds on, i can see the little blue led on de nodemcu is almost off (dim) and WLED is slow or just crashes. I tried 3 different power supplies, all the same problem.

Is there a special connection of the nodemcu to your leds and powersupply that i'm missing?

Also i tried to powered up the nodemcu by usb (tried a couple) but then wled just freaks out, all the leds will start to flicker and i can not control wled. Why is this?

I tried wemos D1 mini's, but wled will start up, but than it will freaks out also ( on 5 volt and powered by usb)

Can you give me some hands up here please?

vwtune avatar Oct 28 '19 20:10 vwtune

  • do you have a ground running directly from the nodemcu to the LED ground?
  • how many LEDs did you connect?
  • what is 'vv'?
  • sorry for maybe asking the obvious, but you do send in the data on the right side of the LED-strip?

raoulteeuwen avatar Oct 28 '19 20:10 raoulteeuwen

  • do you have a ground running directly from the nodemcu to the LED ground?
  • how many LEDs did you connect?
  • what is 'vv'?
  • sorry for maybe asking the obvious, but you do send in the data on the right side of the LED-strip?

Powersupply

  • (plus) -->nodemcu (5vin/vv) and ledstrip
  • (min) --> nodemcu (Ground) and min to ledstrip vv is 5v in on the nodemcu

I use 5 meters 60 leds, so 300 leds are connected. The green (data) is set on the right side

vwtune avatar Oct 28 '19 20:10 vwtune

Just checking (and if you have wired it differently, could you do it like this as a test): is it like in https://www.reddit.com/r/arduino/comments/bzv5tx/does_this_wiring_look_correct_for_a_nodemcu/ , with the exception that the green data wire is running from D4 on the NodeMCU to the LED data cable? Can you share a picture?

raoulteeuwen avatar Oct 28 '19 20:10 raoulteeuwen

Yes, it is connected just like the picture shown in your link! The problem with the the wemos d1 mini and the overall problem with powered over the usb connection, is strange, but why the nodemcu is struggling on 5volt ( as i can see when the blue light of the esp chip will fade out) when the brightness increase. the powersupply have enough spare amps for the strip so i don't get it

vwtune avatar Oct 28 '19 21:10 vwtune

Do you have a strip with fewer LEDs to test with?

raoulteeuwen avatar Oct 28 '19 22:10 raoulteeuwen

Do you have a strip with fewer LEDs to test with?

Yes, and it then i have no problems when test it with a 24 leds ring. Also the leds of the led ring is much brighter when brightness is set on full (i can not look straight in the led).

Again, my powersupply is a 5volt 20 amps. the 60 led p/m draws 18 watts

vwtune avatar Oct 28 '19 22:10 vwtune

Based on what you shared, i would say either the strip is drawing to much power (maybe more than specified) and/or your power supplies deliver less than spec'd. I would not know how to measure nor what equipment that would take. I always read that when you increase the nr of LED's and length, the chance increases that you will need to inject power at more points in the strip (more with 5V strips, less with 12V strips). I'm pretty sure it's not a WLED thing.

raoulteeuwen avatar Oct 29 '19 06:10 raoulteeuwen

Based on what you shared, i would say either the strip is drawing to much power (maybe more than specified) and/or your power supplies deliver less than spec'd. I would not know how to measure nor what equipment that would take. I always read that when you increase the nr of LED's and length, the chance increases that you will need to inject power at more points in the strip (more with 5V strips, less with 12V strips). I'm pretty sure it's not a WLED thing.

Okay, but why de nodemcu is affected when i pull up the brightness? You can see the blue led of the esp8266 on the nodemcu fade out.

also on a wemos d1 mini, with the same power supply and a 24 led ring, i only get flickering of all the leds, i can't controll the WLED at all (it is online though)

vwtune avatar Oct 29 '19 08:10 vwtune

I hope someone else will reply to the info above ... i'm not an electrical engineer, but that's why i wanted to make sure you have the ground running correctly. Not sure whether all connections are sound? I have a NodeMCU with 120 LEDs running fine, and based on this forum i would say there are hundreds of people using NodeMCU and Wemos D1 with WLED, so the only thing i can think of is something with wiring or power (either supply or usage). But maybe someone else has another idea of what could be wrong...

raoulteeuwen avatar Oct 29 '19 08:10 raoulteeuwen

If you have a multimeter you can check to see if your getting a significant voltage drop from your power supply.

As for the flickering, if you power the node mcu with usb and the strips with your separate power supply, make sure the grounds are connected between the two different power sources.

mjferro avatar Oct 29 '19 09:10 mjferro

If you have a multimeter you can check to see if your getting a significant voltage drop from your power supply.

As for the flickering, if you power the node mcu with usb and the strips with your separate power supply, make sure the grounds are connected between the two different power sources.

I measured the power supply when connected the nodemcu and 300 leds running, power supply stays steady on 5 volt

So, when connected a wemos (or nodemcu) with USB, you also have to connect ground to it from your power supply?

vwtune avatar Oct 29 '19 11:10 vwtune

When using multiple power sources, you still want to have everything on the same common ground. Otherwise there may be voltage difference relative to the other supply, or other weird stuff.

Try powering the nodemcu via usb, and the strip with the 5v power supply. Then connect the grounds together (strip gnd to mcu gnd).

mjferro avatar Oct 29 '19 18:10 mjferro

If you have a multimeter you can check to see if your getting a significant voltage drop from your power supply. As for the flickering, if you power the node mcu with usb and the strips with your separate power supply, make sure the grounds are connected between the two different power sources.

I measured the power supply when connected the nodemcu and 300 leds running, power supply stays steady on 5 volt

### So, when connected a wemos (or nodemcu) with USB, you also have to connect ground to it from your power supply?

Yes.

eoncire avatar Oct 29 '19 22:10 eoncire

Try to modify the amps power supply in the settings, lower it, I have the sk6812 RGBW strip with 300 leds/5 meter and sometimes I have the same problem with nodemcu blue led shutting down and wled stopped working. Butt this problem was resolved when Aircoookie added the amps calculation in wled. I have a 10 amps power supply and I think in settings i putt only 8 amps or lower. Hope this is useful.

Mariu86 avatar Oct 30 '19 18:10 Mariu86

@vwtune have you resolved your issue?

thedannymullen avatar Nov 27 '19 01:11 thedannymullen

I powered the nodemcu apart (by usb) and the leds by powersupply, only the ground is connected together from the powersupply to the leds and nodemcu, now i don't have the problems anymore.

vwtune avatar Nov 28 '19 20:11 vwtune