Skip to content

Inconsistent colors #580

Closed
Closed

Description

@lexam79

Hi all,

I'm writing here too (I've also posted in BRUH's repository, whose project I'm trying to implement), in case someone is able to provide any useful feedback, as I'm starting to go crazy with this. So I built a project, with a WS8211 strip I got off of eBay and a Wemos D1 mini. The problem I'm seeing is that it seems as if leds get "out of sync", i.e. I turn it on (solid color) all leds are on. I turn it off, some leds stay on (at the end of the strip usually, maybe even switch to a different color - usually green). I turn it on, then off again, a different number of leds stay on, possibly with a different color... It's completely inconsistent. Sometimes, if I turn on/off several times, I might get all leds to turn off.

I've tried several things to sort it out, both hardware and software related, to no avail.

Can anyone shed some light as to what the problem might be?

Thank you

Activity

  1. yesyesuk commented on Mar 12, 2018

    @yesyesuk

    What exactly are you turning off and on?

  2. lexam79 commented on Mar 12, 2018

    @lexam79
    Author

    The LED strip. I'm turning the LED strip on/off, via MQTT. This is the project I'm trying to implement: https://github.com/bruhautomation/ESP-MQTT-JSON-Digital-LEDs

  3. yesyesuk commented on Mar 12, 2018

    @yesyesuk

    ah, OK. I thought you mean you turn power off and on.
    How long is the LED strip?

  4. lexam79 commented on Mar 12, 2018

    @lexam79
    Author

    It's 4m, with 39 drivers and 3 leds per driver. The power supply is 8A (max consumption of the strip is 36W, according to seller) and I've even injected power in 3 places along the strip and added a 1000uF capacitor next to the Power Supply.

  5. yesyesuk commented on Mar 12, 2018

    @yesyesuk

    hmm, ok. injecting power along the strip is what I was trying to get at. ;-)
    Then I'm out of ideas, I'm afraid...

  6. lexam79 commented on Mar 12, 2018

    @lexam79
    Author

    I don't think it's power-related anyway, as it's stable. Inconsistent, but stable. I haven't seen any flickering, random turn offs or anything similar.

  7. yesyesuk commented on Mar 12, 2018

    @yesyesuk

    And it only happens when you turn the LEDs off (i.e. set them all to black)? Not when setting any other colour?

  8. lexam79 commented on Mar 12, 2018

    @lexam79
    Author

    No, it also happens when I switch colors, change brightness etc. I just described the simplest issue, that of turning on-off.

  9. focalintent commented on Mar 12, 2018

    @focalintent
    Contributor

    You might be running into interrupt related problems - try adjusting the retry count, also see if turning off interrupts (just as a test) helps - https://github.com/FastLED/FastLED/wiki/Interrupt-problems

  10. lexam79 commented on Mar 13, 2018

    @lexam79
    Author

    Hi focalintent, it seems that using #define FASTLED_INTERRUPT_RETRY_COUNT 1 did the trick. I had tried that, as well as #define FASTLED_ALLOW_INTERRUPTS 0 earlier, when I was trying to drive the strip directly off of the Wemos D1 (@ 3.3v), but did not try it again, after I placed a voltage shifter between the Wemos and the strip. Surprisingly, the behavior I was getting without the shifter (with or without the interrupt-related mods above) was identical to what I was getting after adding the shifter, but without the #define FASTLED_INTERRUPT_RETRY_COUNT 1. Anyway, it seems it's working now, so I'm happy and I'll live to go crazy a bit later... Thanks!

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