I started out with the UNO and the W5100 Ethernet shield but wanted to deploy something else and preserve those for messing around with.
So, in a bit of a spending spree, I bought 3 different boards and now I'm struggling with the first one as I don't really know which libraries to use, where to put them, how to call the appropriate one for each of the boards etc.
The boards I have bought are:-
A Keyestudio UNO clone with built in W5500 Ethernet. This is the one I am trying but looking at the library, it seems older than the current Arduino one I have installed. I've put the Ethernet55 folder in the library alongside the Ethernet folder. And I've change the header file in my sketch to Ethernet55 and just get loads of errors.
(Ks0304 Keyestudio W5500 ETHERNET DEVELOPMENT BOARD (WITHOUT POE) - Keyestudio Wiki)
An Ethernet Featherwing - W5500 by the look of it. (Adafruit Ethernet FeatherWing : ID 3201 : $19.95 : Adafruit Industries, Unique & fun DIY electronics and kits). The web talks about Ethernet2 library!
I'm not asking to resolve my errors but for the right way to go about installing and using the correct libraries. Reading the original installed Ethernet.h file, it implies it is ready for all 3 ethernet modules (51, 52 & 55) but a burning question I have is how do I tell it which one I am currently using?
Any help appreciated.
A Keyestudio UNO clone with built in W5500 Ethernet. This is the one I am trying but looking at the library, it seems older than the current Arduino one I have installed. I've put the Ethernet55 folder in the library alongside the Ethernet folder. And I've change the header file in my sketch to Ethernet55 and just get loads of errors.
(Ks0304 Keyestudio W5500 ETHERNET DEVELOPMENT BOARD (WITHOUT POE) - Keyestudio Wiki)
I would recommend just using the official Arduino Ethernet library for this board. You might find some information that says the official library doesn't support the W5500 because it used to only support W5100, but support for W5200 and W5500 was added to the library by Paul Stoffregen two years ago. So I think the official library is the best choice for the boards like your Uno that are compatible with it.
It looks pretty interesting. It looks like this is using the ESP32 directly for the Ethernet, rather than the approach of having a separate dedicated Ethernet controller chip like the W5500 as we see more often in the Arduino world. I don't know anything about that topic and I'm certain you can't use the official Ethernet library for this purpose.
Adafruit was maintaining a fork of the arduino.org Ethernet2 library in order to provide support for the W5500. After W5500 support was added to the official Ethernet library, Adafruit deprecated the Ethernet2 library and now recommends using the official Ethernet library instead.
Wingnut:
Reading the original installed Ethernet.h file, it implies it is ready for all 3 ethernet modules (51, 52 & 55) but a burning question I have is how do I tell it which one I am currently using?
It's autodetected, so there's no need to tell the library which one you're using.
the ESP32 Ethernet is an additional interface in the WiFi library. the WiFi library of ESP32 Arduino supports 3 interfaces WiFi station, WiFi SoftAP and the ESP32 Ethernet peripheral
To expand on that for @Wingnut, when you install the ESP32 boards platform in the Arduino IDE via Boards Manager, the WiFi library is also installed. So you don't need to do anything extra to get this library. You'll find the examples like the one Juraj linked to under the Arduino IDE's File > Examples > WiFi menu when you select an ESP32 board from the Tools > Board menu.
Thanks everybody for quick replies and an easing of my mind. All very helpful stuff.
In fact the sketch that wasn't working on the Keyestudio module and set me off worrying about the libraries, is in fact working ok with the genuine Ethernet library; it was me being dumb.