I'm using an ESP8266 to control a short strip of WS2812 LEDs. I also want some way of remote Control so I'm looking into using a Web UI with the ESPAsyncWebServer library.

However using that Webserver makes the LEDs flicker so I tried disabling Interrupts


That does help a bit, the flickering is less frequent but now there's some color glitches aswell. All in all not usable.

So is there a way to get rid of all that flickering or is it just not possible to use the LEDs and a Webserver together when maintaining a high refresh rate?

  • might try websockets instead of http. the client code is about as simple and the "requests" tend to execute much faster without all the http overhead. you can also use a 2nd ESP to do web, talking to the LED ESP via serial, which is buffered and also low-impact.
    – dandavis
    Commented Mar 23, 2022 at 6:47
  • Alternatively upgrading to a dual-core ESP32 would remove the problem and give you a more capable chip into the bargain...
    – Majenko
    Commented Mar 23, 2022 at 10:50


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.