HomeKidd / Homekit-WS2812B-controller

ESP8266 based  Homekit controller for WS2812B lightstrips with WS2812FX support🌈
237 stars 35 forks source link

how to connect my esp8266 12f and ws2812b. #53

Closed 172505197 closed 3 years ago

172505197 commented 3 years ago

I've flash the firmware and successfully added accessories to HomeKit. But I have some questions about how to connect my nodemcu (esp8266 12f) and ws2812b.

I'm not sure which io connects to which port on the ws2812b. Should I connect gnd-gnd, vin-5v? and which pin should connect to Di to control the light. Can you tell me how to connect all these things when using this firmware? thank you very much.

HomeKidd commented 3 years ago

Hi! All info you need is available at the Wiki page 😉

172505197 commented 3 years ago

I’ve read the wiki and it only says that the output pin is gpio 3, I ve connect the output pin with the di on the light, but it doesn’t work. Are there anything wrong with the other connection ? 1E0CB7A4-38F4-4651-87C1-DEFDBBABAFEA 7C69680A-074A-4689-90F4-C70AAFFF2D1B

HomeKidd commented 3 years ago

How many LEDs do you want to drive from the ESP itself? Because it can make around 7-800mA which might be too low amperage for the WS2812 so it doesn't turn on. The ESP itself only can drive around 10 LEDs safely, but it might need a level shifter.

Also are you sure that the used LED strip is WS28xx? Some others looks the same but not supported. More info here

Also the two most important thing:

172505197 commented 3 years ago

I try to make it work like this. As you just said, I think there is not enough power supply. There seems to have a 3v pin and a vin pin on the nodemcu, what should I do to make it have enough power supply. ! B467DB80-A6C5-4E26-B72A-2671E3DF310B

So if I only cut a small pieces of the led strip, can it work with the power supply of a usb. 1DF3BA16-FD54-4805-BA35-417D2CF0D550