HomeKidd / Homekit-WS2812B-controller

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

Wi-Fi from esp8266 not recognized #7

Closed JCpi closed 4 years ago

JCpi commented 4 years ago

Hi, i followed instructions, but after flashing esp (NodeMCU v3), it's just blinking the led wihout wi-fi, I'm sure it's the firmware problem, because this firmware https://drive.google.com/file/d/1AzWJmgX-aS_xijP5oKopCuhYHjpF2NpJ/view works, but there's another problem...

HomeKidd commented 4 years ago

Hi!

Which LED is blinking? The led strip or the built-in led? Are you using the right LED strip? Which pin do you connected the data pin of ws2812b? Also when flashing the firmware and the WS2812Bis connected at the same time the LED strip might flashing because the data pin ( which using hardwarei2s ) is connected to the ESP8266's RXD .

Other thing to check is the Flash parameters, because this code uses 4MB flash size not 1MB (as magic home)

Also what you mean by " blinking the led without wi-fi"? No captive portal shows up? Or what? And by "there's another problem"?

Magic home is a different hardware and code!

JCpi commented 4 years ago

Thanks for the quick response, I mean the led on the esp itself, I haven't connected the led strip yet, because I can't connect the esp to the Wi-Fi, I also tried to change the Flash parameters, but to no avail, none of my phones see Wi-Fi "HomeKid-"

JCpi commented 4 years ago

Finally, when I changed the memory size to 16MB, the iPhone saw the wi-fi "HomeKid-", the homekit app sees the esp, but when trying to connect, there's error message saying "Home couldn't connect to this accessory" :(

HomeKidd commented 4 years ago

Finally, when I changed the memory size to 16MB, the iPhone saw the wi-fi "HomeKid-", the homekit app sees the esp, but when trying to connect, there's error message saying "Home couldn't connect to this accessory" :(

I've never seen a NodeMCU with 16MB flash before, all of my modules are have 4MByte (aka 32 mBit !!! ) flash size and this is why you can't pair it with your phone: I'm using a specified flash sector to store the HomeKit pairing data, but when you flashing the accessory with flash size other than 4MB, the flash sector will not present. Same issue as #2 😄 Maybe you can try out 32MB settings because 32MB (megabyte) not equal to 32mB (megabit).

I've tried it with my wemos d1 mini and its works like a charm so the code is working, seems to be a hardware issue to me. Please try out other ESP8266 based module that has the right hardware 😄