Playstation2 controller interface problem
I am trying to interface a Sony DualShock2 Playstation controller to my Basic Stamp 2 OEM. I am using the Adapter cable from LynxMotion to interface the two together. I got my information from the PlayStation Control Redux article, which is #101 in the Nuts & Volts Stamp App Articles section under Documentation in the July 2004 version of the Parralax CD. I built the interface circuit between the lynxmotion cable and the Basic Stamp on a perf board from radio shack. The only variation I had in the ciruit was that I changed the 2N3904 transistor to a 2N4400. I then downloaded the program from the Nuts and Volts FTP Library. When I downloaded the program it downloaded fine but the debug console said that the controller could not be found even though it appears to be hooked up correctly. With the program still running I pressed the "Analog" button on the controller and it lit up, signifying power to the controller. Tbe only changes I made to the program was that I replaced the IO line definitions with the following code:
PsxDat PIN 4
PsxCmd PIN PsxDat+1
PsxAtt PIN PsxCmd+1
PsxClk PIN PsxAtt+1
And made the corrisponding changes to the physical setup. I am still getting the controller not found message. I tested the inverter with my volt meter and it appears to work. I have no clue as to go about debugging this problem since lynxmotion cable and the code are not mine and should theoretically work. The controller s new and should work, even though I have never tested it. Any help would be greatly appriciated.[url=http://][/url]
PsxDat PIN 4
PsxCmd PIN PsxDat+1
PsxAtt PIN PsxCmd+1
PsxClk PIN PsxAtt+1
And made the corrisponding changes to the physical setup. I am still getting the controller not found message. I tested the inverter with my volt meter and it appears to work. I have no clue as to go about debugging this problem since lynxmotion cable and the code are not mine and should theoretically work. The controller s new and should work, even though I have never tested it. Any help would be greatly appriciated.[url=http://][/url]
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA