8000 GitHub - emilyahmad/game-controller: WIP - Custom game controller · GitHub
[go: up one dir, main page]

Skip to content

About

WIP - Custom game controller

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emoolii logo

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

Gameplay demo with working joystick and button controls on the breadboard prototype
Runthrough with my prototype

Schematic

Full KiCad schematic of the controller: ESP32-S3 SuperMini with labeled GPIOs, LIS3DH accelerometer on I2C with pull-ups and decoupling capacitors, AO3400A rumble motor driver with a 1N5819 diode, KY-023 joystick connector, and seven tactile switches (A, B, 1, 2, Select, Home, Start) each with an LED and 680 ohm resistor
Runthrough with my prototype

Components

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

About

WIP - Custom game controller

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0