You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First thing - thank you, I already really enjoyed ws2182fx and this implementation is awesome, so many cool features! I am working on creating a mobile friendly UI for it.
My question: when I power up the device, a single led will turn yellow for a second or so and then it fades into the boot preset, is this intended? If so, can it be changed?
thank you so much for enjoying the project and even actively working on it!
Let me explain the LED:
It is in fact not intended behavior. The ESP8266 uses the UART bus to control the LEDs (thats why they need to be connected to gpio2). This is faster and more reliable than controlling them in software. However, on boot, the ESP's underlying OS (FreeRTOS, I believe) sends some random (debug?) data to that UART bus, which can cause some LEDs to turn on to random colors. On one of my lights running WLED, all lights turn white briefly, on another, just the first one turns green and on another, everything stays off. I don't believe that behavior can be changed.
One thing that's possible (which I consider) is turning the LEDs on earlier in the setup process, which currently works something like:
Load all user settings from memory (takes a very short time)
Connect Wifi and initialize interfaces (takes several seconds)
Turn on LEDs
If I'd start the LEDs before WiFi initialization however, effects and fading transitions could severely stutter while the ESP is busy starting stuff up. Nevertheless, I will try it out and if it works out, add it to the 0.6.0 release that will be available in a week or so.
Thank you for working on a mobile friendly UI! It would be really cool if you could share it once you've got stuff working nicely. Let me know if you have a question or if I could help with something else!
Okay yeah awesome, hopefully moving the LED setup earlier in the script could do the trick! If worst comes to worse, I could just add in a relay that blocks all signal to the lights until it's ready.
Once the mobile UI is all looking nice and working well I will be glad to share it 😄at the moment I am mainly focusing on making an easy to use controller for actively playing with the lights, there'd be a stack more to do in /settings, I may have to wait until I have more free time to look into making them mobile friendly!
Hey, version 0.6.0 with the improved boot LED behavior is released now. Hope it works nicely for you! Sounds great what you are working on 😄 Thank you, I'll stay tuned!
Just wanted to reopen this as technically there is still this yellow LED on startup, I've been looking into things like esp8266/Arduino#3047 which seem to have a solution for the debug data.
On ESP8266, there are two (proper) ways to control the LEDs, UART and DMA. UART only works on GPIO2 and DMA only works on GPIO3 (at least with the NeoPixelBus library I use). Both however seem to cause the LED at startup/flash. See this: https://github.com/Makuna/NeoPixelBus/wiki/FAQ-%2310
You could try DMA however. I never did since UART worked fine for me (except the statup LED😄)
For that you just need to connect the LEDs to GPIO3 and in line 14 of WS2812FX.h replace the NeoEsp8266Uart800KbpsMethod with NeoEsp8266Dma800KbpsMethod. I'd suspect that doing so won't help but it's maybe something worth trying. Sorry that I can't change anything in the code which would prevent the startup behavior😅
I have managed to solve this problem by using a level shifter that has the ability to be turned on after the esp has booted which stops the junk data reaching the lights.
Activity
Aircoookie commentedon Mar 13, 2018
Hi,
thank you so much for enjoying the project and even actively working on it!
Let me explain the LED:
It is in fact not intended behavior. The ESP8266 uses the UART bus to control the LEDs (thats why they need to be connected to gpio2). This is faster and more reliable than controlling them in software. However, on boot, the ESP's underlying OS (FreeRTOS, I believe) sends some random (debug?) data to that UART bus, which can cause some LEDs to turn on to random colors. On one of my lights running WLED, all lights turn white briefly, on another, just the first one turns green and on another, everything stays off. I don't believe that behavior can be changed.
One thing that's possible (which I consider) is turning the LEDs on earlier in the setup process, which currently works something like:
If I'd start the LEDs before WiFi initialization however, effects and fading transitions could severely stutter while the ESP is busy starting stuff up. Nevertheless, I will try it out and if it works out, add it to the 0.6.0 release that will be available in a week or so.
Thank you for working on a mobile friendly UI! It would be really cool if you could share it once you've got stuff working nicely. Let me know if you have a question or if I could help with something else!
StormPie commentedon Mar 13, 2018
Okay yeah awesome, hopefully moving the LED setup earlier in the script could do the trick! If worst comes to worse, I could just add in a relay that blocks all signal to the lights until it's ready.
Once the mobile UI is all looking nice and working well I will be glad to share it 😄at the moment I am mainly focusing on making an easy to use controller for actively playing with the lights, there'd be a stack more to do in /settings, I may have to wait until I have more free time to look into making them mobile friendly!
Keep up the great work!
Aircoookie commentedon Mar 15, 2018
Hey, version 0.6.0 with the improved boot LED behavior is released now. Hope it works nicely for you! Sounds great what you are working on 😄 Thank you, I'll stay tuned!
StormPie commentedon Mar 18, 2018
Just wanted to reopen this as technically there is still this yellow LED on startup, I've been looking into things like esp8266/Arduino#3047 which seem to have a solution for the debug data.
StormPie commentedon Mar 18, 2018
I've looked through for a while and can't find a way to change the output pin, could you help me out with that? 😄
Aircoookie commentedon Mar 18, 2018
On ESP8266, there are two (proper) ways to control the LEDs, UART and DMA. UART only works on GPIO2 and DMA only works on GPIO3 (at least with the NeoPixelBus library I use). Both however seem to cause the LED at startup/flash. See this: https://github.com/Makuna/NeoPixelBus/wiki/FAQ-%2310
You could try DMA however. I never did since UART worked fine for me (except the statup LED😄)
For that you just need to connect the LEDs to GPIO3 and in line 14 of
WS2812FX.hreplace theNeoEsp8266Uart800KbpsMethodwithNeoEsp8266Dma800KbpsMethod. I'd suspect that doing so won't help but it's maybe something worth trying. Sorry that I can't change anything in the code which would prevent the startup behavior😅StormPie commentedon Apr 16, 2018
I have managed to solve this problem by using a level shifter that has the ability to be turned on after the esp has booted which stops the junk data reaching the lights.
Merge pull request #6 from Aircoookie/master
Merge pull request wled#6 from atuline/master
bugfix for random crash when switching between presets
fix(security): address critical/HIGH findings in EvoAuth + AuthGate
fix(security): firmware critical security findings (#4)
Merge pull request wled#6 from Aircoookie/master
bugfix for random crash when switching between presets
docs: add Forgejo issue number (Fixes wled#6) to DRAFT_PR.md