-->
Page 1 of 2

NodeMCU board w/ WizNet W5500 ethernet module

PostPosted: Sun Aug 06, 2017 11:55 pm
by homeautomationing
Hello,
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.


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.

Re: NodeMCU board w/ WizNet W5500 ethernet module

PostPosted: Tue Aug 08, 2017 2:33 pm
by gbafamily1
I suggest examining the adafruit feather ESP8266 and W5500 board schematics to determine how adafruit hooked up the boards then hook up the same pins on your boards. You did not mention RST which probably needs to be connected to the ESP8266 RST or at least pull high (or low) on the W5500 board. If the W5500 RST is connected to an ESP8266 GPIO, the driver must be told which pin to use.

Specifying the SPI pins is not a good idea because the driver will probably switch to bit-bang mode instead of using the hardware SPI controller.

Re: NodeMCU board w/ WizNet W5500 ethernet module

PostPosted: Tue Mar 06, 2018 7:35 pm
by PuceBaboon
Hi gbafamily1,

Just a quick pointer for you (and anyone else searching for W5500 info) in case you're still struggling with the connections. This board does work with the NodeMCU, but you need a buffer between the chip select (on the W5500) and GPIO15 (on the NodeMCU). A single PNP transistor and a single resistor will do it. The circuit is available here (with more details, too):- https://esp8266hints.wordpress.com/2018/02/13/adding-an-ethernet-port-to-your-esp-revisited/

I used the WizNet library, btw.

-John-

Re: NodeMCU board w/ WizNet W5500 ethernet module

PostPosted: Thu Sep 06, 2018 12:41 pm
by petrkr
Hello,
just playing with this modul too here. I figured out you can use other GPIO pin for CS and init it by Ethernet.init(D3) for example.

I just do not know why GPIO15 (D8) can not be used for this module. For SPI display it works fine. Actually it also stuck programming when it's connected to module.

note:
D3/D8 are addressed for NodeMCU v1 (or Wemos D1 mini)