Wiring PS1 Pad direct to GPIO?
-
Having had issues getting two pads to work seamlessly with my RPi2 using usb adapters, I was wondering if its possible (and if there's a visual guide anywhere) to wire the pads direct to the RPi.
This is for a project using a PS1 case so my goal is to wire the controller board direct to RPi and then use original pads in original ports. (to clarify, I'm using 1st gen pads, so no analog)
-
@bobchiba i have a playstation 1 modded with a pi. I use a 2 port usb adapter wired to the front ports. What is the problem you are having?
-
said in Wiring PS1 Pad direct to GPIO?:
This is for a project using a PS1 case so my goal is to wire the controller board direct to RPi and then use original pads in original ports. (to clarify, I'm using 1st gen pads, so no analog)
A website problemkaputt.de describe all the psx dualshock protocol.
If you want to request the simple playstation pad without analog you must send with correct clock frequency to the pad, allway in inverse voltage (must be set ON, off state is a pressed button)
request :
0x00 (start request)
0x42 (request jeystate)
0x00
0x00
0x00
0x00
0x00
0x00 (6 bytes to poll the buffer)
Respone of the pad
0xFF
0x41 pad Id
0x5E acknoledgement
0xXX Button state
0xXX Button state
0xXX analog state
0xXX analog state
0xXX analog state
0xXX analog stateIf you have a analog pad, the protocol is most complicated in the case of you want to activate the red led, the analog mode, and the vibration. i can't post the link in my office because the link is filter by proxy.
-
yes, you can use PSX controllers connected to the GPIO pins using the gamecon driver (in the driver's section of retropie setup). I use it for my SNES pads, but the PSX is supposed to work. I think there is some kind delay or something to the polling of those you have to configure however, for performance reason. So it may not be super simple.
Not a step by step, but a start at least:
https://github.com/retropie/retropie-setup/wiki/GPIO-Modules
-
@edmaul69 what adapter did you use, I've used 2 that were duds/had issues.
-
i use the twin shock that comes in a clear blue case.
-
@edmaul69 yeah new too but only got one pad to work??? Maybe was a dud. I'll order another and see. Thx
-
@bobchiba yeah. No clue. What bothers me about these if you arent putting it inside the playstation 1 like i did is the first player is on the right. I dont recommend buying any single player versions. They still read as two controllers and the port you have to use is player 2. The radio shack one is the only true single player one. Also look at the solder points on the bad controller port. Do they look like bad soldering? One of the pins doesnt get soldered
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.