Skip to content

Too slow data rate for dotstar #1443

Closed
Closed

Description

@debojitk

Hi I am trying to build a POV with dot star strip that is made of SK9822on esp8266 platform. With default settings (80 mhz) for a strip of 72 leds FastLED.show takes around 2000 us. Is this normal? Strangely on Arduino I get the transfer rate as 980 us. I guess FastLED can now use hspi, and the speed should ideally be way faster. It looks like SPI clock rate is around 1 mhz. I used the following calculation to get the data date -
72 leds * 4 byte per led = 288 bytes + 8 bytes leading and trailing = 296 * 8 = 2368 bits. If the SPI speed is 40 mhz the should be 2368/40 mhz = 60 us. Where I am getting wrong.
On the other hand I tried using adafruit dotstar lib that gave me 3426 us to render the same strip. I am awestruck looking at the results.
Please help me out here.
Thanks,
Debojit

Activity

  1. yesyesuk commented on Nov 5, 2022

    @yesyesuk

    The SK and WS LEDs have a fixed clock/data rate because they don't have a separate clock input. So you can't just send the data faster. (though, I don't know why the Arduino would need less than half the time).

    For higher data rates you would need to use LEDs with clock input like the APA10x LEDs.

  2. marmilicious commented on Nov 5, 2022

    @marmilicious
    Contributor

    @yesyesuk SK9822 is similar to/a clone of APA102C and uses a clock line.

    @debojitk Have you experimented with changing the data rate? It can be set in the addLeds line, such as:
    FastLED.addLeds<APA102, dataPin, clockPin, RGB, DATA_RATE_MHZ(12)>(leds, NUM_LEDS);

    For more general discussion, help, and how-to, please use the FastLED Reddit group here: https://www.reddit.com/r/FastLED
    We use github "issues" here mostly just for bugs or improvements in the library itself.

  3. debojitk commented on Nov 6, 2022

    @debojitk
    Author

    @marmilicious Thanks for your reply. I ran some tests and found some results as given below:
    image
    image
    Looks like changing the data rate does not have proportional speed change.

  4. yesyesuk commented on Nov 6, 2022

    @yesyesuk

    @yesyesuk SK9822 is similar to/a clone of APA102C and uses a clock line.

    Oh, sorry, I confused them with the SK6822 that I used before.

  5. samguyer commented on Nov 25, 2022

    @samguyer
    Contributor

    @debojitk Do you want us to look into this issue? Is there more to do here?

  6. added
    area: drivers
    status: stale
    status: triage
    on Apr 16, 2026
  7. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    This issue was closed after 30 additional days without activity. If it is still relevant, please comment with current reproduction details or other actionable information and it can be reopened.

  8. zackees commented on Sep 3, 2026

    @zackees
    Member

    Reopening: this issue was closed automatically by a stale-bot run, not by a maintainer decision. That auto-close behavior was a mistake and has been disabled — FastLED issues will no longer be closed for inactivity. Apologies for the noise.

  9. reopened this on Sep 3, 2026
  10. removed
    status: stale
    on Sep 3, 2026
  11. zackees commented on Oct 31, 2026

    @zackees
    Member

    @debojitk this should now be fixed on master, as long as the strip is wired to the ESP8266 hardware SPI pads: data on GPIO13 (D7) and clock on GPIO14 (D5).

    For your strip: 72 LEDs × 4 bytes plus start/end frames is ≈296 bytes, or 2368 bits. That is about 395 µs on the wire at the default 6 MHz, and ~60 µs at DATA_RATE_MHZ(40). FastLED adds roughly 250 µs of fixed cost per show(). Expect about 0.3–0.65 ms instead of 2 ms.

    If your strip is on other pins, it still uses the software bit-bang. That is now tracked as an implementation issue in #4966, with a measured baseline.

    Closing this. If you still see ~2 ms on GPIO13/14 with current master, comment with your addLeds line and it will be reopened.

  12. moved this from Triage to Done in FastLED Trackeron Oct 31, 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

    area: driversstatus: triage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions