Wake-On-Lan with MicroPython ESP8266.
My motherboard does not support Wake-On-Lan. So I decided to use ESP8266 to wake up my computer. ESP8266 is connected to the motherboard's power button pins. When ESP8266 receives a connection, it sends a signal to the motherboard to turn on the computer.
- Clone the repository:
git clone https://github.com/mertemr/esp8266-WOL
- Install amp and esptool:
pip3 install adafruit-ampy esptool
- If MicroPython is not installed on ESP8266, install it:
esptool --port PORT erase_flash
esptool --port PORT --baud 115200 write_flash --flash_size=detect 0 FILE.bin
- Upload the code to ESP8266:
ampy --port PORT put main.py
ampy --port PORT put config.py
- Restart ESP8266
- Edit config.py for your installation. (wifi, connections, etc.)
- Connect ESP8266 to the motherboard's power button pins and external power supply.
- Assign a static DHCP IP address to ESP8266.
- Set-up your router to forward port 9 to ESP8266.
- Done. You can use wol.py to wake up your computer from anywhere.