nfg.forums

NFG Forums => Controller Technic => Topic started by: Pingu on February 27, 2004, 05:28:26 PM

Title: Playstation controller decoding
Post by: Pingu on February 27, 2004, 05:28:26 PM
Does anyone know how to decode the playstations signals to pure on/off logic? There is a PS->neo-geo converter wich basically does the same thing but it only suport 4 buttons (I need at least 5) and it has alot of useless stuff like using analouge sticks, autofire and slowmotion (oscilating the start button <_<). Schematics, products, every tipp is apriciated.

/Pingu
Title: Playstation controller decoding
Post by: Guest on March 01, 2004, 05:26:59 AM
All together now...

Buy yourself a cheap-ass digital PSX pad, open it up, and solder your wires for your switches to the button terminals.

There you go.
Title: Playstation controller decoding
Post by: Pingu on March 01, 2004, 06:51:19 AM
Erm... I want a decoder, so that people can use their own ps arcade sticks in it. Not only use one hardwired controller.
Title: Playstation controller decoding
Post by: Guest on March 01, 2004, 08:30:53 AM
Is it so hard to give him a polite answer ???

Try out this side. It's a description of both, playstation pad and memory card:

www.classicgaming.com/aec/css/pad_and_mem_card_data.txt

Greez VPCoder
Title: Playstation controller decoding
Post by: Pingu on March 04, 2004, 05:53:56 PM
Thanks, getting closer at least. Not good enough with electronics to think out a way to do anything with that document though. ^^;
Title: Playstation controller decoding
Post by: NFG on March 04, 2004, 06:13:06 PM
There's not going to be an easy way to do this, no solution will require anything less than a PC and its parallel port, or custom-programmed microcontrollers to decode a PS pad.  The actual physical connection part is easy, it's the software that's a pain.  
Title: Playstation controller decoding
Post by: VPCoder on March 05, 2004, 08:37:08 AM
QuoteThanks, getting closer at least. Not good enough with electronics to think out a way to do anything with that document though. ^^;
QuoteThanks, getting closer at least. Not good enough with electronics to think out a way to do anything with that document though. ^^;
I'm sorry, but this is really not true. I am by myself, developing an interface for Sony Playstation Pad to PS/2 Mouse & Keyboard.

The easier part of software, I've done -> Decoding the Pad.

I just have to write the documentation (in German), draw a schema and find a good way to connect the Game Pad to my circuit (kind of DIN Connector to switch between Playstation and my Interface).

My Software is written in assembler for a Microchip PIC16F628. PowerOn-Reset, Oscillator and also PullUps are integratet in this microcontroller, so you just need this one component, nothing else.

As soon as I've completed the software I will give this project free. I think it would be finished in a week or two (depends on my sparetime).

If you're interested in more infos, please feel free to ask.

Greez VPCoder
Title: Playstation controller decoding
Post by: VPCoder on March 05, 2004, 08:58:02 AM
QuoteAs soon as I've completed the software I will give this project free. I think it would be finished in a week or two (depends on my sparetime).

Sorry a mistake. I meant, as soon as I've completed the DOCUMENTATION, I will give this project free. The software of course IS completed

Greez VPCoder
Title: Playstation controller decoding
Post by: Pingu on March 05, 2004, 07:27:48 PM
Oooh, neat. How much are we speaking of in parts for 4 units under 200euro?
No problem with the documentation being in German either.
Title: Playstation controller decoding
Post by: VPCoder on March 05, 2004, 09:27:57 PM
QuoteOooh, neat. How much are we speaking of in parts for 4 units under 200euro?
No problem with the documentation being in German either.
Money ??? Do you really wan't to pay ???  :D  :lol:  :D

To clear some things :

- I will NOT offer any complete units to buy
- I will give people, who are interested in this project, the hole documentation
  -> Word doc
  -> Schema
  -> PIC Software (Hex-File and Source too)

And the best of all this -> everything is for free. I hate this guys that want money for every little project, they do. I like to use open source and free ware. So it's ok for me to give my projects also for free.

Greets VPCoder
Title: Playstation controller decoding
Post by: Pingu on March 11, 2004, 08:48:03 AM
I wonderd how much money I needed to spend on buying the parts for it, most of the things should be quite inexpensive but those microcontrollers could cost a bit, thats why I asked. I'd really be in your debt if I got your documentation, your schematics and the program you wrote for it though. ^^;;
Title: Playstation controller decoding
Post by: Agentspikey95 on March 11, 2004, 01:41:33 PM
i'd like to find out how to use my genny controller on my PC thru the serial port. will i need to write microcontroller software? i know the genny takes on/off logic, because i was able to use atari 2600 sticks on there.....
Title: Playstation controller decoding
Post by: Pingu on March 12, 2004, 02:39:36 AM
There are decoders availible for the megadrive controllers at least so you could hack a standard Pad if you make one of those decoders.
Title: Playstation controller decoding
Post by: mdzafri on March 13, 2004, 01:09:23 PM
hello all,

VPCoder, i read your suggestion on using the PIC16F628 as the interface controller.  i am very interested in your project.   im currently trying to make a general decoder for the Playstation Controller to eventually control robots.  would it be possible for me to find out more information or is there any way for me to contact you?  thanks.  

Xeus
Title: Playstation controller decoding
Post by: VPCoder on March 14, 2004, 02:24:54 AM
Hi there,

first of all, the part of the cost. Small PIC microcontrollers are really cheap. Look there on the Microchip (the manufacturer of PIC) Website:

http://asp.microchip.com/wwwParamChart/cha...&mid=&gdir=1010 (http://asp.microchip.com/wwwParamChart/chart.aspx?branchID=1002&mid=&gdir=1010)

And look there for PIC16F628(A) -< the A is just a die shrink
There should be anywhere in the table the costs of each controller. These cost's are not definitvely but give a direction of the price.

@mdzafri :
I will shortly register my account here in gamesx, then you could send me PM, because I don't wanna post my email to the public (fucking spam :angry: )
But as I posted before, the documentation is in german...it seems, I have to rewrite it in english (this becomes funny  :lol: )

You will hear from me
Greez VPCoder
Title: Playstation controller decoding
Post by: VPCoder on March 16, 2004, 02:58:45 AM
I am registered now. If someone would contact me, send me a private message.

Greez VPCoder
Title: Playstation controller decoding
Post by: Pingu on April 16, 2004, 12:47:13 AM
A little bump and wondering about the progress.
Title: Playstation controller decoding
Post by: spidyr_designer on April 22, 2004, 04:10:43 PM

the ps2 controller is amazing
what output do you require?
need to drive motors, switch solenoids, drive relays?

pulse width control from the joystick outputs is a distinct possibility
Title: Playstation controller decoding
Post by: ps2_realizer on April 22, 2004, 05:34:54 PM
hope i can help

there is a standalone chip which does this

it offers 14 digital outputs, representing the fourteen buttons on the handheld controller

the connection is simple and well documented (wire colours to chip pins)

the connector which mates to the ps2 controller is also available

the chips are $31 @ qty 1
and the connectors $14

spidyr_designer@yahoo.ca

Title: Playstation controller decoding
Post by: VPCoder on April 22, 2004, 09:44:07 PM
Hi all,

>>A little bump and wondering about the progress.
Sorry Pingu for the long delay. I had to rewrite parts of the software. I've tested the new software today. The PIC gives you 10 Button Signals (TTL) : UP, DOWN, LEFT, RIGHT, RECTANGLE, TRIANGLE, CROSS, CIRCLE, L2 and R2.

I hope I can finish this project in the next days.

@ps2_realizer:
>>the chips are $31 @ qty 1

Wow, expencive thing :-D
My MicroChip PIC (also single chip) costs about 2 or 3$ and my software is free.

Greets VPCoder
Title: Playstation controller decoding
Post by: Cryno on April 24, 2004, 02:57:02 AM
VPcoder
So is your project supposed to allow for the use of a keyboard and mouse instead of the controller?  
Title: Playstation controller decoding
Post by: Guest on April 25, 2004, 12:16:16 AM
Hmmm, sorry Cryno,

I don't know what exactly you mean. Could you explain me, what exactly do you want to do ?

Greets VPCoder
Title: Playstation controller decoding
Post by: Cryno on April 27, 2004, 03:40:32 AM
Sorry, let me try this again.  What is you project designed to do?  The first time I read it I thought you were intending to replace the Playstation controller with a keyboard and mouse as the interface to the console.  Then after reading it again I'm not quite sure if that's your intention.  Personally I am looking to find a way to replace the controller with a mouse and keyboard, thus the reason I thought that's what you were doing.  Wishful thinking I guess.
Title: Playstation controller decoding
Post by: VPCoder on April 27, 2004, 08:25:07 AM
Hi Cryno,

it seems, you understood my project in the wrong way. What I do is to simulate the port of a PS Box and read out the buttons of a Sony Game Pad. This button signals are now accessable as 10 parallel signals. With this signals you can control a motor or anything similar, whatever you want.

Next step I do is to translate this button signals into a PS/2 protocol. Then I can access the mouse of my living room PC with the analouge sticks of my game pad. I also can produce keyboard codes for each button. This is useful if you like to play games through emulators like WinUAE, where you emulate the joystick with the keyboard.

Greets VPCoder
Title: Playstation controller decoding
Post by: Cryno on April 27, 2004, 11:38:54 PM
I see, that's cool, good luck in getting it done :).