Home Forums PS2X PlayStation 2 Controller Library Support Forum Unknown Controller Type (ACK issue?)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3276
    Anonymous
    Inactive

    Hi,

    I am working on a project to control a PTZ camera with a PS2 controller, and getting the PS2x example sketch to recognize my controller is the next step.

    I have downloaded the latest version of the PS2X library from GIT, I followed the readme instructions to install the library and related files, then was able to open the example sketch, and compile it to run on my Uno board.

    I am using an original Sony Analog PS2 controller with this number on the bottom :   SCPH-10010

    I was not sure about how to connect the controller, because the image shown at

    http://www.lynxmotion.com/images/jpg/wire08s.gif

    references using pins 15, 14, 13, 12  (but pin 14 is gnd and 15 is aref on my uno board)

    The diagram also says ack is N/C (not connected?)…

    but the image of the lynxmotion cable shows it may be one of the wires with a single connector to be plugged in somewhere…. http://www.lynxmotion.com/p-73-ps2-controller-cable.aspx

    So I read through the code and found this:

    ps2x.config_gamepad(13,11,10,12, true, true);

    //setup pins and settings:  GamePad(clock, command, attention, data, Pressures?, Rumble?)

    That takes care of (4) of the pins in the lynx cable photo.

    +5 and gnd are the other (2) that share a pin block….

    and there are two singles ones… vin (for rumble motors) and ack (it seems)…. not sure where ack goes.

     

    I enabled debug messages and here is the serial monitor output after enabling debug mode:

    OUT:IN
    1:0 42:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    OUT:IN
    1:0 42:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    Controller mode not matched or no controller found
    Expected 0x41 or 0x73, got 0
    No controller found, check wiring, see readme.txt to enable debug. visit http://www.billporter.info for troubleshooting tips
    Unknown Controller type

    I have also tried powering with  5v and 3.3v

    Pressing the Analog button will light the LED, but I get the “no controller found” response from the program when I reset the Uno.

    Is this due to a missing ACK ? Other ideas or suggestions are welcomed.

    Thanks for the work on this library. it compiles nice !

    Regards,

    Gary_G

    #3277
    Anonymous
    Inactive

    oops,

    I forgot the pullup resistor. Once I added the resistor as shown here, it worked.

    http://www.billporter.info/wp-content/uploads//2011/03/Pull_Up_Resistor_Circuit.png

     

    I SAW that before, just did’nt DO THAT.

     

    Thanks again for the solid code example.

    #3279
    Bill
    Member

    Yep, ACK and rumble power are not needed. Glad you got it to work.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.