-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hello,
I hope I'm not duplicating here, I looked for a clear answer on this particular problem for a while now.
I'm using a ESP32C6-Mini-1 to control WS2812B on pin 16.
This is the repo I used for my tests, it's working with a lot of boards and configuration already : https://github.com/Golden-Geek/BLIP
Code for Ledstrip is there : https://github.com/Golden-Geek/BLIP/blob/main/src/Component/components/ledstrip/LedStripComponent.cpp
This firmware can switch between WiFi streaming (using ArtNet) to ESPNow (using an Olimex POE as a bridge)
At first glance it seems all ok, but I see erratic behaviours that I'll try to list :
- WiFi
- All leds on the same color : no flickering
- All leds black except led #X red : led #X+2 flickering red (this is true for any led, the next-next led will flicker)
- Same with another color : led #X+2 flickering this color
- All leds red except led #X blue : led #X+2 flickering blue
- Adding more leds with diffferent colors : all black with leds #X, #Y and #Z white > X+2, Y+2 and Z+2 flicker white
-ESPNow : no apparent problem. not tested for hours but it's very clear that it's more stable
I tried using I2S but got a lot of compilation errors that made me think it's not made for ESP32C6. Tried disabling ALLOW_INTERRUPT as well, no success.
I'm using this configuration in PlatformIO, as after many tries and hours of research, this is one of the only ones that seem to work with AsyncWebServer. Maybe there is another configuration that allows more recent platform and package version that already fixes the problem ?
platform = https://github.com/mnowak32/platform-espressif32.git#boards/seeed_xiao_esp32c6
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2
framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.2/esp32-arduino-libs-3.0.2.zip
framework = arduino
board = seeed_xiao_esp32c6
I can provide videos or other material if needed.
Also, asked to Gemini, here is the deep search result, where I got the hint of switching to ESPNow to check if it was related to WiFi :
https://g.co/gemini/share/9b4d780a7dbf
As a side note, I managed to have a non-flickering behaviour with the same tests using Adafruit NeoPixel (with RMT)
Thank you