Skip to content

Wake-On-Lan -actually WoW- with MicroPython ESP8266

Notifications You must be signed in to change notification settings

mertemr/esp8266-WOL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp8266-WOL

Wake-On-Lan with MicroPython ESP8266.

How it works?

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.

Installation

  1. Clone the repository:
git clone https://github.com/mertemr/esp8266-WOL
  1. Install amp and esptool:
pip3 install adafruit-ampy esptool
  1. 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
  1. Upload the code to ESP8266:
ampy --port PORT put main.py
ampy --port PORT put config.py
  1. Restart ESP8266

Usage

  1. Edit config.py for your installation. (wifi, connections, etc.)
  2. Connect ESP8266 to the motherboard's power button pins and external power supply.
  3. Assign a static DHCP IP address to ESP8266.
  4. Set-up your router to forward port 9 to ESP8266.
  5. Done. You can use wol.py to wake up your computer from anywhere.

About

Wake-On-Lan -actually WoW- with MicroPython ESP8266

Resources

Stars

Watchers

Forks

Languages