Setup Guide
Follow these steps to flash and connect your ESP32 controller to the OnOffMyPC network.
Create your account
Register a new profile at app.onoffmypc.com/register using your email address and password.
Add a device in the dashboard
Access your dashboard at app.onoffmypc.com, click Add Device, and assign it a descriptive name. Note down the short pairing code (e.g., 7QK2-9F3D) displayed on-screen. This single-use code expires after 15 minutes, but you can always refresh or request a new one inside the device settings.
Identify your PC MAC Address
Wake-on-LAN packets target your motherboard adapter's physical MAC address.
Flash your board
Plug your ESP32 module into your desktop using a USB data cable. On compatible browsers, flash the firmware directly by clicking below.
Checking your account…
esptool.py --chip esp32 write_flash 0x0 onoffmypc-firmware-latest.bin
Connect to setup Wi-Fi
Upon rebooting, the board creates a temporary hot-spot named OnOffMyPC-XXXXXX. Join this network using a phone or laptop.
A configuration page should open automatically. If it doesn't, navigate to http://192.168.4.1. Select your local Wi-Fi, enter your password, paste the pairing code, configure the target PC's MAC address, and input the 6-digit setup PIN. Click Save & Connect to finalize.
Hardware Wiring Pinout
Disconnect the device from power and connect it to your motherboard headers using this guide:
| ESP32 Pin | Motherboard Target | Function |
|---|---|---|
| GPIO 26 | PWR_BTN Header | Pulses power lines. Hold for 6s to trigger Force Off. |
| GPIO 27 | RESET Header | Pulses system lines to reset the PC. |
| GPIO 34 | Power-LED (+) Header | Senses whether the computer is powered on (input-only). |
| GPIO 4 | DHT22 Data Line | Reads room temperature and humidity (optional). |
| GND | Ground Pins | Common Ground (Shared). Required. |