Skip to content

ESP32 Ethernet#525

Draft
mwinters-stuff wants to merge 4 commits into
DCC-EX:develfrom
mwinters-stuff:devel-esp32-ethernet
Draft

ESP32 Ethernet#525
mwinters-stuff wants to merge 4 commits into
DCC-EX:develfrom
mwinters-stuff:devel-esp32-ethernet

Conversation

@mwinters-stuff

Copy link
Copy Markdown

I found the wifi can be a bit slow, so I looked into what I could add to the EX CSB1, and found some W5500 modules.

This was mainly done with a full copy of github co-pilot, but I have checked everything and it looks good. I/We have used all the existing code and added a few custom classes to make sure it will work properly.

So, now you can disable wifi, and turn on ethernet, plug it in and get consistent reliable speeds.

The config.template.h has the pin settings which are suited to the EX CSB1.

#if defined(ARDUINO_ARCH_ESP32) and defined(ENABLE_ETHERNET)
  #ifndef ETHERNET_CS_PIN
    #define ETHERNET_CS_PIN   5
  #endif
  #ifndef ETHERNET_SCK_PIN
    #define ETHERNET_SCK_PIN  18
  #endif
  #ifndef ETHERNET_MISO_PIN
    #define ETHERNET_MISO_PIN 16
  #endif
  #ifndef ETHERNET_MOSI_PIN
    #define ETHERNET_MOSI_PIN 17
  #endif
  #ifndef ETHERNET_RST_PIN
    #define ETHERNET_RST_PIN  4   // or -1 if not connected
  #endif
  // To disable hardware reset handling, set: -DETHERNET_RST_PIN=-1
#endif

The defines can be passed in via the build strings too.

In the platformio.ini, there is a new build "ESP Ethernet" which builds in the ethernet library.

Using a W5500 board, we get full faster ethernet access.
Using a W5500 board, we get full faster ethernet access.
@mwinters-stuff
mwinters-stuff marked this pull request as draft July 11, 2026 02:31
@mwinters-stuff

Copy link
Copy Markdown
Author

Leaving at draft, as OTA for the ESP32, does not handle ethernet.
Working on that now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant