Skip to the content
2 layers65 × 50 mmUyanik, the printed circuit board in 3D

Remote PC Power Control

Size
65 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
46
Pads
77
Tracks, vias
107, 0
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
16 Oct 2026
Updated
16 Oct 2026

Overview

Uyanik is an open-source printed circuit board by rutubetsiz, from the rutubetsiz/uyanik repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 65 × 50 mm with 23 parts on 46 nets, routed with 107 tracks and 0 vias.

It is built around the ESP32-DEVKITC-VE. Its parts include 8 connectors, 4 ICs, 3 resistors, 3 switches and 1 diode. It belongs with the home automation and IoT and computers and single-board computers boards and the ESP32 boards of this library.

Main components

1

README

README.md

UYANIK

Türkçe

UYANIK PCB

A device for turning a remote computer on and off. As long as you have internet access, it doesn’t matter where in the world you are.

Why did I build this?

It started as a summer project. I had turned a spare computer into a server, but I didn’t want to leave it running all the time. University was about to start, and I needed a way to turn it on and off remotely. Shutting down a remote machine is easy, turning it on is not. Wake-on-LAN isn’t enough, and if you’re behind CGNAT on top of that... The answer to all of it was a device that stays on at home, so I built one. Wherever I am, UYANIK lets me open a web panel and turn my server on and off as if I were at home pressing the button on the case.

How it works

The device connects to the motherboard’s front panel header (JFP1). When a command comes in, the optocoupler switches and the motherboard sees it as a button press. By reading the power LED line on the same header, it also knows whether the computer is on or off.

Since the device takes up the header, the case’s front panel is left out; there’s nowhere to plug in the case’s power button, reset button and LED. That’s why the device has its own power and reset buttons, plus an LED that shows whether the computer is on. So you don’t lose the case button, it just moves onto the device.

Commands go through Firebase Realtime Database. When you send a command from the panel, it’s written to a field in the database; the device polls that field and runs the command when it sees it. Status comes back the same way in the other direction.

The reason for Firebase is that the device and the phone are on different networks, usually behind CGNAT. A direct connection isn’t possible, so a meeting point is needed. No port forwarding, DDNS or static IP required.

Besides the remote panel there’s also a local panel. It lives in the device’s own flash and works without internet. If you’re on the same network, you can connect to the device directly and send commands. When the device can’t connect to any network, it opens its own hotspot and the same panel shows up as the setup screen.

The device has to keep running while the computer is off, after all it’s the thing that turns the machine on. I power it from the motherboard’s USB header, JUSB2. While the computer is off, the power on that header actually comes from the power supply’s standby line, which stays live as long as the plug is in. The motherboard doesn’t feed it to the header by default, so two BIOS settings need to be changed. Details are below under Power.

Hardware

Pins

GPIO25 drives the power button’s optocoupler, GPIO26 the reset button’s. GPIO27 reads the signal coming from the power LED’s optocoupler.

GPIO4 is reserved for factory reset. There’s no button for it on the board; to reset, short this pin to GND and hold it for five seconds without interruption.

GPIO32 was added in version 2. It drives an LED output that shows the computer is on.

Parts

  • ESP32-WROOM-32D
  • 3x PC817 DIP-4 optocoupler
  • 3x 470 ohm resistor
  • 2x 3.5x6mm tact switch
  • LED
  • 3-pin slide on/off switch

To connect to JFP1, female front panel cables are enough if you can find them. Otherwise you can modify female-to-female jumper wires.

Why an optocoupler?

I tried, as much as I could, to make this work on motherboards from different manufacturers, not just one. An optocoupler wasn’t strictly necessary; the buttons could have been driven with transistors and the power LED read directly through resistors. I chose the optocoupler because it doesn’t require making assumptions about the motherboard’s internal circuitry. The buttons’ pull-up voltage or which side the LED is driven from can vary from board to board, while an optocoupler works the same way on all of them. Since the cost difference is tiny, I went with the solution that isn’t affected by differences between boards.

Power

The device needs to stay up while the computer is off. There are a few ways to do this.

One is from the motherboard, through the JUSB headers. This is how I did it. But there’s a catch: with default settings, the motherboard doesn’t supply standby power to the USB headers while it’s off. You need to change BIOS settings. The first is EuP 2013 or ErP Ready (the name depends on your board); on MSI it’s under Advanced, in the Power Management Setup menu. Set it to Disabled. The second is Resume By USB Device, also under Advanced but in the Wake Up Event Setup menu. Set it to Enabled. Measure between the header’s VCC and GND pins, you should see around 5 V. If you don’t, try the other header; some motherboards only supply standby power to certain ports. The downside: when the power goes out or the motherboard loses power, the device can’t get power until the computer is started by hand.

Another is directly from the power supply, pin 9 of the 24-pin connector. The purple wire. It’s completely independent of the BIOS because you’re taking power before the motherboard distributes it; no setting can turn it off. In return, you need a breakout board or a tap connector in between. If you don’t want to mess with the BIOS, or your motherboard never gives standby power to the headers, this way will definitely work.

A third option is to power the device directly from a battery or an adapter. The current design isn’t set up for that, so it would need modification.

PCB

hardware/ contains the KiCad project and PDF exports.

I made the PCB myself, so I designed it to suit home etching. You can make it yourself, or open the KiCad project, change it to your liking and send it off to be manufactured. None of this is required, the circuit works on a breadboard too.

Case

case/ contains the model.

You can 3D print it. All the parts are in one file, so you may need to separate them.

Setup

1. Firmware

It builds with the Arduino IDE. The folder name has to match the .ino file, so open the software/UYANIK/ folder as it is.

