Skip to content

FastLED Not working with New Board Manager 2.0.0 #1300

Closed

Description

@Jpipe001

I am working on an esp32 Dev Module (Wroom-32) with Arduino IDE 1.8.16 with the latest version of Board Manger 2.0.0.
FastLED 3.4.0 does not compile correctly and LEDs don't work.
My solution is to go back to previous version of Board Manger 1.0.6.
This now works.

Board_Manager

Activity

  1. podaen commented on Sep 28, 2021

    @podaen

    Are You also using neopixel and fastled together? If yes which versions do have installed? I have rolleback my IDF like you did to 1.0.6... but it doesn't work for me.

  2. Jpipe001 commented on Sep 28, 2021

    @Jpipe001
    Author

    Actually, although I rolled back the board manager and got the Fastled working with WS2812 leds. I still seem to be having issues. I am just using Fastled (3.4.0) and not Adafruit Neopixels. These are my libraries:

    #include <Arduino.h>
    #include <FastLED.h>
    #include <WiFi.h>
    #include <WiFiMulti.h>
    WiFiMulti wifiMulti;
    #include <HTTPClient.h>
    #include <WiFiClientSecure.h>
    #include "time.h"
    #include "ESPmDNS.h"

    I am pretty sure that the problem is in the Fastled Library and this issue needs to be looked into.

  3. ATLTVHEAD commented on Sep 28, 2021

    @ATLTVHEAD

    I'm having similar problems. When you say the board manager are you referring to the Esp32 package within the Arduino Boards Manager, or the Arduino Boards Manager itself. If that is the case, how does one do that?

    Sorry for all the questions!

  4. Jpipe001 commented on Sep 28, 2021

    @Jpipe001
    Author

    A picture speaks 1000 words:
    BoardManager

    Click "Boards Manager"
    Then in "Filter your Search" Type "esp32"
    Select "Version" and Click "Install"

    Additional Comment:
    ALSO Beware of "Power Usage - Brown Outs".
    My computer USB Voltage / Power is limited, so when using Wi-Fi and Leds (60) together. I can use up to 190 milliamps which may pull the voltage down to below ESP32 minimum limit.
    Solution: Use "Thick and Short USB cable", not the cheap ones. Or power from Cell phone charger with plenty of power capacity.
    Reset the FastLed BRIGHTNESS of the Leds to minimum acceptable amount, mine are set to 20 to reduce power usage.

  5. ATLTVHEAD commented on Sep 28, 2021

    @ATLTVHEAD

    Thank you so much! @Jpipe001

  6. podaen commented on Sep 28, 2021

    @podaen

    It is a bit strang for me, because I had it working on IDF 2.0.0 but I had neopixel also running and I had to downgrade it, Soo I looked to use the newest versions of the librarys. Now I got IDF 1.0.6 and not the lastest neopixel. (see my topic) Fastled is the newest.

  7. Jpipe001 commented on Sep 28, 2021

    @Jpipe001
    Author

    Hope that helped.

    What is "IDF"? Do you mean IDE.
    "Integrated Development Environment (IDE) can be defined as software that gives its users an environment for performing programming, along with development as well as testing and debugging the application. Instead of doing different steps for making a fully working executable program, Integrated Development Environment comes as a package with all tools required."

    What version of FastLED library are you using? I use fastLED version 3.4.0 (latest).

    I am not sure what "IDF 2.0.0" and "IDF 1.0.6" you are referring to are. I assume you are referring to the Board Manager for the esp32. 1.0.6 is the older version (as my first post).

    I am using the Arduino IDE version 1.8.16 (latest) with fastLED Library, version 3.4.0 (latest), but this does not seem compatible with new Board Manager, version 2.0.0, so I use the older Board Manager version 1.0.6. as described above.

  8. podaen commented on Sep 28, 2021

    @podaen

    Like I said, I used the all latest... except the Neopixel library, and it worked for me. Note, that I am not yet implemented the Wi-Fi for now. You need a task manager to accomplish that.

  9. podaen commented on Sep 28, 2021

    @podaen

    Quot: You need a task manager to accomplish Wi-Fi.

    At least that is what I read on the internet. But I had a project on the SDK 1.0.6 running without taskmanager.

  10. alorbach commented on Sep 29, 2021

    @alorbach
    Contributor

    I am experiencing very strange problems with the default RMT driver on new SDK 2.0.0
    Sometimes it works, sometimes after rebuild LEDs do not respond - FastLED.Show calls work . but performance appears to be slower. When it works I have like 100 LED FPS and when the problem appears, its about 50 FPS.

    I even had crashes which disappeared after I switched to FastLED.Show()

    Somwething is not right.

  11. alorbach commented on Sep 30, 2021

    @alorbach
    Contributor

    So I got FastLED to work again but with I2S driver!

    define FASTLED_ESP32_I2S true

    However the I2S driver does random flickering on not controlled LEDs, which might be a problem. I would more like to use the RMT driver again which was working flawless in 1.0.6 but not anymore in 2.0.0 which means there must be a bug somewhere.

  12. podaen commented on Sep 30, 2021

    @podaen

    Did you unregistered the RMT?

  13. alorbach commented on Sep 30, 2021

    @alorbach
    Contributor

    Did you unregistered the RMT?

    How? Btw. RMT driver did work for some time and then it stopped working again while I was improving unrelated code.

  14. alorbach commented on Sep 30, 2021

    @alorbach
    Contributor
  15. alorbach commented on Oct 13, 2021

    @alorbach
    Contributor

    Any solution to the RMT Driver?
    The I2S Driver is not useable due to massive flickering.

  16. alorbach commented on Oct 15, 2021

    @alorbach
    Contributor

    I think I found the root cause of this problem.
    See PR #1308
    I don't know why it wasn't happening on 1.0.6, all memory was properly initialized to 0 after reboot?

    Since I applied this fix, it RMT driver has been working for me with 2.0.0

  17. urish commented on Oct 20, 2021

    @urish
    Contributor

    I don't know why it wasn't happening on 1.0.6, all memory was properly initialized to 0 after reboot?

    As far as I can tell, the rmt_tx variable lives on the stack, so it just gets whatever value that was there before.

    A possible solution (which should also be future-proof) would probably be to initialize the variable when declaring it, e.g.

    rmt_config_t rmt_tx = {}:
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