Snooping on a PS2 controller...
Bamse
Posts: 561
Howdy...
I was able to read the PS2 controller using the article in Nuts and Volts from September 2003...
http://www.parallax.com/dl/docs/cols/nv/vol4/col/nv101.pdf
Now I want to figure out how to use the actuators (feedback) in the pad and my plan is to snoop on a pad hooked up to Playstation...
I have a PS2 Linux Kit so I can programatically send commands to the pad so I would know what command I'm snooping on...
The plan is just to hook up three pins on the BS2 to pin 2 (PsxCmd), 6 (PsxAttn) and 7 (PsxClock, inverted with the 2N3904) on a connected pad...
Would I need a resistor between the pad and the BS2 ???
Then send commands every three seconds and try to snoop on these by waiting for Attn to go low and do a SERIN from the PsxCmd...
Does this seem like a reasonable approach???
Jon Williams had a recent article in N&V where he put up a Professional Development Board and I sent him a PM earlier to see if the PDB was still up for grabs...
He has already received feedback and he might already have the information to do this...
Anyhow, this would be my weekend project, a good learning experience so to say...
/Bamse
I was able to read the PS2 controller using the article in Nuts and Volts from September 2003...
http://www.parallax.com/dl/docs/cols/nv/vol4/col/nv101.pdf
Now I want to figure out how to use the actuators (feedback) in the pad and my plan is to snoop on a pad hooked up to Playstation...
I have a PS2 Linux Kit so I can programatically send commands to the pad so I would know what command I'm snooping on...
The plan is just to hook up three pins on the BS2 to pin 2 (PsxCmd), 6 (PsxAttn) and 7 (PsxClock, inverted with the 2N3904) on a connected pad...
Would I need a resistor between the pad and the BS2 ???
Then send commands every three seconds and try to snoop on these by waiting for Attn to go low and do a SERIN from the PsxCmd...
Does this seem like a reasonable approach???
Jon Williams had a recent article in N&V where he put up a Professional Development Board and I sent him a PM earlier to see if the PDB was still up for grabs...
He has already received feedback and he might already have the information to do this...
Anyhow, this would be my weekend project, a good learning experience so to say...
/Bamse
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
The output is always ""PsxIn: FF"...
I have some coding background, but Basic is new to me so I wonder if I did anything wrong in the code...
Electronics is totally new to me so it might be something wrong here too...
I measured the voltage between 4 (Vss) and 5 (Vdd) on the PS2 pad and it's 3.5 V...
Shouldn't that be enough for the BS2 to detect a High signal ???
The programming of the PS2 pad seem to work fine, I turn on the actuator for 3 seconds then turn it off for 3 and loops...
Another strange thing is that my results are displayed out of sync with my commands sent to the pad so I wonder if I can read Attn properly at all...
/Bamse