r/FastLED • u/awardblvr • Jun 21 '22
Support Is anyone Successful FastLED + ESP32-C3-DevKitM-1 + WiFI OTA programming + WS2811
Is anyone able to get these four elements working?
Under MacOS , Arduino IDE, FastLED 3.5.0, WS 2811, WS2812. WiFi
- FastLED WS2812's work, (when WiFi OTA is commented out), and
- WiFi works.
- But FastLED does NOT work (just goes off...,No messaging, nothing when I have WiFi enabled).
Using GPIO 18 for FastLED.
Using these libraries:
#include <stdio.h>
#include <WiFi.h>
#include <ArduinoOTA.h>
#include <FastLED.h>I know y'all want a code posting.. But, I am just wondering if ANYONE knows that this combination can be made to work?
BTW.. Process of elimination:
- Wiring OK (independently each works),
- Code kinda-ok (each works independently) (same sketch, but WiFi commented-out to make FAST LED work.
Are there special considerations, configurations needed with one or the other to make them work together? Is the ESP32-C3-DevKitM-1 under-powered (cpu-wise) to do both?
2
Upvotes
2
u/Netmindz Jun 22 '22
I have used this combo with regular ESP32, not tired with C3
1
u/PiezoelectricityOne Jun 21 '22
I've seen many people using both esp and fastleds but haven't tried it myself. could you share your code/schematics for us to take a look?
Are you providing an independent power source for the LEDs? The built-in voltage regulator may not be enough and can cause your esp to perform poorly. Also try to power esp from a USB power adapter, not a computer.
Are you using analog reads linked to your led action? Maybe you're enabling those ADC reads when you use your leds. Adc readings can kill the wifi, the solution is using delay (or a non obstructive "delay" method) when using them, to give it some time for the ADC to switch to wifi and estabilize. Some people could get a workaround in spdif by disabling wifi powersave mode, but I don't know if that works in Arduino.
1
u/Zouden Jun 22 '22
To be clear is your problem specifically with the ESP32-C3?
1
u/olderaccount Jun 21 '22
I know some OTA libraries don't play well with FastLED.
I think I tried 2 or 3 before I found one that would compile when FastLED was included.
But I'm away from home and don't know which one I used.
1
u/d_azmann Jun 22 '22
Sounds like a watchdog timer is angry. There's usually a WDT Reset error in the serial output, but the fact that it's related to wifi has me suspicious
1
u/s-light Stefan Sep 02 '22 edited Sep 02 '22
i also did not get ESP32 C3 + FastLED & WS2811 + WIFI to work. i documented my try at this issue: ESP32-C3 output stability issue
another related issue is at https://github.com/FastLED/FastLED/issues/1349
1
u/Jackxwb Sep 22 '22
My ESP32C3 works normally when the wifi is not connected, but it seems to be interfered by the wifi after the wifi is connected. The LED is flashing and the color is always changing