WLED
WLED copied to clipboard
Slow boot and afterwards turning on, off, on
Hi! I have been using WLED to control my light since 2019. When I press the light switch, then the light turns on. Therefore, it is current dependent.
Since version 0.13.0-b0, and most noticeable in 0.13.0-b4, it takes an eternity (about 2-3 seconds) until the light turns on. If it is then on, then it goes off again and then on again.
I have now turned off the crossfade in the settings of the LEDs. Thus, I have at least no more flickering.Nevertheless it takes a long time until my ESP8266 boots (recognizable by the blue LED when it lights up).
Does anyone have an idea what this can be? If I run the ESP on the USB, then he starts faster :/
Eternity is much, much longer than 2 or 3 seconds. 😉
Most likely your PSU (either external or the one on ESP, converting from 5V to 3.3V) is inadequate. And causes brownouts during boot.
I can confirm that the time required to turn on the LED from first power up is at least 2 seconds longer as of 0.13.0-b4, including the latest, b6.
I'm using a Meanwell RSP-150-5 150W 5V and a Meanwell LRS-75-5 75W at 5V. According to my scope there are absolutely no brown-outs on these high-quality switching PSU's, nor on the on-board 3.3V regulators.
Something clearly changed after b3. Was it maybe the strip init code? https://github.com/Aircoookie/WLED/commit/8b2145bd888ee930fcb9ad76139d39812586ae3a
I just tested and am getting the same slow turn-on time with an ESP32.
I'm using SK6812 strips that range from 85 - 255 leds. The power supplies can deliver more than twice as much current as the strips can draw at maximum brightness.
2-3 seconds is an awfully long time to wait for a light to turn on after turning the switch on.
Something clearly changed after b3. Was it maybe the strip init code? 8b2145b
A lot has changed since b3. 😁 There is more functionality and flexibility than ever and this has contributed to boot time. It will be difficult to make it any shorter.
If you want, you can check the change log and try to pinpoint the change that extended the boot time considerably (use git to checkout certain commits and build the code manually).
The changes occurred between b3 and b4. I'll checkout the individual commits and verify which one caused the slow boot.
The other thing I noticed is that with b3 and prior, when you turn on and boot my strip fades in as per the transition settings.
However after b3, transitions on power-on don't work.
Even if you set a long transition and turn on power to the mcu & led's, it's still off for almost 3 seconds then strip goes to full brightness of the preset.
However after b3, transitions on power-on don't work.
Yes, that was one of the changes which prevented unwanted orange flash if you had boot preset with Off state. This is intentional.
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!
Closing, as this topic was inactive for a long time. The parts of WLED related to described problem were largely rewritten in the meantime. Please open a new bug report if you still experience the same problem with 0.14.0.