I like to take notes on travel, and I am putting together various IT tips that I often forget during work.
Turn On a PC Remotely Over Wi-Fi, Part 2: Using an AliExpress ESP32-S3 Board
공유 링크 만들기
Facebook
X
Pinterest
이메일
기타 앱
-
ESP32-S3 Project, Part 2
Waking a Desktop PC From Fully Shut Down Using an AliExpress ESP32-S3 Board
Following up on Part 1 (Geekble Nano), here's how to remotely power on a desktop PC using a new ESP32-S3 dev board I picked up on AliExpress. The code is 100% identical to Part 1, but the board layout and BIOS setup are a bit different.
Part 1 covered building a USB HID Wake-on-LAN alternative with a Geekble Nano ESP32-S3.
An ESP32-S3 dev board I ordered from AliExpress arrived today, so I set up a second one specifically for my desktop PC.
Why split them by use case: when a MacBook is fully shut down, USB power gets cut entirely, so an ESP32 can only wake it from sleep.
Most desktop motherboards, on the other hand, let you power on from a full shutdown using just a keystroke, via a BIOS setting. So I've dedicated one board to the MacBook (Part 1, Geekble Nano) and a second board to the desktop (Part 2, this AliExpress board).
Possibly because it's a physically larger board, this AliExpress ESP32-S3 also felt like it held a more stable Wi-Fi connection than the mini board from Part 1.
Chapter 1
Unboxing the AliExpress ESP32-S3
I bought this on AliExpress for about $5–6 USD (7,500 KRW), with free shipping. It's cheaper than the Geekble Nano from Part 1, and physically larger too.
▲ The AliExpress packaging label — listed as an "Electronic Module," Made in China
▲ Board, front side — two USB-C ports, BOOT/RST buttons, an onboard RGB LED
▲ Board, back side — silkscreened "ESP32-S3," with the two ports labeled USB and USB-OTG respectively
The package contents are simple — just the board itself and two rows of pin headers, no other accessories.
Chapter 2
Board Layout: Two USB Ports, Which One to Use
This board's proper module name is ESP32-S3-WROOM-1 N16R8 (16MB flash / 8MB PSRAM — more headroom than the Geekble Nano from Part 1). The wiring diagram from the AliExpress listing makes the key components easy to identify at a glance.
▲ Hardware diagram provided on the AliExpress listing page
Item
Detail
Module
ESP32-S3-WROOM-1 N16R8 (16MB Flash / 8MB PSRAM)
USB-Serial chip
CH343P
RGB LED
WS2812
Port A
USB to Serial (Type-C) — for firmware upload and Serial Monitor
Port B
ESP32-S3 Type-C USB & OTG — for acting as a USB HID keyboard
The key thing to know: this board has two USB-C ports. One goes through the CH343P chip as a "USB to Serial" port (for uploading code and debugging); the other connects directly to the ESP32-S3 chip as a "USB & OTG" port.
Just like in Part 1, you must connect to the PC through the "USB & OTG" port for it to work as a USB HID keyboard. Connecting via the Serial port won't get it recognized as a keyboard.
When uploading firmware, do the opposite: connect the Serial port (CH343P) to your PC and upload from Arduino IDE. Once the upload is done, switch the connection over to the OTG port for actual use.
Chapter 3
Setup (100% Identical to Part 1)
Installing Arduino IDE, adding the ESP32 Board Package, the USB CDC On Boot setting, implementing a USB HID Keyboard, connecting to Wi-Fi, implementing the /wake API — the entire setup process and code are completely identical to
the Part 1 post.
As long as you select the same ESP32S3 Dev Module in the Board Package screen, the code from Part 1 runs 100% as-is, with no changes needed.
Reconfirmed: as long as it's in the ESP32-S3 family, the USB HID + Wi-Fi code ports over directly regardless of manufacturer — whether it's a Geekble Nano or, as here, a generic AliExpress dev board.
What differs board to board is really just USB port placement and the GPIO pinout; the software logic stays the same.
If you haven't seen the code yet, grab it directly from the WakeKey32_final_public.ino download link at the bottom of the Part 1 post — just swap in your own Wi-Fi SSID/password and upload.
Chapter 4
Waking From Fully Shut Down: BIOS Setup
Unlike a MacBook, most desktop motherboards keep standby power flowing to USB ports even when fully shut down. So enabling "power on via USB keyboard" in the BIOS lets the ESP32's Shift keypress power the PC on from a full shutdown, not just from sleep.
On my ASRock motherboard, the setting is found here:
Enter the UEFI setup screen → Advanced → ACPI Configuration → USB Keyboard/Mouse Power on → Enabled
▲ ASRock UEFI → Advanced → ACPI Configuration → USB Keyboard/Mouse Power on → Enabled
Menu names vary by manufacturer. ASUS, MSI, Gigabyte and others often have a similar option under a different name, like "Power On by USB Keyboard/Mouse," or it may hinge on disabling "ErP Ready."
Searching your motherboard manual for "USB Keyboard Power On" or "Wake on USB" is a good bet.
Note: on some motherboards this option only works from sleep (S3) and not from a full shutdown (S4/S5).
Even in that case, waking from sleep still works exactly as in Part 1 — so relying on sleep mode instead of a full shutdown is a reasonable fallback.
Chapter 5
Installation: Wired Directly Inside the PC Case
Part 1 already established that unstable power can cause current spikes during Wi-Fi transmission to drop USB recognition, so here too I wired the board directly into a motherboard USB header and left it permanently installed inside the case.
▲ Wired directly to a motherboard USB header (rear panel) for stable, always-on power
Connect it to a USB port that stays powered even with the case closed, and you can just leave it alone from then on — no maintenance needed.
Chapter 6
Real-World Results vs. Traditional WOL
After running both boards for a while, this setup has been far more reliable than traditional wired-LAN Wake-on-LAN. I tested two scenarios.
Scenario
Result
Power on from a full shutdown
Works reliably (after the BIOS setting)
Wake from sleep
Works reliably
The limits of traditional wired-LAN WOL: Magic Packets would occasionally just get dropped or silently fail, and waking from sleep in particular often just didn't happen.
On top of that, using WOL remotely requires knowing the target PC's MAC address, and delivering the Magic Packet itself is difficult unless you're on the same network — which made remote use practically infeasible.
The advantage of the ESP32 USB HID approach: no need to worry about MAC addresses or being on the same network — just send a single HTTP request to the IP of whichever PC the ESP32 is attached to (or through router port forwarding).
It's far more reliable, and the setup is far simpler too.
For now, the setup I'm happiest with is: one board dedicated to the MacBook for waking from sleep, and one board on the desktop handling both full-shutdown power-on and sleep-wake — both left permanently connected.
마우이 북쪽에 카팔루아 비치라고 유명한 스노우 쿨링 장소가 있습니다. 주차장은 카팔루아 비치를 따라 트레일 코스가 있는데 비치 이용자 및 트레일러를 위한 무료 주차장이 있습니다. 아침 9시 이전에 가면 주차장이 널널 합니다. 주차장은 점심 시간대쯤 되니 만차가 되네요. 주차장을 통해 화장실쪽으로 걸어들어오면 해변을 만날 수 있습니다. 화장실 앞에 짠물을 헹궈내는 샤워기가 있고 해변 앞에도 있습니다. 해변쪽 보다 화장실 앞에 있는게 수압이 더 쎄더군요 숙소가 이 근처라서 아침일찍 산책길에 들렸더니 너무 이른 아침이라서 그런지 사람이 별로 없네요. 시간이 지나면 사람들이 갑자기 많아집니다. 파도가 약간 있습니다. 저 파도치는데는 물고기가 없습니다. 깊숙히 들어가야 합니다. 아침 밥을 먹고 아이들을 데리고 이곳에 다시 왔습니다. 숙소에서 비치타월을 들고 10여분 정도 걸어 왔습니다. 물고기가 별로 없어서 아 여기가 왜 마우이 최고의 스노우 쿨링 장소 일까 하고 후회 하고 있는데 저 돌 가까이 가봅니다. 우와 물고기가 돌사이에 제법 많네요 그러나 약간 파도가 있어서 돌에 너무 가까이 가면 부딪힐 위험이 있습니다. 스노우 쿨링 좋은 장비를 마련하지 못해서 특히 구명쪼기가 없어서 깊숙히 못 들어가봤는데 저는 약간의 수영실력으로 구명조끼 없이 물안경 하나로 깊숙히 헤염쳐서 사람들이 몰려있는 바다 깊숙히 들어가 봅니다. 물고기가 제법 많습니다. 특히 뼈만 있는 투명한 물고기는 인상적이네요. 아이들을 데리고 그나마 발이 조금 닿는 돌 옆 가까이 가서 겨우 물고기를 보여줍니다. 구명 조끼도 없이 아이들 발이 닿지 않아 불안 불안 하면서 옆에서 계속 아이가 관찰 할 수 있도록 보호 해줍니다. 구명조끼등 스노우 쿨링 장비가 있었으면 훨씬 좋았을텐데 조금 아쉬웠습니다. 해변을 따라 트레일 코스에 대한 안내입니다. 이곳엔 고급 리조트들도 많으니 구경 삼아 트레일 하는것도 좋을 것 같습...
샌프란시스코 여행때 길로이 아울렛을 한국 분들은 참 많이 들리시죠. 미국 브랜드 옷을 싸게 살수 있는것 같습니다. 그러고 보면 이런 현상이 벌어지는 이유가 한국 백화점에서 미국 브랜드 옷을 2배나 가까이 비싸게 팔고 있다는 점입니다. 심한경우 3배나 비싸죠... 반성 해야 합니다. 길로이 아울렛은 샌프란시스코에서 101번 고속도로를 타고 한참 내려가야 합니다. 2시간쯤 내려가야 할껍니다. 고속도로 근처에 있어서 찾기는 쉬울꺼예요. 샌프란시스코는 약간 가을날씨 같은데 길로이까지 내려오면 낮에 오면 햇볕이 뜨거워 완전 여름입니다. 길로이 아울렛은 아래 제가 블로그에 썼듯이 하와이 와이켈레 아울렛과 같은 운영회사 인가 봅니다. http://comhack.blogspot.kr/2018/02/blog-post_18.html http://www.premiumoutlets.com 여기서 회원을 가입하고 쿠폰북을 출력하시거나 회원을 증빙하는 바우처 같은거 출력해가서 Information Center 로 가셔서 쿠폰북을 교환하는 것이 할인율이 좋죠 하와이 와이켈레와 마찬가지로 가성비는 코치가 좋습니다. 그리고 크록스도 좋습니다. 제가 갔을땐 Buy one, get one free 행사를 했습니다. (예전 블로그에서도 썼듯이 1+1 은 콩글리쉬 입니다. 1+1 = 2 입니다. ㅠㅠ) 크록스에서 아이들 슬리퍼 한켤레 샀는데 하나 더 가져오라고 합니다. 그런데 두개 신발중 비싼 신발 가격으로 계산이 되니 아울렛에서 Buy one, get one free 행사에서 가장 좋은 팁은 비슷한 가격대 신발이나 옷을 골라오는게 좋습니다. (직원이 계산시 설명해줘요 친절하게~ 비슷한 가격으로 가지고 오시는게 좋다고 ^^) 크록스 사이즈는 미국 단위로 암호같아서 우리나라 센치 단위로는 잘 모를꺼예요 미리 알고 가면 좋아요 https://www.crocs.co.kr/size-charts/fit-guide.html 저는 미리 정보를 좀 알고가...
빅아일랜드 코나 지역에서 힐튼 와이콜리아 빌리지 호텔에 묵었지만 호텔에 딸려있는 레스토랑은 줄도 길고 너무 비싸고 맛도 없다는것을 금방 알게 됩니다. 특히 팁 세금 까지 합하면 아이들과 도니 &토니스 피자에서 피자 한판 먹는데 7만원이 넘어요. 저는 비용 때문에 호텔에 있는 고급 레스토랑을 자주 가진 않았는데 몇군데 가본결과 가성비는 별루 였던것 같습니다. 맛도 없는데 다른 블로그에서 왜 자랑질 하는지 모르겠어요 ㅠㅠ 뷰는 분위기 있고 좋았던것 같습니다. 코나지방이면 코나 공항 근처까지 가서 코스트코 피자가 10달라 선이니 코스트코 피자사오는게 이게 더 맛있고 양도 풍부합니다. (코스트코 피자 정도는 코스트코 회원 안들어도 살수 있어요. ) 연구도중 하와이 로컬 슈퍼마켓 Foodland Farms 를 알게 됩니다. 코나 힐튼에서 차로 15분거리입니다. 미국에서 슈퍼마켓이 15분 거리에 있다는것은 행운이죠... 빅 아일랜드는 뭐든 엄청 멀어요 Foodland Farms 가 좋은 점은 한국 입맛에 맞는 도시락을 팝니다. 가격도 괜찮습니다. 가끔 멀리 호텔을 나와서 점심 피크닉할때 도시락가져가면 피크닉테이블에서 맛있게 먹을수 있습니다. 팁도 필요 없어요 ^^ 미국은 회원제 슈퍼마켓이 많습니다. 대표적으로 코스트코죠 그런데 연회비를 받네요 코스트코 연회비는 한국이 제일 쌉니다. 푸드랜드도 회원제이긴한데 회원을 들지 않아도 구매 가능합니다. 회비도 없어요 자주 가실꺼면 회원을 들고 maikai card를 만드는게 할인율 측면에서 좋을것 같습니다. https://www.foodland.com/maikai-card 아래와 같이 생겼고 카운터나 사무실가서 만들어 달라고 하면 바로 만들어 줍니다. 바로 사용 가능합니다. 앱도 있어서 앱의 바코드를 제시하면 되는데 한국 앱스토에서는 다운로드가 안되네요. Maikai 카드를 만들면 기본적인 여러가지 품목에 회원 할인을 해주고 (아마도 푸드랜드 도시락이나 여기서 만드는 음식들은 ...
댓글