Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1840
    Anonymous
    Inactive

    So I just got a my controller hooked up to, and the code uploaded. However, it appears that there may be something buggy with my controller. I have a Sony branded Dualshock 2 controller. I have turned on debugging, and this is being reported constantly, without pressing any buttons:

    OUT:IN
    1:FF 42:71 0:10 0:FE 0:FF 0:73 0:70 0:0 0:4 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    Select is being held

    When I press Select, this is what I get:
    1:FF 42:71 0:10 0:FC 0:FF 0:73 0:78 0:0 0:79 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    Select is being held
    L3 pressed
    If I press Circle, this is what I get:
    1:FF 42:71 0:10 0:FE 0:9F 0:73 0:78 0:0 0:1 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    Select is being held
    Circle just pressed
    X just changed
    Pressing just X, I get:
    1:FF 42:71 0:10 0:FE 0:FF 0:73 0:78 0:C 0:3 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0 0:0
    Select is being held
    Square just released
    X just changed
    I have a 20k pullup resistor on the data connection. I can give you more combinations of button presses if that helps debug. Thanks.

    #1842
    Anonymous
    Inactive

    So, I got it working. I had to use the 5V line to power the controller. I will try to find my voltmeter to determine exactly how much voltage the 3.3V and 5V lines are giving. The other small change was I had 2 10K resistors in series to make my 20K of resistance. I bumped that down to 1 resistor and viola, everything worked. I will report back more of my findings once I find more tools.

     

    Things to note:

    Controller is official Sony Dualshock 2 controller

    Arduino is being powered by USB. Maybe not enough current? Will try 3.3V again with wall wart or battery pack.

     

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