ESP32 Bluetooth SNES Controller & Custom PCB
Hardware retrofit and embedded firmware project converting a classic Japanese Super Famicom gamepad into a modern wireless Bluetooth Low Energy (BLE) controller with custom 2-layer PCB design.
Overview
This project is a complete hardware retrofitting and firmware solution that transforms an original Japanese Super Famicom (SFC) gamepad (Super Potato Japan CC-SFCCR) into a modern wireless Bluetooth Low Energy (BLE) controller compatible with PCs, tablets, smartphones, and consoles.
Rather than running loose protoboard jumper wires inside the tight enclosure, I designed a dedicated custom Printed Circuit Board (PCB) to house the microcontroller, charging circuits, power regulation, and button contacts.
Physical Build & Assembled Hardware
Technical Specifications & Hardware Design
1. Custom PCB Engineering
- Layer Count: 2-Layer FR-4 printed circuit board
- Thickness: Ultra-thin 0.8 mm profile to fit seamlessly within original controller housing tolerances
- Surface: Form-fitted trace routing aligning precisely with internal button rubber pads, tactile microswitches, and USB-C port cutouts
2. Power Management Circuitry
- Battery: Integrated 300 mAh rechargeable Lithium-Polymer (LiPo) battery
- Charging IC: TP4056 Type-C lithium charging controller with overcharge protection
- Voltage Regulation: LM1117-3.3V Low-Dropout (LDO) regulator supplying stable 3.3V rail to the ESP32 module
3. Shift Register Communication & GPIO
The original SNES controller relies on a shift register to read all 12 digital inputs serially:
- Pin 2: Latch signal (initiates button state capture)
- Pin 4: Clock signal (cycles through individual button bits)
- Pin 15: Serial Data out (reads high/low button state)
- Handled with high-frequency polling routines ensuring ultra-low input latency.
Firmware & Connectivity
- Core Framework: C++ running on the ESP32 Dual-Core microcontroller
- Bluetooth Stack: Bluetooth Low Energy (BLE) HID Gamepad emulation (
ESP32-BLE-Gamepad) - Compatibility: Standard HID profile recognized natively by Windows, Android, macOS, Linux, and iOS without requiring third-party drivers
- Power Optimization: Configurable sleep timers and power-down states when disconnected to maximize battery life