Hi, everyone! Just managed to hook up my esp8266 to my ws2812b,

Hi, everyone!

Just managed to hook up my esp8266 to my ws2812b, now i have the problem that with wifi turned on my leds just flash at full brightness at random periods.
“FASTLED_ALLOW_INTERRUPTS 0” and “FASTLED_INTERRUPT_RETRY_COUNT 0” did not help, the problem only disappears when wifi is turned off.
Someone has similar problems or maybe even a solution?

Thanks!

Which ESP8266 are you using, and which data pin?

Have you tried any other data pins?

Also are you using a level shifter?

First of all, thank you for the anwsers!
I am using the ESP-01, tried the TX and the GPIO0 pin, same results.
I am not using a level shifter, but that should not be the Problem, as everything works perfectly when wifi is off.

P.S.: i am really surprised by the support of the community, keep it up guys!

as far as i know there is no pin 5 on an ESP-01

Have you tried RX (GPIO3)?

Sorry, forgot it was such a small board… Have you tried RX (GPIO3)?

If that doesn’t work, I’d suggest upgrading to a WeMos D1 mini :wink:

I tried the RX pin, i really think the Problem are the wifi-interrupts leavin the led-pin in high State, so the led’s geht a false information.
My question is, can i somehow just disable the wifi board for some msecs?
When i do “WiFi.mode(off)” it needs too much time to reconnect to wifi after i turn it in.
Still, thanks for the quick anwsers, really appreciate it!

I think you might have to get a better board… The WeMos D1 mini offers excellent performance and value for money. You can get them from WeMos on Aliexpress or more locally in most countries on eBay or Amazon.

Still it is an esp, and i will have the same problems with interrupts by wifi, or did i get something wrong?

@Daniel_Dakhno Depending on which pin you use, the ESP handles things differently. For example, I’m able to use pin 5 on the ESP-12E with wifi without any problems. I do need to use a level shifter to increase the output from 3.3V to 5V though - as the WS2812B does not accept 3.3V on data most of the times. Some strips may work, but it’s a hit or miss.

oh, i have a esp-12 lying around here, may try it.
thank you very much, any way!!

may i just use a transistor with the collector connected to 5v instead of a level shifter?

@Daniel_Dakhno not really. The ws2812b has very strict timings and needs an active level shifter. I use the 74HCT245N (even though it is oversized for one strip). Maybe others have suggestions for smaller chips.

so, a transistor is not fast enough?

@Daniel_Dakhno didn’t work for me

The 74HCT125 is a 4 channel version of the same chip and I’ve used them successfully. They can be harder to find though :frowning:

Well, if i get it right a logic shifter consists of at least some transistors, so a single transistor instead of a shifter should definelety be faster.

@Daniel_Dakhno I don’t understand the technicalities fully - but as I understand it, the 74HCT is an active level shifter, while a transistor is a passive shifter and does not provide enough speed. See this article for more details. http://happyinmotion.com/?p=1247