[Re]LilyGo-W5500-Lite-WoL
.
					
                ✅ Project Overview: Wake-on-LAN IoT Dongle Based on W5500
This project utilizes the LILYGO T-Lite W5500 development board to implement a Wake-on-LAN (WoL) IoT dongle. Users can remotely power on a PC by sending Magic Packets via a web-based configuration interface, where they can enter Wi-Fi and Ethernet settings, as well as the MAC address of the target PC.
🧩 Hardware Architecture
- MCU: ESP32 (supports Wi-Fi and BLE)
 - Ethernet Chip: WIZnet W5500, connected via SPI, enabling hardware-based TCP/IP offloading
 - Display: 0.96" OLED screen (SSD1306, I2C interface)
 
Pin Mapping:
ETH_RST: GPIO 4ETH_CS: GPIO 5ETH_SCLK: GPIO 18ETH_MISO: GPIO 23ETH_MOSI: GPIO 19OLED_SCL: GPIO 22OLED_SDA: GPIO 21
🧠 Software Stack
- Development Environment: Arduino IDE (Board: ESP32 Dev Module)
 - Key Libraries:
ESP_DoubleResetDetector: Allows entry into setup mode by double-resetting within 10 seconds- Custom-modified 
WebServerlibrary for ESP32 compatibility (located under/libdeps) 
 - Main Features:
- Web-based configuration UI to input Wi-Fi credentials, MAC address of the target PC, and WebSocket server address
 - Communication with a WebSocket server to trigger Magic Packet transmission
 
 
🔄 Operation Flow
- Setup Mode: Triggered by double-resetting the ESP32 within 10 seconds
 - Web Access Point: The device hosts an AP with SSID 
WoL_Configto provide access to the configuration page - User Configuration: Inputs include Wi-Fi SSID, password, target PC MAC address, and WebSocket server URL
 - Active Mode: Once configured, the device connects to the WebSocket server and waits for a trigger
 - Magic Packet Transmission: When a MAC address is received from the server, the ESP32 sends a WoL packet to power on the PC
 
🧩 Role & Value of W5500 Chip
- Hardware TCP/IP Stack: W5500 offloads the TCP/IP stack from the MCU, freeing up resources on the ESP32
 - Low Power and High Stability: Improves efficiency by reducing CPU overhead and ensuring stable Ethernet connectivity
 - Real-Time Performance: Offers reliable packet delivery for time-sensitive tasks such as Magic Packet transmission
 
📈 Strategic Value to WIZnet
- Expanding IoT Market: Demonstrates how W5500 can be effectively integrated into modern IoT use cases
 - Developer Community Engagement: Open-source projects like this increase awareness and adoption of WIZnet products among makers and hobbyists
 - Product Versatility: Shows how W5500 complements ESP32 in hybrid Wi-Fi + Ethernet architectures, widening its application range in industrial and home automation
 
