Gamepad help
musictech
Posts: 54
I have to pick between two controllers to be used in a project.· They are both basically the same price and layout.· One is for playstation 2 the other is a usb connectable for a PC.· The only deciding factor I have is ease in doing code and the amount of stamps I have to use.· I am connecting 6 to 10 of these to a project.· I have seen the ps2 code, but haven't seen anything on pc gamepads.· Anyone know which would be easier in using?
·
·
Comments
·http://www.parallax.com/dl/docs/cols/nv/vol4/col/nv101.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Do you remember the gauge of wire used in the ps2 controllers. I want to use an RJ-45 and some ethernet cable so I can unattach the controller when I want.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I need to connect a few playstation controllers to a stamp (8 total, but I figure I will only get about half that). Anyway to trim down the code so that I can use multiple controllers? Also, is there a way to wire it up that I can use less pins?
Thanks
Pins:
SData --> Data out to 595 and to (shared) PsxCmd pin on PSX controllers
SClk --> Clock out to 595 and to inverter that goes to (shared) PsxClock pins on PSX controllers
Latch --> Latch out to 595
PDataIn --> Connect to shared PsxDat line
My schedule is really busy right now, but maybe in a couple months I will make a serial adapter for the PSX controller (I'll allow mutliples as you require) using the SX/B compiler.· That would allow BASIC Stamp users to get data from a PSX controller using SEROUT and SERIN.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I hope you can help me make sense of this too.
The PS2 Controller I have (turbo shock by intec) has a very different wiring pattern from what is listed in the nuts and volts article.· The pin out is as follows
·· ______
·/ Green |
|· None· |
|· Blue·· |
|
|
|· Black· |
|· Yellow|
|· Red··· |
|
|
|· Brown |
| Orange|
\ Violet· |
·
However, after taking the back off of one of the controllers I found these abreviations corresponding to where the wires hook up inside.
Brown·· clk
Yellow·· 3.5V
Green··· DI
Orange· DO
Red······ CS
Violet··· ACK
Black···· GND
Blue····· 7.5V
Now most of these are straight forward, but there is a few I have no clue which pin they correspond too.· Please help
Thanks
clk = clock
DI = data input
DO = data output
CS = controller select or clear to send (dont know which it would be, but I think it is the latter due to the presence of ACK)
ACK = Acknowledge
The others of course are power connections.
PsxClock = Clk
PsxCmd = DI
PsxDat = DO
PsxAttn = CS
the last one I am not at all certain of, can you trace the leads to find where the signals of ACK and CS terminate in the intec controller, ie does it connect to a chip? If so what is the part number on the chip and which pin is it connected to? Can you also do this for the DI and DO lines just to be sure Ive got it right, because depending on your reference point is the controller, then DI=PsxCmd, but if the reference point is the master then DI = PsxDat. (it is more likely that the labels are using the controller as the reference point)
Post Edited (Paul Baker) : 4/27/2005 6:07:23 PM GMT
Try the following experiment and tell me what your results are:
Apply all power signals to the controller
Then measure the resistance of each signal line by taking the measurement with repect to both ground and 5V.
If both measurements result in a high value, then the pin on the chip is an input.
If either measurement results in a sufficiently lower resistance value, the pin on the chip is an output.
The open collector output of the PsxData may be seen as a high impedance depending whether the chip is driving the line or not, even though it is an output so dont worry if both DI and DO seem to be inputs.
Post Edited (Paul Baker) : 4/27/2005 7:04:06 PM GMT
______
/ Violet |
| None |
| Brown|
|
|
| Red |
| Yellow|
| Black |
|
|
| Blue |
| Orange|
\ Green |
Using you test Paul, connecting the blue and yellow to 5V and black to ground, I get the following. Red, orange, and violet are outputs from the ps2 controller. Green and brown are inputs into the ps2 controller.
Kind of like shooting the horse to cure the disease but they will be done for tomorrow.