Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: PS2 gamepad hack question  (Read 2242 times)

0 Members and 1 Guest are viewing this topic.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
PS2 gamepad hack question
« on: November 11, 2006, 03:05:55 am »
I managed to pick up some Playstation 2 controller PCBs for next to nothing for a joystick-building project I am working on.  These are just bare PCBs with nothing on them but the main "cpu" (logic unit, or whatever it is).  No motors, no analogue sticks, no casing.  Just the raw PCB, logic, and cable to connect it to a console.

Interestingly enough, a PS2 will not boot into games with one of these plugged in.  I can boot a PS2 with a normal gamepad plugged in, and then insert one of these pads and it will work fine.  The buttons all appear in analogue mode without any dramas, and a circuit from the button input to VCC works in analogue mode.

I'm guessing that when a PS2 fires up it searches for working gamepads, and part of that search is the analogue componentry.  Seeing as I don't have the analogue thumbsticks *CONNECTED* to the PCB, it deems the pad non-functional.

Does anyone know anything about how these pads work?  I've bought some trimpots (potentiometers) from a local electronics shop that seem to match the resistance values of a genuine Sony PS2 Dual Shock that I have lying around.  I'm going to solder those on and try again.  But if anyone can point me in the right direction of what I need to do to get these PCBs reckognised on boot, I'd be greatful. 

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: PS2 gamepad hack question
« Reply #1 on: November 11, 2006, 07:15:22 am »
More investigation shows that the analogue thumbsticks do indeed have a default resistence when in the idle positions, which is why the pads don't function without them connected.  I bought some trimpots and am testing various combinations, but it's all flying blind so far.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: PS2 gamepad hack question
« Reply #2 on: November 12, 2006, 04:18:45 am »
I found an old MadCatz pad I had lying around and pulled the thumbsticks out of the circuit to measure them.  100K trimpots on them.  That might solve my dramas.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: PS2 gamepad hack question
« Reply #3 on: November 12, 2006, 06:58:29 am »
Nope, no joy.  The outputs from the analogue controls are still all over the shop.

*sigh*.  So much for my big plan to save some bucks when mass-producing sticks.  Back to hacking expensive Dualshocks, I guess. :(

MrQuan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 76
  • Last login:October 30, 2008, 03:47:14 am
  • Well, at least you threw a punch...
    • Tilt Arcade - Check it out!
Re: PS2 gamepad hack question
« Reply #4 on: November 12, 2006, 09:22:08 am »
If you have some dual-shocks, or third-parties there, couldn't you just hook up a multimeter and measure the resistance across the analogue sticks when in their 'home' position?  Then it would just be a matter of matching that by soldering resistors to the PCB.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: PS2 gamepad hack question
« Reply #5 on: November 12, 2006, 03:54:52 pm »
If you have some dual-shocks, or third-parties there, couldn't you just hook up a multimeter and measure the resistance across the analogue sticks when in their 'home' position?  Then it would just be a matter of matching that by soldering resistors to the PCB.
Third parties.  And I did exactly that - measured existing analogue sticks out-of-circuit, and replaced them with identical vertical potentiometers in the "home" position.  That still didn't work however.

MrQuan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 76
  • Last login:October 30, 2008, 03:47:14 am
  • Well, at least you threw a punch...
    • Tilt Arcade - Check it out!
Re: PS2 gamepad hack question
« Reply #6 on: November 13, 2006, 02:09:11 am »
100k doesn't sound right though???  - I dunno... they are third-party though.  I dismantled one of my dualshock2 controllers and measured the resistance.  It came out at 4kohms (give or take a few decimals).

I've marked up a photo below to show you how it should be wired, in theory.  ;)  Of course this is a Sony one, I'm not sure if thrid-parties are vastly different.  Anyways, resistors are only a few cents each so it's still worth a try I guess.


elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:January 13, 2025, 08:48:40 am
  • penguin poker
    • StickFreaks
Re: PS2 gamepad hack question
« Reply #7 on: November 14, 2006, 06:15:08 am »
I've marked up a photo below to show you how it should be wired, in theory.  ;)
Did you measure in circuit, or out of circuit?

Measuring in circuit yields incorrect measurements courtesy of the analogue trickery going on in these pads.

Measuring a third party pad I pulled apart in-circuit gave me readings of 2K.  Measuring out of circuit gave me 100K.  The reason is simple: remember the math behind calculating the residence in parallel versus in series.

I'll definitely give your markup a go with some resistors, but I have a funny feeling they will give me the same results.