Repository navigation
Description
Board / MCU
ESP32-S3
LED Chipset
WS2812B / NeoPixel
FastLED Version
3.10.9
Arduino / PlatformIO version
Arduino3
Operating System
macOS
Description
I admittedly signed off on 3.10.8 when I was traveling and saw that it compiled without errors on Arduino4 ran without actually attaching a panel, but that was premature. Turns out we have a runtime problem and it exhibits even under Arduino3.
My specific target is yulc-hex in Nightdriver-Afterglow, which is an esp32-s3-n16r2 with 271 WS2812's, but I can repro this in a variety of targets. I could see that frames were being handed to FastLED.show() at 30fps, but there was no blinkage. I went back to Arduino3. No difference. I went back to FastLED 3.10.1. Worked great. I tried a variety of interim versions and it broke somewhere between 3.10.3 and 3.10.8. The smoking gun was that my reports were saying "Mem: 182512, LargestBlk: 139252, PSRAM Free: 1586824/2097152, LED FPS: 30 LED Bright: 0%, LED Watts: 1," That brightness is, of course, too low. I confirmed it was a sensible value in 3.10.1. That value is calculated by calculate_max_brightness_for_power_mW()
I was able to find a one-line change in my code that lets FastLED actually light up pixels. By default, our code calls
set_max_power_in_milliwatts(POWER_LIMIT_MW); // Set brightness limit
just after it calls addLeds<> and pinMode(...OUTPUT) (which is probably redundant)
If I remove that line, all is fine. We get blinkage.
I started to chase it up through setMaxPowerInMilliWatts(), but that's only the head of that monster with the hard work being down down in the power model code which quickly made my head hurt.
This probably wont' repro without real hardware and it's probable that you just don't have test coverage for this. We aren't calling any fance setPowrModel() or anything fancy. This is plain old "classic FastLED API" callers calling the classic templated addLeds<WS2812B, LED_PIN##blah ...>(). It's possible it's something in the S3 path, but I doubt it. It seems more likely that we're just the first snowflake to call set_max_power_in_milliwatts() and actually attaching a strip.
THanks for checking on this.
Steps to reproduce
Can be reproduced in Nightdriver-Afterglow by pinning the version to 3.10.8 or 9, running yulc-hexdemo and attaching a strip to GPIO1, which is a screw terminal on the YULC adapter.
I've confirmed this can be "fixed" by removing the # -DPOWER_LIMIT_MW=1000 ; Limit to 1 Watts (~.2 Amp at 5V) regulator in platformio.ini for that yulc target. Our yulc target is thus uniquely likely to trip over this.
I've checked the box for minimal repro case, but I'm building it inside another project, not standalone.
Minimal sketch
Serial / debug output
Checklist
- I have searched existing issues for duplicates
- I have tested with the latest FastLED release or git master
- I can reproduce this with a minimal sketch
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(power): keep strip lit when power budget is under the dark-curren…
fix(power): never dim the strip as the budget rises past the baseline (…
zackees commentedon Nov 8, 2026
Hi Robert, thanks again for the report. One follow-up you should know about before upgrading.
Since 3.10.3, the power limiter charges LED dark current, the draw each LED IC takes even when it is fully off, as a fixed baseline. Brightness cannot reduce it. The default is 5 mW per LED (1 mA at 5 V, which matches the SK6812/SK9822 datasheets; the WS2812B datasheet gives no figure). On your 271 LEDs that is about 1355 mW before a single pixel lights, plus the MCU's own draw. That already exceeds a 1000 mW budget. This is why you saw
Bright: 0%while 3.10.1 lit the strip: 3.10.1 ignored dark current and spent the whole budget on brightness.#5153 restored the old behaviour by going over the budget in that case. In #5180 we are making the budget a strict upper bound instead. When the budget can't be met, the strip is dark, and FastLED prints a warning once a second saying so. You have three options:
PowerModelRGB m = FastLED.getPowerModel(); m.dark_mW = 0; FastLED.setPowerModel(m);. Setting it to 0 gives back the 3.10.1 accounting.FastLED.setMcuPowerMilliWatts(...), or setFL_MCU_POWER_MWat build time. It is now compiled in per MCU family: 250 mW on ESP32-S3.Once #5180 lands, could you try it with option 2 and confirm the strip lights at your 1000 mW?
YinHuaPing commentedon Nov 9, 2026
Hi everyone, I’m Yin from Worldsemi. Thank you for improving the LED power model and for the detailed explanation of the fixed quiescent power consumption.
We noticed that the code comments mention a lack of quiescent current data for WS2811 and WS2812B. We would like to provide some manufacturer information for your reference when updating the documentation and model:
Our official upgrade notice also includes information on standby current and operating current:
https://www.world-semi.com/company-news/587.html
zackees commentedon Nov 9, 2026
@YinHuaPing can a pdf datasheet be provided? We will update and tune for the power profile of your latest ws2812 chipset.
zackees commentedon Nov 9, 2026
It may be appropriate then to consider the dark currents to be .1 mA
fix(power): make the budget a strict upper bound; per-MCU baseline, M…
robertlipe commentedon Nov 24, 2026
Thanx. This is indeed the issue. As a PSA to others, note there's a key difference in your prose and your committed code.
Three lines later:
So while #5153 may have intended to restore older behaviour, it just doesn't in this release. Maybe that was overruled in #5180. Since FL_LOG_LEVEL defaults to off, the fancy warnings never fired, either. (I probably can turn those on in my builds with copious flash.)
It's clear now that my default power limiter (firing 271 WS2812's in your face during development is a pain I'm sure you well know!) for this board was misguided. Despite there clearly being a unit of W in my symbol, I was thinking it was A.
This was the last piece (PR99/99, which lands Arduino4 plus this final bit) to mostly landing FastLED 3.10.10 in robertlipe/nightdriver-afterglow#104 - which includes a hack to compile 35MB less FastLED per build in my environment. (I need a LED library, not an movie decoder and asio clone and ...)
Now, off to the channels API.
Appreciate the help!