Repository navigation
Description
Problem description: same code works as expected on ESP32 & ESP32-S2 but on ESP32-C3 produce unexpected pixels flickering and other artifacts. Our project made for PIO and at that moment require newest SDK and some hacks to get working target ESP32-C3 on current VSCode + PIO version : https://github.com/DmytroKorniienko/FireLamp_JeeUI/tree/dev
target:
[env:esp32c3] ; 4mb without OTA
framework = arduino
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages =
;framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
; platform = espressif32
; platform_packages =
; toolchain-riscv-esp@file://d:\toolchains\riscv32-esp-elf ; https://github.com/espressif/crosstool-NG - toolchains releases
; framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git
; platformio/tool-esptoolpy @ ~1.30100
board = esp32dev ; board hack
;board = esp32-c3-devkitm-1
board_build.mcu = esp32c3
board_build.partitions = noota.csv
board_build.f_cpu = 160000000L
board_build.f_flash = 80000000L
; board_build.flash_mode = qio
board_build.arduino.ldscript = esp32c3_out.ld
build_type = debug
build_flags =
${extra32.build_flags}
-DLED_BUILTIN=3 ; 3,4,5
-DLAMP_DEBUG=1
-DEMBUI_DEBUG
;-DFASTLED_ALLOW_INTERRUPTS=1
;-DFASTLED_INTERRUPT_RETRY_COUNT=3
;-DINTERRUPT_THRESHOLD=0
; Logging level: 1 = error, 2 = warning, 3 = info, 4 = debug, 5 = verbose
;-DCORE_DEBUG_LEVEL=4
;-DCONFIG_ARDUHAL_LOG_COLORS=1
lib_deps =
;${env32.lib_deps}
https://github.com/plerup/espsoftwareserial.git
https://github.com/DmytroKorniienko/DFRobotDFPlayerMini
https://github.com/DmytroKorniienko/EmbUI.git#dev
https://github.com/FastLED/FastLED.git
monitor_filters = esp32_exception_decoder, default
extra_scripts = replace_fs.py
monitor_speed = 460800
upload_speed = 921600
; monitor_port = COM11
; upload_port = COM11
; monitor_port = COM17
; upload_port = COM17
monitor_rts = 0
monitor_dtr = 0
; monitor_rts = 1
; monitor_dtr = 1
but I think same issue may be reproducible on any other environment with ESP32-C3 and exchange over WiFi via web-sockets / UDP
Let me know if you need any additional information/testing at any ESP32/ESP32-xx or ESP8266 controllers.
Related discussion: https://www.reddit.com/r/FastLED/comments/qfbz79/esp32_s3_lets_see_if_i_can_make_it_work_with/hm75n6o/
Activity
sethtroisi commentedon Feb 17, 2022
I am having similar flickering, one note is it only appears for me when I have enabled (and used?) WiFi on the esp32.
If I comment out my WiFi code then it doesn't flicker.
mariusmotea commentedon Mar 2, 2022
Same issue with ESP32-C3, severe flickering using Arduino library.
jpswensen commentedon Mar 6, 2022
I just thought I would add on my recent experiences. I tested with both the latest esp-idf 4.4, with arduino-esp32 2.0.2, and the latest from Github for FASTLED. I am using the esp32-c3-devkitm-1 board and trying to control the built-in RGB led.
The strange behavior is that it seems as if only the very first call to FastLED.show() is actually taking effect. I am using the basic blink example (have tried in both ArduinoIDE and VSCode+PIO and have the same result). Whatever I set the initial color to works great, but every subsequent call to FastLED.show() doesn't change the color.
When I get home, I am going to try with and external strip, but don't have one with me now.
UPDATE1: And just to be sure, I decided to rule out that there was something wrong with my board, so I went and tried the example similar to blink with the Adafruit NeoPixel library and it is working. I would much prefer FastLED (some because of familiarity and me stupidly not making my LED code library agnostic), and because I like some of the other really nice features like better global brightness control, color corrections, etc.
planevina commentedon May 28, 2022
I have the same problem.
same code, work good with esp32-s2
flickering, artifacts ...and many problem with esp32-c3
s-light commentedon Jun 21, 2022
i also encounter this problem:
if i enable wifi i get kind of random flickering / colors.
if wifi is disabled it is working fine.
i have created two test-sketches:
minimal
with button to toggle wifi on / off
enviroment
arduino IDE 1.8.19
os: kubuntu 21.10
libraries:
StormYudi commentedon Jul 24, 2022
Same problem here.(ESP32-C3)
kitecraft commentedon Sep 30, 2022
Same problem as well. ESP32-C3 FastLED flicker when WiFi enabled.
scottlawsonbc commentedon Dec 28, 2022
Also having the same issue with same chip mentioned ESP32-C3.
I was able to find a workaround by switching to the Adafruit Neopixel library. I am able to control multiple LED strips without flicker and with WiFi enabled using
Adafruit NeoPixel @ 1.10.7. The flickering problem only seems to happen with FastLED.TechOverflow commentedon Feb 27, 2023
Can confirm the above, didn't want to create a new issue.
ESP32-C3-WROOM-02
Arduino IDE and FastLED latest versions.
Whenever WiFi is on, there is severe flickering. When I switch to Adafruit Neopixel library, the problem goes away.
rexshamhk commentedon Mar 15, 2023
ESP32-S3-WROOM-1 also having the same issue.
Actually FastLED, Adafruit's Neopixel, NeoPixel Bus libraries are having the same issues.
If I use RMT / bitbanging method to drive LEDs, it always fails to light up leds correctly if I use wifi.
If I am not using wifi, it works well.
Monacrylic commentedon Apr 23, 2023
I'm using an M5Stack C3 Mate. Exact same problem with both libraries, FASTLED as well as Adafruit Neopixel. Both work without WiFi.
TechOverflow commentedon Apr 23, 2023
I have been using Adafruit successfully ever since. My lights have 60 and 180 LEDs and do not flicker. They are on 24/7 and send updates via wifi every 10 minutes.
Monacrylic commentedon Apr 23, 2023
My bad, just checked again, I was using a PIN involved in serial connection. Changed the data pin, Adafruit Neopixel works perfectly. Thanks!
azuresp commentedon May 16, 2023
I'm seeing the same problem with an Adafruit Feather ESP32-S3. I observe seeing flakiness when I turn on either the WiFi or the battery voltage sensor.
robertkirk13 commentedon Jul 13, 2023
If you are seeing flicker only with WiFi/BLE on (especially with both on), make sure you are using a level shifter. Technically 3.3V is already out of spec for most LEDs, but they seem to work fine most of the time. Turning on WiFi/BLE likely causes very slight voltage droop on the GPIOs which sends it just out of the range of working. Make sure the chip you use is fast enough, though; I used an sn74hct buffer/driver.
greycoding commentedon Jul 15, 2023
I have an Adafruit QT Py ESP32 C3 and can confirm that with WiFi enabled LEDs flicker when I use FastLED.
When I use the NeoPixel library it does not flicker.
I tested the behavior with three scenarios:
In all three scenarios the LEDs flickered with the FastLED library when I turned on WIFI. On the other hand, when I use the NeoPixel Library, the LEDs do not flicker.
Strangely enough, the LEDs with the FastLED library also flickered when I enabled WiFi only once at the beginning and disabled it right after.
L3-N0X commentedon Nov 26, 2023
Still experiencing this issue
ESP32-C3 (supermini from Aliexpress)
WS2812B
toybuilder commentedon Nov 26, 2023
This is only tangentially related, but I had a project on ESP32 (non-C3) that was using Arduino ESP support with FastLED for a Bluetooth (not WiFi) project. The project worked for years and then immediately failed when I made some changes to adjust pixel locations.
After a bit of digging around, I discovered that the particular version of Arduino ESP mattered -- the newer version that I used since the original deployment resulted in some kind of memory corruption that would cause the project to occasionally crash and often resulted in weird output that could be described as flickering and artifacts.
In my case, I had to back-rev all the way back to esp32 1.0.6 to get it to work reliably.
If some people are having good success with ESP32-C3 and others are not, it might be worth comparing the ESP BSP versions.
old-Jerry commentedon Dec 26, 2023
When I ported the awtirx2.0 project to xiao eps32-c3, the display flickered abnormally when I turned on the wifi, and I also failed to turn off the wifi after connecting it
Do you have an explanation for the solution?
jekader commentedon Jan 16, 2024
I'm hitting the same issue while porting PixelIt to ESP32-C3, to me it looks liks like the timings are off. Looking at previous reports suggesting this is linked to WiFi and given that the C3 is a single-core MCU, there might be hardware interrupts messing things up and causing flickering.
I've seen a patch addressing this for the 8266 which the C3 is a replacement for:
projects-land@ae4c696
Maybe we can come up with something similar for C3 to see if it solves the issue, especially given that other LED libraries don't seem to be affected?
bradrblack commentedon Jan 20, 2024
Having same issue here with ESP32-C3 "super mini" boards and various 8x8 WS2812B matrices. Activated pixels seem to randomly turn to max bright white and flicker. Would love to see a fix. For another project, I moved from FastLED to Adafruit_NeoPixel/NeoMatrix and the problem was solved (so I don't think it is strictly a HW issue) but would prefer not to re-port multiple projects.
bradrblack commentedon Jan 21, 2024
It seems my issue with flickering was fixed with #1515 which has been merged into master but not part of the 3.6.0 release.
jekader commentedon Jan 21, 2024
Wow, @bradrblack thanks for the info! I can confirm that FastLED from master works properly on my esp32c3 supermini!
kokospalme commentedon Apr 23, 2025
#1515 did Not help in my case. I already tried using Adafruirts Neopixel library: FastLED did the math, and then I copied about 230px to the neopixel array and send it out to
PIN 10. But the issue still exists.gpio_matrix_outwas already at 0x80. I use FastLED within a library which get it's data through setter and getter.An interesting point is, that the flickering increases with higher brightness. (Yes, I have a a
goodbroken power supply)Does anyone still facing this issue?
Edit: the power supply was good, but got faulty over time. That was the problem.
zackees commentedon Feb 3, 2026
I believe this is fixed now. Closing.