Daniel Chen

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.

C++ESP32BLEPCB DesignHardwareEmbedded SystemsIoT

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

Assembled ESP32 SNES Controller Front
Assembled wireless gamepad in clear Super Famicom shell
Internal view of custom PCB and battery assembly
Internal layout with custom PCB, 300mAh LiPo, and TP4056
USB-C Charging Port on Gamepad
Type-C charging port cleanly aligned with controller edge
Rear view of assembled controller
Rear view showing original casing fitment

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-layer Custom PCB Layout
Custom 2-Layer FR-4 PCB layout (0.8mm profile)
Circuit Schematic Diagram
Circuit schematic: ESP32-S, LDO 3.3V regulation, and TP4056

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.
SNES Controller Button Mapping Diagram
Serial bit sequence and button mapping diagram

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