Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: eagle00789 on June 17, 2007, 08:43:02 pm

Title: buttons through gameport?
Post by: eagle00789 on June 17, 2007, 08:43:02 pm
I build the following thing (changed 1 potmeter by a button and left 2 potmeters out)
(http://www.vsi.ru/~sva/comp/gpm.gif)
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)
Title: Re: buttons through gameport?
Post by: BobA 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.



Title: Re: buttons through gameport?
Post by: eagle00789 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??
Title: Re: buttons through gameport?
Post by: BobA 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.

Title: Re: buttons through gameport?
Post by: eagle00789 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?
Title: Re: buttons through gameport?
Post by: BobA 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.
Title: Re: buttons through gameport?
Post by: eagle00789 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.......)
Title: Re: buttons through gameport?
Post by: eagle00789 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...)
Title: Re: buttons through gameport?
Post by: eagle00789 on June 21, 2007, 04:59:50 pm
anybody???

I can start building if it is correct now..
Title: Re: buttons through gameport?
Post by: BobA 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.



Title: Re: buttons through gameport?
Post by: eagle00789 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)
Title: Re: buttons through gameport?
Post by: eagle00789 on June 21, 2007, 05:56:56 pm
p.s. i'm not using the 2n3906 transistor but the 2n3905
Title: Re: buttons through gameport?
Post by: eagle00789 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...
Title: Re: buttons through gameport?
Post by: BobA 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:
Title: Re: buttons through gameport?
Post by: eagle00789 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)