Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I built an ESP32 Wake-on-LAN button, and I stopped leaving my gaming PC on all day

I built a button that wakes my gaming PC remotely, and it finally ended all-day idling

I built an ESP32 Wake-on-LAN button, and I stopped leaving my gaming PC on all day

I've constructed an ESP32-powered Wake-on-LAN button to avoid leaving my gaming PC on continuously. This setup aids in reducing idle energy consumption while providing quick access to my PC's processing power when needed. To enable Wake-on-LAN (WoL) on my PC, I entered its BIOS and disabled the ErP setting, ensuring my Ethernet port remained powered even when the PC was off.

Upon verifying WoL support on my network interface card (NIC), I opted for an Arduino IDE-based solution to trigger the WoL packet with a button press rather than relying on additional services like Home Assistant. Utilizing a KY-023 joystick module, I connected a button to my ESP32, enabling me to create a custom macro pad that activates my PC whenever I press the analog stick.

By setting up constants for Wi-Fi details and my PC's MAC address, I developed two essential functions: connectWiFi() to establish a connection between the ESP32 and PC, and sendMagicPacket() to transmit the WoL packet containing the necessary MAC address repetitions. The loop() function ensures the WoL workflow repeats upon each button press, providing an efficient and energy-saving solution for accessing my PC's capabilities when required.

Rewritten by urgent.news; may contain errors — check the original.

Source: xda-developers.com

Read the original at xda-developers.com →

Report a problem with this story

More in Tech

More from Friday 27 November →