Open Joshfindit opened 2 years ago
No need for -D WLED_USE_ANALOG_LEDS
compile time options since 0.12
I do not see the same behavior.
Are the APA102 or the PWM white LEDs glitching? It is very possible that if your PWM white light has a significant current, it could cause interference in the data or clock channel of the digital LEDs (although WS281x types are typically more susceptible to this). If possible, make sure the PWMed wire does not run in parallel to the APA102 data and clock wires. Are you using a level shifter?
It's the PWM White that's glitching.
It happens on:
Each has similar wiring:
+
connected to GPIO22-
connected to GND on the board+
connected to GPIO5-
connected to GND on the boardI did try various resistor values on PWM LED -
while prototyping, but they made no difference. Currently it has 100ohm.
Since I tested with a single LED (and without any. See below), I don't think PWM current would be a factor.
No logic shifter. I know it's not ideal but I'm working at a very small scale (1-8 APA102s) and most boards show no problems. This is the first time I've combined APA102 and PWM LED on the same board however.
Points of interest:
Sounds like you might have a powering issue. What kind of PWM LEDs are you using? If it needs too much current, the ESP might not be able to power it directly and you'd need a transistor/MOSFET.
For ESP8266 specifically, you can also try using GPIO13 for APA102 DATA and 14 for CLK. Those are the hardware pins, which might reduce load on the CPU and make the PWM output more reliable.
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!
Sounds like you might have a powering issue. What kind of PWM LEDs are you using?
The LED being used is a 5mm Warm White LED. 20mA of draw at full brightness, and a typical forward voltage of 3.2V. I’ve used these LEDs for testing ever since I started working with LEDs a couple years ago, and I’ve never had an issue driving them from a single PWM pin. Do note as well that I put various resistors on that single LED and it made no difference to the pattern of the flickers.
I’m open to the idea of the data lines having interference though I don’t have the skills to make that determination. It would be surprising as I’m using what is now a battle-tested design (D1 Mini v3.0.0 and the ESP32 mini).
I’ve recently skilled up and have a logic analyzer. Is there anything I could do to get hard data on what’s going on so it has a chance of leading to a solution?
What happened?
When using analog PWM signals from the ESP32, the board is fine for a while but within 5min to 2 hours the LEDs 'glitch' and don't recover until a reboot (or sometimes turning the light off/on through the interface)
Glitching manifests as one or more of:
To Reproduce Bug
-D WLED_USE_ANALOG_LEDS
(I did this inplatformio.ini
by adding the flag under 102:build_flags =
)LED Preferences
:PWM White
(Warm white LED)true
Breathe
orHeartbeat
)Expected Behavior
Clean light, and effects that function as defined
Install Method
Self-Compiled
What version of WLED?
WLED 0.13.0-b7 (master)
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
I'm using the WeMos D1 Mini ESP32 (v3.0.0)
Possibly related to https://github.com/Aircoookie/WLED/issues/1347 (I started another project with a fresh board and quickly ran in to the same issue)
Code of Conduct