A custom game controller for playing Super Mario Bros on Dolphin Emulator. For now, just a breaboard, joystick, some push buttons and ESP32-BLE-Gamepad
Pin assignments assume the ESP32-C3 SuperMini (GPIO numbers, not silkscreen labels). Strapping pins GPIO8/9 are used for I²C (they idle high, which is safe at boot), and GPIO2 is a button with a pull-up, so don't hold HOME while powering on.
| Component | ESP32 SuperMini pins | Use | Qty | Price | Link |
|---|---|---|---|---|---|
| ESP32 SuperMini | — | MCU, BLE gamepad (ESP32-BLE-Gamepad) | 1 | TBD | Amazon |
| 3.7 V 1800 mAh LiPo (Nova 654141) | + → slide switch → 5V, − → GND | Power | 1 | Already owned | — |
| 2-pin JST-PH header | Between battery and slide switch | Battery connector | 1 | TBD | — |
| Slide switch | Inline on battery + | Power on/off | 1 | TBD | — |
| Analog joystick | VRx → GPIO0, VRy → GPIO1, SW → GPIO3, VCC → 3V3, GND → GND | Movement (D-pad); press = B | 1 | Already owned | — |
| 12 × 12 mm illuminated tactile switch | A → GPIO4, 1 → GPIO5, 2 → GPIO6 (other leg → GND, INPUT_PULLUP) |
A, 1, 2 buttons, light up on press | 3 | TBD | Amazon |
| 6 × 6 mm tactile switch | SELECT → GPIO7, HOME → GPIO2, START → GPIO20 (other leg → GND, INPUT_PULLUP) |
Menu buttons (−, HOME, +) | 3 | Already owned | — |
| Adafruit LIS3DH accelerometer (2809) | SDA → GPIO8, SCL → GPIO9, INT1 → GPIO21, VIN → 3V3, GND → GND | Shake detection, mapped to a "shake" button | 1 | $4.95 | Adafruit |
| Vibrating Mini Motor Disc (1201) | + → 3V3, − → AO3400A drain | Rumble | 1 | $1.95 | Adafruit |
| AO3400A N-channel MOSFET | Gate → GPIO10 (100 Ω series, 10 kΩ to GND), source → GND | Motor driver (add a flyback diode across the motor) | 1 | TBD | — |
| Silicone button caps | — | Button covers | 1 set | TBD | AliExpress |
| Silicone joystick caps | — | Thumb grip | 1 set | TBD | Amazon |