Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.7k stars 3.16k forks source link

Flickering on 0.15.0-b1 #3837

Closed Plawasan closed 6 months ago

Plawasan commented 6 months ago

What happened?

After updating to the latest beta (0.15.0-b1) I see intermittent flickering on my 2D matrix clock. Downgrade to 0.14.2 resolves the issue.

To Reproduce Bug

Upgrade to latest beta, create a 2D segment (8x32), use the scrolling text preset with #HHMM as segment name

Expected Behavior

No flicker

Install Method

Binary from WLED.me

What version of WLED?

0.15.0-b1

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

Runnning on ESP32

Code of Conduct

Plawasan commented 6 months ago

https://github.com/Aircoookie/WLED/assets/73796046/95008b06-008e-4fbc-a2bc-3e597329f699

Screenshot_20240320_133643_Gallery.jpg

blazoncek commented 6 months ago

Please try erasing flash. Sometimes it helps.

botflakes commented 6 months ago

Please try erasing flash. Sometimes it helps.

Tried that, didn't solve the issue. Seems to be a bug within 0.15.0-b1. Rolling back to a stable release fixes this

blazoncek commented 6 months ago

Please try increasing flash speed from (default) 40MHz to 80MHz. You will need a special build or manual parameter in esptool. Be warned that not all flash chips can support 80MHz.

BTW I am assuming you have level shifters in place.

Plawasan commented 6 months ago

I need to crack the clock open to get to the ESP and flash it but in the meantime - no, I do not have a level shifter in place (the data lead is about 10cm long) however same as @botflakes - downgrading to 0.14.2 fixes the issue reliably

blazoncek commented 6 months ago

Nevertheless, the quality of the signal very much depends on the quality of the on-board PSU. 0.15. will consume more power than 0.14 and can introduce output level fluctuations - hence the recommendation for levelshifter. You can also try adding 10uF capacitor (or 1uF) to 3.3V line.

Plawasan commented 6 months ago

You can also try adding 10uF capacitor (or 1uF) to 3.3V line.

That I have... I will also try to put the latest build on an Athom controller and see if that makes any difference compared to my DIY ESP32 board

blazoncek commented 6 months ago

The other possibility is CPU starvation. CPU may not be able to cope with load and skip a strict timing needed for LEDs. I can see that on my test device with 6 usermods and 5 different outputs enabled. It flashes (occasionally) when reading temperature from Dallas sensor.

blazoncek commented 6 months ago

Try beta 2 posted on Discord and report.

Plawasan commented 6 months ago

Try beta 2 posted on Discord and report.

first 10 minutes look good - not a single flicker. Will keep an eye on it.

Plawasan commented 6 months ago

No issues for more than a week - closing as resolved (for me at least).