Skip to content

Random white flashes - ESP8266 #64

Closed

Description

@kayrozen

Since 0.8, when i select a FastLED pattern and palette, leds sometime flashes 1 frame white.

I can reproduce it on a Wemos D1 and a NodeMCU.

Activity

  1. Aircoookie commented on Oct 22, 2018

    @Aircoookie
    Member

    Hi, does it only happen while you are selecting a new effect/palette or occasionally at random while the effect is active? Can you tell me a combination of effect and palette where the issue happens?

  2. kayrozen commented on Oct 22, 2018

    @kayrozen
    ContributorAuthor

    occasionally at random while the effect is active. It's Noise 16-1.

  3. Aircoookie commented on Oct 24, 2018

    @Aircoookie
    Member

    I've finally seen it today. However it's very rare (only happened twice with 2 hours in between) and I couldn't figure out the reason yet. There are two main potential causes I can think of: First one is an overflow of a helper variable that causes undefined behavior for a frame (during wrap-around).
    Second is that the ESP tries to update the LEDs before the previous update cycle was completed. This is likely mostly on larger strips since the fixed 50fps refresh rate on FastLED effects is quite fast. However, if this was true, the flashes should happen more frequently on larger strips - which I was unable to reproduce.

  4. kayrozen commented on Oct 24, 2018

    @kayrozen
    ContributorAuthor

    I think the second hypothesis is possible because it's happening only on my 100+ led clocks. I have one with only 26 and it does not flash like the others. How can i help you further investigate ?

  5. Aircoookie commented on Oct 25, 2018

    @Aircoookie
    Member

    If you want to help investigating, try if decreasing the FastLED fx refresh rate helps. When you scroll all the way down in WS2812FX.cpp you can see the return 20; at the end of each FastLED effect function. This means the LEDs are updated every 20ms - 50 times per second. You could try and increase the return value of one of the effects (like Noise 16 1), and see if the issue goes away when you change it to 33 (30fps) or 50 (20fps). This will make the animation slower, but for testing that doesn't matter. I remember I once had a LOT of white flashes when i implemented the fade transistions - it was because I accidentally updated the LEDs twice in a row. How often do they happen in your case? Every few seconds or only a few times per hour?

    Thank you for offering to help me, since my longest testing strip only has 84 LEDs!

  6. Aircoookie commented on Oct 25, 2019

    @Aircoookie
    Member

    It seems like this is #230 :)

  7. added a commit that references this issue on Apr 8, 2020
  8. added a commit that references this issue on Aug 18, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions