Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How do I wire up a joystick with pots?  (Read 1484 times)

0 Members and 1 Guest are viewing this topic.

griffindodd

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1536
  • Last login:August 03, 2025, 07:22:18 pm
  • Builds Stuff
How do I wire up a joystick with pots?
« on: September 10, 2012, 06:38:37 pm »
I'm looking at some bits and pieces for some experimentation.

I'm trying to work out what I need to wire up an analog joystick with pots (~5k) to emulate a mouse movement or X/Y axis for Mame control. I'm not very good at this electronics stuff, so if you keep it very basic I'd appreciate it. I do own an optipac if that's usable for this situation.

Here's the pins on the stick pots

1) x-axis output
2) +5V
3) y-axis output
4) gnd

Thanks for any help
« Last Edit: September 10, 2012, 06:46:06 pm by griffindodd »
I drink and I know things.

Nephasth

  • Guest
  • Trade Count: (0)
Re: How do I wire up a joystick with pots?
« Reply #1 on: September 10, 2012, 06:47:31 pm »
Joystick to emulate a mouse?... Just plug it in to the USB port.

griffindodd

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1536
  • Last login:August 03, 2025, 07:22:18 pm
  • Builds Stuff
Re: How do I wire up a joystick with pots?
« Reply #2 on: September 10, 2012, 06:58:08 pm »
I drink and I know things.

Nephasth

  • Guest
  • Trade Count: (0)
Re: How do I wire up a joystick with pots?
« Reply #3 on: September 10, 2012, 07:03:37 pm »
I believe you would need an A-PAC (or similar device), rather than an Opti-PAC.

griffindodd

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1536
  • Last login:August 03, 2025, 07:22:18 pm
  • Builds Stuff
Re: How do I wire up a joystick with pots?
« Reply #4 on: September 10, 2012, 07:05:23 pm »
I believe you would need an A-PAC (or similar device), rather than an Opti-PAC.

Thanks I will research that
I drink and I know things.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9273
  • Last login:August 19, 2025, 03:10:32 pm
  • ...
Re: How do I wire up a joystick with pots?
« Reply #5 on: September 10, 2012, 07:58:50 pm »
A-PAC, U-HID or U-HID Nano.  All from Ultimarc.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: How do I wire up a joystick with pots?
« Reply #6 on: September 10, 2012, 08:38:42 pm »
Or change the pots to 100K and hack any windows controller.  Do a search for star wars yoke controller hack.  Same principles apply.  I have a UHID I'll be using on the speeder build but I've done multiple board hacks and they are very straight forward, plus, if you miss wire it you're not really going to fry anything, you can just fix it. 

MacGyver

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:December 18, 2023, 12:49:00 am
    • Project Build
Re: How do I wire up a joystick with pots?
« Reply #7 on: September 11, 2012, 02:54:12 am »
I use 5k pots, and an U-Hid Nano.  The Nano's inputs are configurable, so I program the Nano's pins so that one is +5v and put it on the outside of the three leads on the pot, one as -5v (gnd) and put that on the opposite side of the pot's connecters, and then configure one pin as analog input and wire it to the middle lead on the pot.  I repeat this for the other axis.  I then program 3 more pins, one as the common, and wire it to my buttons common (2 of them), then each of the other pins to the button wires, and program them as button inputs in the Nano.  I then adjust the gains (in the Nano programming utility), and calibrate it in windows.  Then I'm done, I just configure MAME (Afterburner and the like) to use that analog input.