Page 1 of 1
Converting an Arcade Spinner for Arcade1UP to PC/Mister
Posted: Fri Aug 16, 2024 12:09 pm
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).
- download (2).jpeg (5.67 KiB) Viewed 2391 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
Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister
Posted: Fri Aug 16, 2024 5:19 pm
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).
download (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!
Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister
Posted: Sat Aug 17, 2024 5:04 am
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!)
Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister
Posted: Sat Aug 17, 2024 6:21 pm
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.
Re: Converting an Arcade Spinner for Arcade1UP to PC/Mister
Posted: Sun Aug 18, 2024 2:18 am
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.