Skip to content

Flickering when using the ObjectFLED driver #1886

Closed

Description

@lpaolini

This issue is related to #1818.

One of my WS2812B LED strips, probably older than the other ones I have, does not work well when using the ObjectFLED driver.

I ran a few tests and this is the result:

@zackees Is FastLED initializing ObjectFLED with custom timings?

Activity

  1. zackees commented on Feb 11, 2025

    @zackees
    Member

    This issue is related to #1818.

    One of my WS2812B LED strips, probably older than the other ones I have, does not work well when using the ObjectFLED driver.

    I ran a few tests and this is the result:

    @zackees Is FastLED initializing ObjectFLED with custom timings?

    ObjectFLED has its own timings. try setting the overclock factor to 1.1 or 0.9, one if those should fix it.

    This reason is the time for the on value needs adjusting. Overclocking or under kicking will make it slide into specification.

  2. zackees commented on Feb 12, 2025

    @zackees
    Member

    @KurtMF

    I know we had talked about timings being passed from fastled to ObjectFLED before.

    Do you have any advice on how I should proceed on this? Right now I'm telling users to fix the timing via overclocking hack.

  3. lpaolini commented on Feb 13, 2025

    @lpaolini
    Author

    What is the reason for FastLED to customize ObjectFLED timings in the zero overclock case?
    Also, do FastLED controllers map to individual ObjectFLED instances? If so, wouldn't it be possible to specify overclock when the controller is instantiated?

    FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS, overclock_factor);
    
  4. zackees commented on Mar 3, 2025

    @zackees
    Member

    What is the reason for FastLED to customize ObjectFLED timings in the zero overclock case? Also, do FastLED controllers map to individual ObjectFLED instances? If so, wouldn't it be possible to specify overclock when the controller is instantiated?

    FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS, overclock_factor);
    

    ObjectFLED wants to operate as a block renderer, sampling from NxM rectangular buffer data for N strips of length M.

    FastLED provides API where under the hood, this rectangular buffer is generated and managed on your behalf.

    What is the reason for FastLED to customize ObjectFLED timings in the zero overclock case?

    We want ObjectFLED to respond to the overclock case. So it's always passed in so that if user defines the overlock value, it automatically get's set in the ObjectFLED.

    It's a global value though, and all instances are set to the global overclock value set for ObjectFLED.

    Are you looking for separate overclock values for multiple ObjectFLED instantiations to support the non-2812 chipsets?

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