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 hook up a pot and a button to the PC gameport?  (Read 920 times)

0 Members and 1 Guest are viewing this topic.

IceCold

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 350
  • Last login:March 22, 2010, 05:11:22 pm
    • My MAME cabinet webpage
How do I hook up a pot and a button to the PC gameport?
« on: July 18, 2003, 11:45:51 am »
I would like to hook up 1 potentiometer and 1 button to the gameport.  I would like the pot to be the horizontal axis, and the button to be button 1.  I've seen gameport pinouts on the internet, but when I tried hooking it up, windows wouldn't recognize it.  Is there any way to do this?

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:How do I hook up a pot and a button to the PC gameport?
« Reply #1 on: July 18, 2003, 01:40:55 pm »
I'm currently working on an analog wheel and pedal set up. I think the problem you are having is that Windows is looking for the Y axis before it accepts your wiring as a joystick.

There are ways around this.  You can just hook a spare potentiometer to the y-axis or a resister (since a pot is just a variable resistor).

The other possibility is that your wiring is wrong.  I would add the other axis first to see if that fixes it.


Rocky

IceCold

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 350
  • Last login:March 22, 2010, 05:11:22 pm
    • My MAME cabinet webpage
Re:How do I hook up a pot and a button to the PC gameport?
« Reply #2 on: July 18, 2003, 03:11:18 pm »
I'm currently working on an analog wheel and pedal set up. I think the problem you are having is that Windows is looking for the Y axis before it accepts your wiring as a joystick.

There are ways around this.  You can just hook a spare potentiometer to the y-axis or a resister (since a pot is just a variable resistor).

The other possibility is that your wiring is wrong.  I would add the other axis first to see if that fixes it.


Rocky

Okay, I was wondering if it needed to have 2 axis's.  I'll wire up an additional potentiometer and see if it fixes it.  If it works I'll figure out the type of resistor I need for the y axis to  be in the middle, and then add one.

Tailgunner

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1156
  • Last login:October 06, 2009, 01:21:16 pm
  • ...
Re:How do I hook up a pot and a button to the PC gameport?
« Reply #3 on: July 18, 2003, 06:38:27 pm »
Analog PC joysticks typically use 100k ohm linear taper pots, so a 50k ohm resistor should pass for the y axis pot.

http://www.monmouth.com/~lw4750/ Lew's wheels is a good reference for such projects.

Butch...