I've been trying to get a NodeMCU version of the ESP8266 to work with this W5500 ethernet module on the Arduino IDE, but I haven't had much luck. The W5500 ethernet module works fine on regular Arduino Uno, I'm able to get this Ethernet2 library example to connect to my router and display IP address in serial monitor. But when I try the same example on the ESP8266, I get a memory dump on the serial monitor, and it does not successfully get an IP address.
- The W5500 works via SPI to the Arduino. This is how I've wired it to the ESP8266
https://preview.ibb.co/ifaqwa/SPI_on_esp.jpg
I'm using this Ethernet2 library that is written for the W5500
https://github.com/adafruit/Ethernet2/blob/master/examples/DhcpAddressPrinter/DhcpAddressPrinter.ino
In case this W5500 ethernet module isn't familiar, it looks like this:
http://www.haoyuelectronics.com/Attachment/W5500-Ethernet/W5500-Ethernet-2.jpg
I've never used SPI devices on the ESP8266 before. And this might be complicated by the fact that the Ethernet2 library is making calls to the SPI bus, you don't actually specify the ESP8266 SPI pins. So, maybe I need to edit the Ethernet2 library specifically to reference the right pins on the EsP8266?
Any ideas will be appreciated. Thanks.