NeoPixelBus icon indicating copy to clipboard operation
NeoPixelBus copied to clipboard

HARDWARE RMT ESP32 support...

Open sticilface opened this issue 9 years ago • 86 comments

You probably knew this would come.... :) ESP32 support

any chance?

sticilface avatar Jan 10 '17 10:01 sticilface

I haven't received my Esp32 yet; but it is on the list.

Makuna avatar Jan 10 '17 17:01 Makuna

:) I just ordered mine from someone in london. not cheap, but same as getting it from china!

sticilface avatar Jan 10 '17 21:01 sticilface

so much RAM!

sticilface avatar Jan 10 '17 21:01 sticilface

It's been a month, so just checking, I'd really appreciate if this library would work with esp32 arduino port, or better esp-idf itself!

AdySan avatar Feb 11 '17 21:02 AdySan

Actively working on this now.

Makuna avatar Apr 05 '17 20:04 Makuna

Yay!

AdySan avatar Apr 05 '17 20:04 AdySan

https://github.com/Makuna/NeoPixelBus/pull/167 This adds bitbang method as the default, which can support pins below 32. Hardware support is next

Makuna avatar Apr 06 '17 03:04 Makuna

Do you know yet which pin it will be on?

Snigelson avatar May 03 '17 13:05 Snigelson

Hardware support will be able to also work on pins below 32. There are at least two outstanding issues on the esp32 core iot libraries that need to be addressed before I can publish the hardware support; otherwise the "shared" RMT hardware can only be used by one system at a time (NeoPixel, IR receive, IR transmit, only one at a time, etc).

Current work is waiting on the following two Esp32 IOF issues. https://github.com/espressif/esp-idf/issues/514 https://github.com/espressif/esp-idf/issues/517

Makuna avatar May 03 '17 15:05 Makuna

good to hear you are working on it ! Realy would like to see the ESP32 do the Neopixel while receiving data over wifi

Buffalchill avatar May 11 '17 11:05 Buffalchill

@Buffalchill Have you tried the current Esp32 support while doing WiFi? Theoretically it should work as the Esp32 is dual core. Its just going to take a lot of the CPU resources.

Makuna avatar May 11 '17 16:05 Makuna

@Makuna since yesterday i am trying out the ESP8266 with your WS2812B driver. It seems to work better than the Neopixel.h Thumbs up realy good work 👍

*edit: i had an older version of the libraray. i will check out the ESP32 asap. Tanks a lot for sharing this lib !!!

Buffalchill avatar May 12 '17 08:05 Buffalchill

@Buffalchill Standard data needed: What device/board are you selecting? What version of NeoPixelBus library is installed? Are you using the Arduino IDE or something else? What version is the IDE?

Makuna avatar May 12 '17 08:05 Makuna

I just tried the lib (=master) with my ESP32 devboard and is running fine

Jorgen-VikingGod avatar May 12 '17 08:05 Jorgen-VikingGod

Hi! I had an older Lib. now it runs. But with the ESP8266 my rainbow fader runs well, with the ESP32 it is fading but also blinking pretty strange :-(

edit: I added a delay(2); after I call the strip.show routine... then it stoped flickering...

I guess the WS2812b need more time inbetween updating the pixels ? 2ms are fine now

Buffalchill avatar May 12 '17 08:05 Buffalchill

@Buffalchill did you connect it directly on GPIO or through level shifter? To get stable signals it is always better to serve 5V data line. And of course a 100-220 Ohm resistor is also a good idea as "low-pass" filter to cut the noise.

Jorgen-VikingGod avatar May 12 '17 13:05 Jorgen-VikingGod

I'm also having some problems with the ESP32. I'm using a NeoPixel Jewel, and the 4th led is blinking green, with all the example sketches. I've tried with a level shifter but still no luck. Also adding the delay didn't resolved the problem

edit: i've also tried the adafruit neopixel library and it works without this issue edit2: using the NeoEsp32BitBang400KbpsMethod almost resolved the problem (there's just a bit of flickering on all pixels)

PedroScreamerovsky avatar May 12 '17 15:05 PedroScreamerovsky

@PedroScreamerovsky What actual LED model are you using? WS2813 will require a specific method.

Makuna avatar May 12 '17 17:05 Makuna

I got the same issues with the ESP32 like PedroScreamerovsky. Now i added a level shifter and a resistor but this didnt realy help. With the ESP8266 the code runs pretty well, but on the ESP32 its flickering on the whole stripe :-/

I am using this for the ESP32: NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> is that the right method ?

i am using the WS2812b stripes

Buffalchill avatar May 12 '17 21:05 Buffalchill

I'm using these: https://www.adafruit.com/product/2859 (grbw) I've tried Neo800KbpsMethod, then NeoEsp32BitBang800KbpsMethod (with all the pixels working well except one, that has the green channel doing weird things), and finally the NeoEsp32BitBang400KbpsMethod, that resolves the issue of the green led, but creates lot of random flickering. As for Buffalchill, the esp8266 is working fine with the same sketch. i think my LEDs are WS2812b as well

PedroScreamerovsky avatar May 12 '17 22:05 PedroScreamerovsky