Closed slowpoison4 closed 3 years ago
Hi @slowpoison4
The W5100 design is very strange that the SPI bus is connected only to ICSP connector.
In your picture, you're not correct in using pin 10-13.
Connect directly from ICSP to ESP32
Good Luck,
Hi @khoih-prog As mentioned I have tried connecting it to the ICSP headers as well. I tried again as shown in the Picture. it still doesnt work.
Starting WebClientRepeating on ESP32 with W5x00 using Ethernet Library EthernetWebServer v1.3.1 [EWS] =========== USE_ETHERNET =========== [EWS] Default SPI pinout: [EWS] MOSI: 23 [EWS] MISO: 19 [EWS] SCK: 18 [EWS] SS: 5 [EWS] ========================= [EWS] ESP32 setCsPin: 22
I'm trying on W5500 using more complicated ESP32_FS_EthernetWebServer and it's OK.
You have to check the wirings, connection, and ESP32.
It's better you buy and use the smaller, better, cheaper W5500 and discard the bad-designed W5100.
W5x00 | <---> | ESP32 |
---|---|---|
MOSI | <---> | GPIO23 |
MISO | <---> | GPIO19 |
SCK | <---> | GPIO18 |
SS | <---> | GPIO05 |
GND | <---> | GND |
+3.3V | <---> | +3.3V |
Starting ESP32_FS_EthernetWebServer on ESP32 with W5x00 using Ethernet Library
EthernetWebServer v1.3.1
[EWS] =========== USE_ETHERNET ===========
[EWS] Default SPI pinout:
[EWS] MOSI: 23
[EWS] MISO: 19
[EWS] SCK: 18
[EWS] SS: 5
[EWS] =========================
[EWS] ESP32 setCsPin: 5
W5100 init, using SS_PIN_DEFAULT = 22, new ss_pin = 10, W5100Class::ss_pin = 5
chip is W5500
W5100::init: W5500, SSIZE =4096
=========================
Currently Used SPI pinout:
MOSI:23
MISO:19
SCK:18
SS:5
=========================
Connected! IP address: 192.168.2.123
FS File: /ConfigMQTT.json, size: 153B
FS File: /drd.dat, size: 4B
FS File: /wifi_cred.dat, size: 334B
HTTP server started @192.168.2.123
Open http://192.168.2.123/edit to see the file browser
As this has nothing to do with the library, I won't waste my time and answer anymore.
Hi,
I recently came across your library and was breaking my head to try and integrate a w5100 ethernet shield and ESP32. I have a project where i need to use ethernet when the setting is enabled via an app. I wanted to integrate the ethernet shield ( Which works with my Arduino Mega).
I am unable to go past the Ethernet.Begin(). The Example I'm using is WebClientRepeating.ino . I am working on PlatformIO core 5.1.1.
I replaced my platformio.ini file with the one provided.
The following changes were made:
PS: PlatformIO couldnt download the following Library Manager: Installing PaulStoffregen/EthernetLarge @ ~2.0.0 Warning! Could not find the package with 'PaulStoffregen/EthernetLarge @ ~2.0.0' requirements for your system 'windows_amd64' Library Manager: Installing UIPEthernet/UIPEthernet @ ~2.0.9 Warning! Could not find the package with 'UIPEthernet/UIPEthernet @ ~2.0.9' requirements for your system 'windows_amd64'
Next I went about replacing the files from the LibraryPatches folder. I replaced Ethernet,Ethernet2&3 and EthernetLarge.
Next I opened Server.h and replaced the contents of Server.h with the included Server.h file inside LibraryPatches/esp32/Server.h
Next I copied the code from the Example: WebClientRepeating.ino to my Main.cpp and copied the defines.h inside my src folder. My folder structure is as follows:
Src/ main.cpp defines.h
The code gets compiled and uploads successfully.
Where I open my Serial Monitor:
after this Nothing happens. Ive tried changing it to pin 5 and still no change. The TX LED on my Ethernet Shield blinks quite frequently.
The Connection between ESP32 and W5100 is as follows:
ESP32 | W5100 23 MOSI 11 22 CS 10 19 MISO 12 18 SCK 13
I tried Interchanging MOSI and MISO ie: 23 to 12 and 19 to 11. That also made no difference. I tried using the ICSP pins, even that made no difference.
Ive tested the Ethernet Shield with my arduino mega, and the board works fine. So i know the board works.Cannot understand why ESP32 wouldnt work.
Regards
Main.cpp
defines.h