Converting an Arcade Spinner for Arcade1UP to PC/Mister

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
dekkit
Posts: 3
Joined: Fri Aug 16, 2024 7:54 am
Has thanked: 2 times
Been thanked: 3 times

Converting an Arcade Spinner for Arcade1UP to PC/Mister

Unread post by dekkit »

I couldn't find any existing Arduino projects to convert these clone 1up arcade spinners to USB - so I decided to try it myself.

These are originally designed as replacements for 1up arcade machines.

The rotary encoder used in these doesn't quite output like other encoders and confuses the encoder sampling code used in many other Arduino projects.

I took the code from the spinjoy project, and rewrote the encoder reading procedure and managed to get something that works great for my needs without breaking spinjoy capabilities (ie lots of buttons, joystick/mouse/paddle output).

Image

download (2).jpeg
download (2).jpeg (5.67 KiB) Viewed 2393 times

If you want to add one of these spinners into your setup, I've posted the .ino file on my GitHub.

https://github.com/dekkit/SpinJoy_EA-JM ... er_Edition

Missus
Posts: 183
Joined: Fri Jan 27, 2023 12:45 am
Has thanked: 48 times
Been thanked: 43 times

Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister

Unread post by Missus »

dekkit wrote: Fri Aug 16, 2024 12:09 pm

I couldn't find any existing Arduino projects to convert these clone 1up arcade spinners to USB - so I decided to try it myself.

These are originally designed as replacements for 1up arcade machines.

The rotary encoder used in these doesn't quite output like other encoders and confuses the encoder sampling code used in many other Arduino projects.

I took the code from the spinjoy project, and rewrote the encoder reading procedure and managed to get something that works great for my needs without breaking spinjoy capabilities (ie lots of buttons, joystick/mouse/paddle output).

Imagedownload (2).jpeg

If you want to add one of these spinners into your setup, I've posted the .ino file on my GitHub.

https://github.com/dekkit/SpinJoy_EA-JM ... er_Edition

nice writeup!
thank you for your work and sharing your code!

dekkit
Posts: 3
Joined: Fri Aug 16, 2024 7:54 am
Has thanked: 2 times
Been thanked: 3 times

Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister

Unread post by dekkit »

Thanks!

Also for those on an extreme budget / don't have a spare arduino / don't want to buy extra parts and just want a super easy spinner to make....

... feel free to try out this easy and reversible 'mouse to spinner' hack too

https://github.com/dekkit/Strap-On-Mouse-Spinner

(It works really great for what it is!)

Hetzen
Posts: 147
Joined: Thu Oct 14, 2021 1:55 pm
Has thanked: 77 times
Been thanked: 45 times

Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister

Unread post by Hetzen »

Very interesting. Timely for me, as I'm putting together my take of a Couchcade. I'd have to make a break out board for this I think, don't suppose you've got that in mind? I've got a GRS joystick/button interface and the 12in1 for the spinner/trackball. Fed into a USB hub. This would be way more compact. Do you know if the GRS trackball would work with that code? The GRS spinner on the 12in1 interface can be set to x or y mouse axis depending which plug you attach it to.

dekkit
Posts: 3
Joined: Fri Aug 16, 2024 7:54 am
Has thanked: 2 times
Been thanked: 3 times

Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister

Unread post by dekkit »

short answer:
not sure / Probably need more adjustment.

You can easily modify the code though.

For the spinner ...spinjoy outputs both x/y for mouse (so when you plug it in to a PC the mouse cursor goes in a diagonal line).

In mame PC, I just set it to respond to mouse X axis and it worked fine. Although it's easy comment out the values you don't need in the code to make it work better for your use case if you want to force a mouse axis.

I have not played with the trackball one yet so couldn't say. If it's similar (ie has a K3 K4 output which is NC NC in my spinner pcb ) to handle an extra axis then it should be possible.

You could change 2 input pins from being buttons to monitor them for interrupts and adjust drvproc to handle the extra 2 inputs (c and d).

The adjust the mouse line to take separate x and also y values.

Eitherway uncomment the serial print lines would best way to find out what data it's sending.

Post Reply