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.

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.