| Main > Main Forum |
| buttons through gameport? |
| (1/3) > >> |
| eagle00789:
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:
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. |
| eagle00789:
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:
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:
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? |
| Navigation |
| Message Index |
| Next page |