Page 1 of 1

NeoPixel (basic) not working

Posted: 26 Dec 2022, 12:27
by Mav63
Merry Christmas to all.
I like to use the free time this christmas to extend my environment with some WS2812 RGB LEDs controlled by espeasy on a nodemcu board.
Unfortunately I do not get it to work. I searched for hours now... each how to looks simple... but not here :cry:
I use ESP_Easy_mega_20221224_normal_302_ESP8266_4M1M
Configuration:
Device: Output - NeoPixel (Basic)
Name: NeoPixel
GPIO: GPIO-12 (D6) - but tried with others as well

LED (just ONE Led for testing):
Power: Vin of NodeMCU
Ground: GND of NodeMCU
Din: D6 on NodeMCU -> R330 -> Din (tried with and without resistor already)

Command:

Code: Select all

NeoPixelAll,255,0,0

- also tried: NeoPixel,1,255,0,0
- also tried: NeoPixelAllHSV,255,255,255

Log-Output:

Code: Select all

ACT : NeoPixelAll,255,0,0
P038 : write - NeoPixelAll,255,0,0
Nothing happens on LED...
Tried on a Wemos D1 mini pro with Din to D4:
Booting lights up the blue LED on Wemos board AND the WS2812 as well. After firing the command the WS2812 switched off but the blue light keeps light.

I am lost....
Any help would highly appreciated!

/Mav

Re: NeoPixel (basic) not working

Posted: 26 Dec 2022, 12:50
by TD-er
Can you measure the actual voltage on the Vin pin (relative to GND) ?
How many LEDs do you try to connect to the Vin?
Lots of those may draw significant current.

I just googled a bit on "neopixel schematics" and noticed this warning:
Image
So double check the pin order :)

Also there are quite a few useful hints here:
https://learn.adafruit.com/adafruit-neo ... onnections
Like that you may need a level shifter for the data.

Re: NeoPixel (basic) not working

Posted: 26 Dec 2022, 13:00
by Ath
Is the Initial brightness set to a value > 0, as 0 will cause that level of brightness: 0 :shock:

Re: NeoPixel (basic) not working

Posted: 26 Dec 2022, 13:18
by Mav63
Ath wrote: 26 Dec 2022, 13:00 Is the Initial brightness set to a value > 0, as 0 will cause that level of brightness: 0 :shock:
Stupid me!!!

Thank you so much for the hint!!!!

Re: NeoPixel (basic) not working

Posted: 26 Dec 2022, 13:21
by Ath
Mav63 wrote: 26 Dec 2022, 13:18 Stupid me!!!
Well, actually, stupid me, as I added this setting, but have not set a decent initial value. I'll fix that.

Re: NeoPixel (basic) not working

Posted: 26 Dec 2022, 13:56
by Ath
I've created Pull request #4434 to correct this issue.