JoDaNl / esp8266_ws2812_i2s

ESP8266 Library for driving WS2812 led-strip using the I2S output. Use within the Arduino IDE
71 stars 24 forks source link

Basic question. How to wire this #8

Open joefly888 opened 7 years ago

joefly888 commented 7 years ago

Hello

A very basic question regarding this is my first time using i2c. With a ws2812 led string., how do you wire this to the ESP? Does it work with ESP-01? Where do I wire the data wire and I assume external 5v and ground and sharing the ground wire with power supply and esp. any help to newbie would be appreciated.

JoDaNl commented 7 years ago

Hi,

I'm assuming you mean I2S (s = Sound...) The data wire of the led-strip should be connected to : D9 / GPIO3 / RXD0 All these names refer to the same physical pin. Depends on the documentation.

Doing a quick search on ESP01 (as I never used one of these) shows the RXD pin is available. As the pins is probably shared with the serial-interface (FTDI) chip you probably need to take care here.

The library will change the RXD pin from input (receiving serial data) into an output (sending data to led-strip). Just place a resistor (a few K) between the FTDI & the ESP01....the led-strip should be directly connected to the RXD pin.

joefly888 commented 7 years ago

Thank you so much for your prompt reply. The fact that you adapted the tx pin to rx pin is very helpful to clarify the confusion. Again thanks for your work and charles for this. Oops. A rx pin to a tx pin. Confused myself

joefly888 commented 7 years ago

HI JoDaNi, Thanks to you, I was able to get it working with the library you developed without a hitch.!! Cheers.

Question that is not related to this project but seeking your guidance. I apologize as I do not know how to contact you directly.

I am trying to stream a music spectrum analyzer LED light (www.lightshowpi.org) to the ESP 8266 with LEDs attached, simply just to receive the LED commands and drive the LEDs with your code. Do you have any guidance on whether UDP on ESP? Or websockets are optimal? I have looked at Charles' ColorChord, but his code is way above me.. Just looking for some guidance, any would be appreciated... Thanks a million... I have yet to find a websocket usable/understandable code for me for the ESP.