I see i require a interface to work on pc or retro pie using mame. (Which would be best now)
If you can follow directions to load a firmware/EEPROM on an Arduino and maybe do some simple soldering, the KADE miniArcade 2.0 firmware would be a great choice.
- There are detailed instructions on how to connect and program rotary joysticks in the User Guide.
http://forum.arcadecontrols.com/index.php/topic,154126.0.htmlHere are some pinouts for boards that have been tested and should be available. (The Mattairtech boards are no longer available.

)
- The three purple "Rot1" (Player 1 rotation) and three "Rot2" (Player 2 rotation) pins handle the 12-position rotary switch inputs.
- If the board is missing some of the rotation inputs (see Pro Micro diagram), you can use a second board with the P1 rotation outputs changed to send P2 rotation keystrokes.
Micro:
- Many vendors offer these with pins already soldered on. Choose the Micro or the Leonardo if you have difficulty with basic soldering.

Leonardo:

Teensy 2.0:

ItsyBitsy32u4:

Pro Micro:
- "Rot. 2B" 32u4 pin #32 is not connected on this PCB so you'll need two Pro Micros -- one for each rotary joystick.

Also was wondering if there is a way to connect to a pandoras box. (Say a dx3000)Via a usb interface that would also incorporate the 8way (micro switches) and the buttons. All in one.
The Micros and buttons i understand how to connect to board. But the rotational mech would that insert into usb still through a interface?
I don't know if a Pandora's Box can use USB HID input devices.

If it does, the KADE miniArcade 2.0 firmware shows up as a USB HID keyboard.
Remember to change the MAME settings for each game as mentioned in the wiki and check that the MAME rotation inputs match the keystrokes sent by your KADE miniArcade 2.0.
http://wiki.arcadecontrols.com/index.php/Joysticks#MAME_Settings_for_Mechanical_Rotary_JoysticksScott