-->
Page 2 of 3

Re: Connect a w5500 to esp-01 which library should I use?

PostPosted: Thu Apr 11, 2019 4:42 pm
by FRANCISCOGIMENO1000
Someone has an example of using the esp with the w5500 using the library and making a pos or get request against a website.?

I read that the library WIZNET Ethernet Library gives support for esp8266

https://github.com/Wiznet/WIZ_Ethernet_Library

The truth is that there is no precise example on the internet,
of the connection between the esp and the w5500, nor of application of the available libraries.

I'm confused

Re: Connect a w5500 to esp-01 which library should I use?

PostPosted: Fri Apr 12, 2019 3:15 am
by btidey
You need to wire the w5500 SPI pins to the esp module as suggested by the previous article but avoid the issue with GPIO15 by using a different pin e.g. GPIO04

GPIO14 -> SCLK
GPIO12 -> MISO
GPIO13 -> MOSI
GPIO04 -> CS

You need to install the Ethernet library in Arduino. This can be done from the sketch/include library/manage libraries menu.

During set up you need to issue the Ethernet.init(cs); instruction with the pin you chose to use for cs (e.g. 4).

See also the adafruit tutorial. https://cdn-learn.adafruit.com/download ... erwing.pdf

Most of that is about the adafruit specific hardware / wiring which you ignore but the end has info on software set up and testing.

Re: Connect a w5500 to esp-01 which library should I use?

PostPosted: Fri Apr 12, 2019 4:05 am
by FRANCISCOGIMENO1000
Thank you for your response, more light on this matter.

Two issues:
1- Using pin 4, is it necessary to put the transistor:
"https://esp8266hints.wordpress.com/2018/02/13/adding-an-ethernet-port-to-your-esp-revisited/"
on the cs pin against the w5500 or is it not necessary?

2- And about the library:
https://github.com/esp8266/Arduino

From what I've seen it could be used and has the ethernet.h library that gives support to the w5500

This is the list of libraries:
ArduinoOTA
DNSServer
EEPROM
ESP8266AVRISP
ESP8266HTTPClient
ESP8266HTTP
ESP8266LLMNR
ESP8266NetBIOS
ESP8266SSDP
ESP8266SdFat
ESP8266WebServer
ESP8266WiFi
ESP8266WiFiMesh
ESP8266httpUpdate
ESP8266mDNS
Ethernet
GDBStub
Hash
SD
SDFS
SPI
SPISlave
Servo
SoftwareSerial
TFT_Touch_Shield_V2
Ticker
Wire
esp8266

Does it refer to this library?

Re: Connect a w5500 to esp-01 which library should I use?

PostPosted: Fri Apr 12, 2019 9:10 am
by btidey
No, you don't need to use a transistor for GPIO04.

GPIO15 is a bit special as it needs to be pulled down during boot up to put esp8266 in normal run mode. That is in conflict with using it directly for cs and is why the transistor is needed if using GPIO15.

That looks like your current list of libraries. You have to install the Ethernet library.

In arduino choose sketch menus, select 'include libraries' and select manage libraries.

You will get a dialog box allowing to choose new libraries. Select Ethernet and then press install. THis installs the library under your libraries folder.

You can now use #include <Ethernet.h> in your sketch