If you edit panel.html, you need to regenerate the copy that gets embedded in the device:

bash
python build_html.py

To check whether the two match:

bash
python build_html.py --kontrol

2. First boot

On first boot the device prints three values to the serial port: the hotspot network name, the panel password and the OTA password.

text
SSID : UYANIK-XXXX
Password : ...
OTA : ...

Save these somewhere. They don’t change on factory reset. If you change the panel password later, the value here stops working, but a factory reset brings it back.

3. Wi-Fi

If no network is saved, the device opens its own hotspot. Once your phone is connected, go to uyanik.local to open the panel; if that doesn’t work, use 192.168.4.1.

After it joins a network, you can reach the device at uyanik.local or at the local IP shown in the panel. The hotspot stays up for another 25 seconds so you can see the new address.

4. Firebase

Everyone sets up their own Firebase project.

Create a new project in the Firebase console and add a Realtime Database to it. In the Authentication section, enable the Email/Password provider and create an account for the device.

Finally, lock the database rules to that account’s UID:

json
{
  "rules": {
      ".read":  "auth != null && auth.uid === 'UID'",
      ".write": "auth != null && auth.uid === 'UID'"
  }
}

Once that’s done, enter the following in the Settings tab of the device’s panel: the Realtime Database URL, the Web API Key, the email and password of the account you created, and a device name.

5. Remote panel

software/web/public/index.html is a single static page and can be used in two ways.

To deploy it to Firebase Hosting, from the software/web/ folder:

bash
firebase use --add
bash
firebase deploy --only hosting

Since it’s a static file, you can also host it on your own server.

You can also open it directly via file://.

When the panel first opens, it asks for the database URL, the Web API Key and the device name. These are only stored in the browser and are never sent anywhere.

Factory reset

Short GPIO 4 to GND and hold it for five seconds without interruption. A single break resets the counter.

A reset erases the Wi-Fi network and its password, the Firebase settings, the device and hotspot names, and the panel password if you changed it. It does not touch the panel and OTA passwords generated on first boot.

Read more

License

GPL-3.0. See LICENSE for details.

Parts

23
QtyValueFootprintReferences
3470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3
1ESP32-DevKitCPCM_Espressif:ESP32-DevKitCU3
1LED OPTPackage_DIP:DIP-4_W7.62mmU5
1ON / OFFButton_Switch_THT:SW_Slide-03_Wuerth-WS-SLTV_10x2.5x6.4_P2.54mmSW3
1POWER LEDLED_THT:LED_D5.0mmD1
1POWER LED+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ5
1POWER LED-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ6
1POWER SW+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ1
1POWER SW-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ2
1PWR OPTPackage_DIP:DIP-4_W7.62mmU4
1RESET SW+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ3
1RESET SW-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ4
1RST OPTPackage_DIP:DIP-4_W7.62mmU2
1SW_POWERButton_Switch_THT:SW_PUSH_1P1T_6x3.5mm_H4.3_APEM_MJTP1243SW2
1SW_RESETButton_Switch_THT:SW_PUSH_1P1T_6x3.5mm_H4.3_APEM_MJTP1243SW1
1VCCConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ14
1VSSConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ13

The 19 most common of 23 parts.

Similar boards

  • 2 layers103.8 × 50 mmGalagino pcb set, the printed circuit board in 3D

    Galagino pcb set

    harbaum/galagino

    A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32

    26 parts558
  • 2 layers115 × 75 mmSpinCoater, the printed circuit board in 3D

    SpinCoater

    RParkerE/OpenSilicon

    OpenSilicon enables DIY semiconductor fabrication with open-source guides for building IC equipment at home. The project includes BOMs, 3D files, firmware, and PDKs, supporting makers and researchers in chip fabrication.

    11 parts55GPL-3.0
  • 2 layers127.3 × 54.1 mmESP32 SolarBox, the printed circuit board in 3D

    ESP32 SolarBox

    cole8888/SRNE-Solar-Charge-Controller-Monitor

    Read data from SRNE solar charge controllers.

    34 parts42
  • 2 layers62.2 × 57.1 mmWs2mqtt, the printed circuit board in 3D

    Ws2mqtt

    Tho85/ws2mqtt

    Connect WiSafe2 devices to Home Assistant

    8 parts28BSD-3-Clause
  • 2 layers99.9 × 99.9 mmSplit flap, the printed circuit board in 3D

    Split flap

    tinkermax/split-flap

    DIY mechanical spli-flap display

    28 parts13CC-BY-4.0
  • 2 layersJF ECU32, the printed circuit board in 3D

    JF ECU32

    JoachimF/JF-ECU32

    RC Jet Engine ECU

    27 parts12GPL-3.0
  • 2 layers72.5 × 84.8 mmDevboard, the printed circuit board in 3D

    Devboard

    ste2425/PSP-Bluetooth-AVConnector

    An AV-Out Breakout library for the PSP. Providing Kicad symbols and footprints to interface with the PSP 2/3K AVOut socket (also known as the TVOut socket)

    13 parts12
  • 2 layers100 × 88.9 mmGen2, the printed circuit board in 3D

    Gen2

    Alignof/Juggernaut

    疑似時限爆弾解除競技

    41 parts10MIT

Questions

How big is the Uyanik PCB?

It measures 65 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Uyanik use?

23 parts, built around the ESP32-DEVKITC-VE. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Uyanik KiCad files?

From the rutubetsiz/uyanik repository on GitHub, at the commit this page was made from: the board is hardware/UYANIK.kicad_pcb and its schematic hardware/UYANIK.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Uyanik design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).