Skip to content

3.10.9 on ESP32-S3 lights no pixels if set_max_power_in_milliwatts(1000) is called at startup #5139

Closed

Description

@robertlipe

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

Activity

  1. added
    status: triage
    type: bug
    on Nov 7, 2026
  2. added
    sanitized
    on Nov 7, 2026
  3. moved this from Triage to Done in FastLED Trackeron Nov 8, 2026
  4. added 2 commits that reference this issue on Nov 8, 2026
    7d54ebd
    05d9367
  5. zackees commented on Nov 8, 2026

    @zackees
    Member

    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:

    1. Raise the budget to cover the real draw. That is probably the honest number for 271 LEDs.
    2. If your measured dark current is lower, set it on the power model: PowerModelRGB m = FastLED.getPowerModel(); m.dark_mW = 0; FastLED.setPowerModel(m);. Setting it to 0 gives back the 3.10.1 accounting.
    3. Override the MCU baseline with FastLED.setMcuPowerMilliWatts(...), or set FL_MCU_POWER_MW at 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?

  6. YinHuaPing commented on Nov 9, 2026

    @YinHuaPing

    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:

    • WS2811: In 5 V applications, the quiescent current is approximately 600 µA, corresponding to approximately 3 mW per LED. Applications using higher supply voltages require separate clarification of the power supply arrangement and measurement conditions.
    • WS2812B-V6: The quiescent current is less than 1 µA, corresponding to less than 0.005 mW per LED at a 5 V supply. This specification applies specifically to the V6 version and should not be generalized to all earlier versions of WS2812B.

    Our official upgrade notice also includes information on standby current and operating current:

    https://www.world-semi.com/company-news/587.html

  7. added
    sanitized
    and removed
    sanitized
    on Nov 9, 2026
  8. zackees commented on Nov 9, 2026

    @zackees
    Member

    @YinHuaPing can a pdf datasheet be provided? We will update and tune for the power profile of your latest ws2812 chipset.

  9. zackees commented on Nov 9, 2026

    @zackees
    Member

    It may be appropriate then to consider the dark currents to be .1 mA

  10. robertlipe commented on Nov 24, 2026

    @robertlipe
    ContributorAuthor

    Thanx. This is indeed the issue. As a PSA to others, note there's a key difference in your prose and your committed code.

    "...so they get the classic answer back rather than a dark strip (#5139: 1 W on 271 LEDs lit nothing from 3.10.6)."

    Three lines later:

        if (max_power_mW <= fixed_mW) {
            FL_WARN_EVERY(1000, ...);
            return 0; // Blanks anyway!
        }
    

    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!

  11. added
    sanitized
    and removed
    sanitized
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitizedstatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions