Wireless bluetooth arcade stick and push in spinner
I wanted to make a wireless arcade stick to use with games such as Forgotten Worlds and I liked the shape of this case. I have shortened it a little and made a few other adjustments. I also used an ESP32 Wemos Lolin32 lite board and a battery so it's fully wireless. The Arduino file to program the board is included.
Besides the printed parts you will need a few other hardware components.
- Sanwa JLF (or similar) joystick with 'S' plate and wiring harness
- 2x 24mm Sanwa (or similar) push buttons
- Wemos Lolin32 lite development board
- 3.7v Li-ion battery
- Incremental rotary encoder, I used this one (360P/R) - https://www.aliexpress.com/item/1005007074729403.html
- Some sort of 4 pin header and connector for encoder for easy removal (optional)
- Aluminium knob - https://www.aliexpress.com/item/32708316908.html
- m4 brass inserts
- m4 screws in various lengths
- micro switch
- 2x 18mm m3 screws and nuts for micro switch
- 3x 5mm (or 6mm) m3 screws for encoder
- spring, I used one I had spare, approx 10mm x 15mm
- adhesive felt (optional)
- hook up wire for push buttons
- USB panel mount extension - https://www.aliexpress.com/item/1005007619919381.html
- Ultra mini rocker switch - https://www.aliexpress.com/item/1005008300775110.html
- 3mm LED and 100 ohm resistor
- strong glue for joining pieces together
- tools, filler, paints, vinyl, etc for finishing the case
Wiring pinout to ESP32 is as follows:
Encoder:
A phase (green) - pin 18
B phase (white) - pin 19
VCC - 3.3v
Ground - GND
Joystick:
Up - pin 32
Down - pin 33
Left - pin 25
Right - pin 26
Push buttons
Coin/Credit - pin 27
Start - pin 14
Fire - pin 12
Procedure:
Print out the parts and assemble as shown in the pictures. For the encoder parts, I suggest to sand the inside of the Encoder1 part and the outside or Encoder2 to remove the layer lines otherwise you will get the grating noise as the pieces rub against each other.
Upload the sketch to the ESP32 board using the Arduino IDE software, you will also need the latest ESP32-BLE-Gamepad library from lemmingDev and NimBLE-Arduino by h2zero.