Been using WLED for a while (awesome product) )and wanted to get a few ESP01’s connected to circular ws2812’s (12 leds). I have written the firmware and when booting can set everything up. Once I connect the ws2812 to the ESP01 - on GPIO02 - the esp01 would not boot anymore.
I have checked online and my google foo is not good - so was wondering how this is done?
Once the ESP01 is booted up - I can plug in the ws2812 and it’ll work. Any power cuts or restarts end up with the ESP01 failing to boot.
Can someone point me to how I can get these 2 items to work together?
You can use a WLED controlled relay if you really must use GPIO2. When WLED is off, Relay is off. On power up, WLED has not yet turned on the relay, so the GPIO2 is not low.
GPIOs 0, 1 and 2 have to be pulled HIGH (ie 3.3V, using 4k7 resistors) for the ESP01 to boot properly.
Also RST and SC/EN may need special attention in rare cases.
“Pulling high” is achieved by attaching resistor to GPIO pin and Vcc (or +3.3V), “pulling low” is achieved by attaching a resistor between GPIO in and GND (or 0V).
I got round this by having gpio2 connected to led’s through a logic level converter. this also means leads from esp-01 to leds can be longer without issues