|
9 | 9 | <a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Donate to my libraries using BuyMeACoffee" style="height: 50px !important;width: 181px !important;" ></a> |
10 | 10 | <a href="https://www.buymeacoffee.com/khoihprog6" title="Donate to my libraries using BuyMeACoffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg?logo=buy-me-a-coffee&logoColor=FFDD00" style="height: 20px !important;width: 200px !important;" ></a> |
11 | 11 |
|
| 12 | + |
12 | 13 | --- |
13 | 14 | --- |
14 | 15 |
|
@@ -103,14 +104,27 @@ This [**WebServer_ESP32_W5500** library](https://github.com/khoih-prog/WebServer |
103 | 104 |
|
104 | 105 | 1. **ESP32_DEV with W5500 boards** using `LwIP W5500 Ethernet` |
105 | 106 |
|
| 107 | + |
| 108 | + |
| 109 | +#### W5500 |
| 110 | + |
| 111 | +<p align="center"> |
| 112 | + <img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500.png"> |
| 113 | +</p> |
| 114 | + |
| 115 | +<p align="center"> |
| 116 | + <img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500_small.png"> |
| 117 | +</p> |
| 118 | + |
| 119 | + |
106 | 120 | --- |
107 | 121 | --- |
108 | 122 |
|
109 | 123 |
|
110 | 124 | ## Prerequisites |
111 | 125 |
|
112 | 126 | 1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [](https://github.com/arduino/Arduino/releases/latest) |
113 | | - 2. [`ESP32 Core 2.0.5+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32_DEV with W5500 boards. [](https://github.com/espressif/arduino-esp32/releases/latest/) |
| 127 | + 2. [`ESP32 Core 2.0.6+`](https://github.com/espressif/arduino-esp32) for ESP32-based ESP32_DEV with W5500 boards. [](https://github.com/espressif/arduino-esp32/releases/latest/) |
114 | 128 |
|
115 | 129 |
|
116 | 130 | --- |
@@ -223,7 +237,7 @@ Look in file [**adc_common.c**](https://github.com/espressif/esp-idf/blob/master |
223 | 237 | #### Class Constructor |
224 | 238 |
|
225 | 239 | ```cpp |
226 | | - WebServer server(80); |
| 240 | +WebServer server(80); |
227 | 241 | ``` |
228 | 242 |
|
229 | 243 | Creates the WebServer_ESP32_W5500 class object. |
@@ -370,6 +384,51 @@ void collectHeaders(); // set the request headers to collect |
370 | 384 | void serveStatic(); |
371 | 385 | size_t streamFile(); |
372 | 386 | ``` |
| 387 | + |
| 388 | + |
| 389 | +--- |
| 390 | +--- |
| 391 | + |
| 392 | +### How to connect W5500 to ESP32 |
| 393 | + |
| 394 | +You can change the `INT` pin to another one. Default is `GPIO4` |
| 395 | + |
| 396 | +```cpp |
| 397 | +// Must connect INT to GPIOxx or not working |
| 398 | +#define INT_GPIO 4 |
| 399 | +``` |
| 400 | + |
| 401 | +--- |
| 402 | + |
| 403 | +#### W5500 |
| 404 | + |
| 405 | +<p align="center"> |
| 406 | + <img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500.png"> |
| 407 | +</p> |
| 408 | + |
| 409 | +<p align="center"> |
| 410 | + <img src="https://github.com/khoih-prog/WebServer_ESP32_W5500/raw/main/pics/W5500_small.png"> |
| 411 | +</p> |
| 412 | + |
| 413 | +--- |
| 414 | + |
| 415 | + |
| 416 | +#### ESP32_DEV |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | +|W5500|<--->|ESP32| |
| 421 | +|:-:|:-:|:-:| |
| 422 | +|MOSI|<--->|GPIO23| |
| 423 | +|MISO|<--->|GPIO19| |
| 424 | +|SCK|<--->|GPIO18| |
| 425 | +|SS/CS|<--->|GPIO5| |
| 426 | +|INT|<--->|GPIO4| |
| 427 | +|RST|<--->|RST| |
| 428 | +|GND|<--->|GND| |
| 429 | +|3.3V|<--->|3.3V| |
| 430 | + |
| 431 | + |
373 | 432 | --- |
374 | 433 | --- |
375 | 434 |
|
@@ -419,7 +478,7 @@ The following are debug terminal output and screen shot when running example [Ad |
419 | 478 |
|
420 | 479 | ```cpp |
421 | 480 | Start AdvancedWebServer on ESP32_DEV with ESP32_W5500 |
422 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 481 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
423 | 482 | [EWS] Default SPI pinout: |
424 | 483 | [EWS] SPI_HOST: 2 |
425 | 484 | [EWS] MOSI: 23 |
@@ -447,7 +506,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTT_ThingStream exampl |
447 | 506 |
|
448 | 507 | ```cpp |
449 | 508 | Start MQTT_ThingStream on ESP32_DEV with ESP32_W5500 |
450 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 509 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
451 | 510 | [EWS] Default SPI pinout: |
452 | 511 | [EWS] SPI_HOST: 2 |
453 | 512 | [EWS] MOSI: 23 |
@@ -480,7 +539,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTTClient_Auth example |
480 | 539 |
|
481 | 540 | ```cpp |
482 | 541 | Start MQTTClient_Auth on ESP32_DEV with ESP32_W5500 |
483 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 542 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
484 | 543 | [EWS] Default SPI pinout: |
485 | 544 | [EWS] SPI_HOST: 2 |
486 | 545 | [EWS] MOSI: 23 |
@@ -510,7 +569,7 @@ The terminal output of **ESP32_DEV with W5500** running [MQTTClient_Basic exampl |
510 | 569 |
|
511 | 570 | ```cpp |
512 | 571 | Start MQTTClient_Basic on ESP32_DEV with ESP32_W5500 |
513 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 572 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
514 | 573 | [EWS] Default SPI pinout: |
515 | 574 | [EWS] SPI_HOST: 2 |
516 | 575 | [EWS] MOSI: 23 |
@@ -541,7 +600,7 @@ The terminal output of **ESP32_DEV with W5500** running [WebClient example](exam |
541 | 600 |
|
542 | 601 | ```cpp |
543 | 602 | Start WebClient on ESP32_DEV with ESP32_W5500 |
544 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 603 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
545 | 604 | [EWS] Default SPI pinout: |
546 | 605 | [EWS] SPI_HOST: 2 |
547 | 606 | [EWS] MOSI: 23 |
@@ -627,7 +686,7 @@ The terminal output of **ESP32_DEV with W5500** running [UDPSendReceive example] |
627 | 686 |
|
628 | 687 | ```cpp |
629 | 688 | Start UDPSendReceive on ESP32_DEV with ESP32_W5500 |
630 | | -WebServer_ESP32_W5500 v1.5.1 for core v2.0.0+ |
| 689 | +WebServer_ESP32_W5500 v1.5.2 for core v2.0.0+ |
631 | 690 | [EWS] Default SPI pinout: |
632 | 691 | [EWS] SPI_HOST: 2 |
633 | 692 | [EWS] MOSI: 23 |
@@ -713,6 +772,7 @@ Many thanks for everyone for bug reporting, new feature suggesting, testing and |
713 | 772 | ### Contributing |
714 | 773 |
|
715 | 774 | If you want to contribute to this project: |
| 775 | + |
716 | 776 | - Report bugs and errors |
717 | 777 | - Ask for enhancements |
718 | 778 | - Create issues and pull requests |
|
0 commit comments