Setup Guide

Follow these steps to flash and connect your ESP32 controller to the OnOffMyPC network.

💡
Browser Flashing: If you are using Chrome or Edge on a desktop computer, you can flash your ESP32 microcontroller in one click directly from this page in Step 4. No additional tools or command lines required.
1

Create your account

Register a new profile at app.onoffmypc.com/register using your email address and password.

2

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.

3

Identify your PC MAC Address

Wake-on-LAN packets target your motherboard adapter's physical MAC address.

Windows OS

Open Command Prompt, execute ipconfig /all, and locate the 12-digit physical address of your primary Ethernet connection.

Linux / macOS

Open Terminal and execute ip link or ifconfig. Look for the address formatted like AA:BB:CC:DD:EE:FF.

4

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…

Manual Flash Option:Download the binary payload from the firmware binary and use the Espressif CLI tools:
esptool.py --chip esp32 write_flash 0x0 onoffmypc-firmware-latest.bin
5

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.

Not connected
Live console logs are only supported in Google Chrome or Edge on desktop platforms.
6

Hardware Wiring Pinout

Disconnect the device from power and connect it to your motherboard headers using this guide:

ESP32 PinMotherboard TargetFunction
GPIO 26PWR_BTN HeaderPulses power lines. Hold for 6s to trigger Force Off.
GPIO 27RESET HeaderPulses system lines to reset the PC.
GPIO 34Power-LED (+) HeaderSenses whether the computer is powered on (input-only).
GPIO 4DHT22 Data LineReads room temperature and humidity (optional).
GNDGround PinsCommon Ground (Shared). Required.
Important safety tip: Use a simple opto-isolator or transistor between the GPIOs and motherboard power/reset headers instead of a raw direct connection to avoid electrical surges or damaging maternal controllers.