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: buttons through gameport?  (Read 2584 times)

0 Members and 1 Guest are viewing this topic.

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
buttons through gameport?
« on: June 17, 2007, 08:43:02 pm »
I build the following thing (changed 1 potmeter by a button and left 2 potmeters out)

but it only works when i press the button wich i switched for a potmeter. How can i get the entire thing to work? (i also left the part out where i can hook up some leds, because i dont need them)

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: buttons through gameport?
« Reply #1 on: June 17, 2007, 09:22:10 pm »
On the game port you cannot change a pot to a button.  The pots are fed by 5v and go to analog ins whereas the buttons are grounded and go to a digital in.

A regular gameport is wired like the first drawing

To make the analog inputs digital you have to have a circuit like the second drawing or just hack a gamepad.



« Last Edit: June 17, 2007, 09:26:41 pm by BobA »

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #2 on: June 18, 2007, 06:25:47 pm »
so basicly to add 1 extra button to this layout i have posted above, i can use only 1 part of the digital converter (used for 2 buttons, but only add one of them then), and leave the other as a potmeter??

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: buttons through gameport?
« Reply #3 on: June 18, 2007, 09:04:11 pm »
Right, you can only use digital ins (buttons) for buttons unless you add the added circuitry to change a pot (analog in) to mimic digital signals.


eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #4 on: June 19, 2007, 05:06:01 pm »
in that case i'm off to buy a few components (if read correctly, i need 3x 47k ohm resistors and 1x pnp 2n3906 transistor) or can i use any pnp transistor?
« Last Edit: June 19, 2007, 05:07:48 pm by eagle00789 »

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: buttons through gameport?
« Reply #5 on: June 19, 2007, 05:45:28 pm »
The transistor listed is a fairly common general purpose transistor so almost any PNP will work. You are driving the transistor into saturation so the specs of its operating curve are not important.

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #6 on: June 19, 2007, 06:09:43 pm »
thx for all the help i've been getting here. it was surely very helpfull. thx mate :D (p.s. if i need anymore help, i will ask in this forum.......)

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #7 on: June 21, 2007, 09:49:37 am »
I have bought all the components now, but first i wanted to check if i have my schematic correctly now. so if you have any comments or suggestions, then please let me know (also let me know if the schematic i have posted now is correctly...)

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #8 on: June 21, 2007, 04:59:50 pm »
anybody???

I can start building if it is correct now..

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: buttons through gameport?
« Reply #9 on: June 21, 2007, 05:35:55 pm »
Looks to me like it is wired up to register a down on joy 1 when the button is pushed.  Not sure what you are trying to do with that button.




eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #10 on: June 21, 2007, 05:43:42 pm »
it's infact a right on joy 1 but this schematic is going inside my pc inside a bracket actually, so that i can control winamp (and other music players) with it and the pot-meter is for volume control.... (the five buttons are for: Previous song, Play, Pause, Stop, Next Song)
« Last Edit: June 21, 2007, 05:45:13 pm by eagle00789 »

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #11 on: June 21, 2007, 05:56:56 pm »
p.s. i'm not using the 2n3906 transistor but the 2n3905

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #12 on: June 23, 2007, 06:02:32 pm »
i've got it working and i will post a working schematic later, because to get it working i had to modify my own made schema a lot...

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: buttons through gameport?
« Reply #13 on: June 23, 2007, 06:32:45 pm »
Glad you got it going.   Any info that you can provide will help someone down the line.

 :applaud: :applaud:

eagle00789

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10
  • Last login:June 29, 2007, 06:18:42 pm
Re: buttons through gameport?
« Reply #14 on: June 24, 2007, 11:40:55 am »
Some wires have new connection points. but if you look closely, you can see that i had to hotwire pin 9 11 and 13 to get the thing to be seen by windows. if you leave that bit out, windows doesn't recognise it. also, you can add leds by putting the led over a button (only the below 4 buttons and not the top button)