• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

PSX Analog in N64 Controller

Status
Not open for further replies.

kylejw

Smash Rookie
Joined
Feb 13, 2009
Messages
6
I did a search on Google and found an old post here about fixing loose N64 joysticks. Just signed up here, figured some of you may be interested in a project I’ve been working on.
I’m sick of all my N64 controllers grinding away their joysticks so I decided to try and work out a permanent fix. The PSX joystick is the stick of choice because I found a used controller at EB Games for $10 and I’ve always liked the feel of the PSX stick. Xbox’s analog would be easy to adapt to what I’ve done as long as it’s stick isn’t for some reason really massive to the point that it won’t fit in the N64 controller case.

I toyed with a few ideas that I think could all work.

1. Physically attaching the N64 quadrature encoding wheels to the PSX stick. It’s tough to explain, but the two sticks have similar dimensions – so similar that I think this is possible. The PSX even has ‘nubs’ that stick out of the potentiometers that rotate with the stick.

Why didn’t I do this? Well frankly I think it would be very difficult to align everything perfectly, and you may lose some range of motion after all the effort in retrofitting. Not worth the hassle to me.

2. Replacing the current chip. The current chip is pretty big, and PICs today are available that are as good and better than this chip while being significantly smaller, so there would be room to solder in some jumpers. Unfortunately it has something like 84 pins (can’t remember exactly, but it’s a lot). Also, I hate troubleshooting interrupts as I don’t really have much in terms of equipment at my disposal. The other issue with this method is the controller memory card/rumble pack port. I don’t know how the signals coming out of this work and I’d need to redo the code for that myself. No fun.

3. Converting the PSX potentiometer’s voltage levels to mimic the N64’s quadrature encoded signal.

This is what I did. The PIC I used has a bunch of ADC’s so it was easy to read in the voltage, all I had to do was determine when the stick had moved a specific amount, then send a pulse on two lines separated by a quarter wavelength. Google quadrature encoding if you’re curious/confused about this part. In fact, the code I’m using was initially just to see if I could do this, but it ended up working so well that I’ve just kept it. I’m still leaning towards completely redoing it to give me more control over stick sensitivity.

4. Last but definitely not least, I considered intercepting the controller’s output data and patching the ‘stick position’ bits to the position my ADC’s read from the PSX analog.

Why didn’t I do this? To be honest I didn’t think of it until I had already started the method in 3. Otherwise, I probably would have. Maybe better I didn’t though as there is a timing aspect that I’d have to adhere to with this; and my oscilloscope is just the line-in port on my sound card. Not exactly state-of-the-art. It is very inaccurate and only works for a very limited frequency range (the same range that the human ear can hear).

Now onto the good part…
 

kylejw

Smash Rookie
Joined
Feb 13, 2009
Messages
6
First up, the test rig:


After I got everything figured out, I cracked the controller I wanted to use open


Using some 60 grit sand paper I chewed through the original thumbstick case. Once upon a time I had a Dremel that would have made this part cake, but sadly it's broken.


I ferric chlorided myself a nice little PCB that I didn't end up using, so it was pretty much a big waste of time.


New idea was to retrofit the stick into the N64 module, so the Z-button mounts properly


The new stick components


Cut up the back so I can route wires through it. The white line is whiteout that I put on the ridges of the controller case, then mounted the thumbstick, so I could see where the ridges ended up and place my microcontroller accordingly.


Inside view of the stick case, I broke off some little nubs that held the original stick hardware in place


New thumbstick module taking shape, the glue around the cover is kind of sloppy due to some careless sanding, but not much I could do at this point as I planned to make two n64 controllers from one PSX


PIC attached to the back of the case, Normally I wouldn't use hot glue on electronics like this as I have read some bad things about it possibly conducting electricity a tinnnny amount (can anyone confirm?), but it's all I had :)


Routing the wires needed for programming the chip


Rest of the wired soldered on, and covered with hot glue like an amateur. Unfortunately the only suitable wire I had is 30 AWG solid core Kynar, and I hate this stuff. It ALWAYS breaks on me so I just covered it with glue. Notice I had to move the chip over to the right side so it's by the original plug. Oops.


Another view of the completed circuit


In the above picture, note the two blue wires going across the width of the thumbstick module. They go over my white line, so I need to remove part of the plastic which may cut them when I put the controller back together



Finished product. Notice how sloppy the glue around the PSX border is. Ugh. I promise the other controller won't be as bad.


Programmer doing its thang


And thats it. I will have a Youtube video for you if it ever finishes uploading. I can't go back to the old joystick now. It really was the weakness of the N64 controller. Once I get the code down it will be perfect, but as of right now it is completely playable. I'm willing to bet most people would be happy with it but I'm not.
 

Daedatheus

Smash Lord
Joined
Jun 10, 2008
Messages
1,137
Location
Toronto & Kingston, Ontario
AWESOME...

I can't wait to see how this turns out, in a video. And to be sure that it never wears out (at least, not as quickly as the original N64 joystick) is worth a ton.

Good work man.
 

kylejw

Smash Rookie
Joined
Feb 13, 2009
Messages
6
Phew, took an hour to upload!

Video isn't the greatest. I had to play one-handed and kind of let the controller drift out of view near the end. Also would have been longer but my memory card mysteriously disappeared, so I had to make due with my old 256MB card.

http://www.youtube.com/watch?v=QFbFlmr-h2Q




Hmmm not sure how to embed the video...
 

kylejw

Smash Rookie
Joined
Feb 13, 2009
Messages
6
It's actually not laggy at all... I'll try to get a better video tomorrow. It is very responsive, almost too sensitive sometimes. The chip is running at 4 MHz and the code is very small. The original joystick only has a resolution of ~30 levels in each direction (each level corresponding to a larger joystick deflection), so at the speed of 4 MHz the chip is updating and capable of sending data far faster than a person's thumb could ever move the stick.

Not sure if what I just typed made any sense haha... it is getting kind of late here...
 

Surri-Sama

Smash Hero
Joined
Apr 6, 2005
Messages
5,454
Location
Newfoundland, Canada!
OMG, very nice...if you could get a GC stick to work like this...itd be god.

You know...i might try this myself, i have old controllers for both so why not :D

thanks for the idea!
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
You...try that? He didn't make a guide, I dunno if you can do this. Hell, I don't think I'd be able to do it well myself, but probably that's because hardware isn't my thing. I'm a software guy, the most I did hardware was tell my dad how to build my computer [he was way to curious with it that he wanted to do the whole thing practically himself, haha].

Still though, that's awesome. Probably if you find a way to do that stuff cheaply and quickly, you could sell the controllers for a profit. The controllers themselves can be used, which might lower the costs.
 

Surri-Sama

Smash Hero
Joined
Apr 6, 2005
Messages
5,454
Location
Newfoundland, Canada!
You...try that? He didn't make a guide, I dunno if you can do this. Hell, I don't think I'd be able to do it well myself, but probably that's because hardware isn't my thing. I'm a software guy, the most I did hardware was tell my dad how to build my computer [he was way to curious with it that he wanted to do the whole thing practically himself, haha].

Still though, that's awesome. Probably if you find a way to do that stuff cheaply and quickly, you could sell the controllers for a profit. The controllers themselves can be used, which might lower the costs.
Yes, this guy is the only person in the world who knows anything about hardwear..oh wait...nvm :o


I happen to have friends (omg yea!) that might be able to do this kind of thing

btw I am not as stupid as you might think. Internet conversations mean nothing...
 

Keep~

Smash Cadet
Joined
Jan 22, 2009
Messages
37
Location
Las Vegas, NV
Phew, took an hour to upload!

Video isn't the greatest. I had to play one-handed and kind of let the controller drift out of view near the end. Also would have been longer but my memory card mysteriously disappeared, so I had to make due with my old 256MB card.

http://www.youtube.com/watch?v=QFbFlmr-h2Q




Hmmm not sure how to embed the video...
i'll pay you to mod a n64 controller with a gc joystick.

EDIT: i can provide a gc and n64 controller
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
Yes, this guy is the only person in the world who knows anything about hardwear..oh wait...nvm :o


I happen to have friends (omg yea!) that might be able to do this kind of thing

btw I am not as stupid as you might think. Internet conversations mean nothing...
XD I'm not calling you stupid. It's just very very unlikely, from my perspective, that electrical engineering would be your specialty. :p Heck, I barely know anything about it and this is my third time taking Physics [I didn't fail the first 2, they were high school Physics, and the AP was w/o Calc, so I need to retake it WITH Calculus].

The only way to be able to do this without any extreme experience was if he left much more detailed instructions. The pictures may look good enough, but oftentimes, it'll come to a step that the picture alone won't explain.

Friends does change it though.
 

NixxxoN

Smash Master
Joined
Jun 16, 2008
Messages
3,726
Location
Barcelona
Thats awesome... Too bad you did it with a psx controller... sux for playing smash.

Joysticks in order from best to worst (imo)

1) GameCube
2) Xbox
3) PSX (but worst for smash)
4) N64 (but better than psx for smash)
 

chivesontheweb

Smash Cadet
Joined
Jun 14, 2008
Messages
33
Location
Tacoma, Washington
*looks over at N64 and PSX controllers*

...no. I'd just ruin both of them. :laugh: It's an interesting idea to say the least and it probably works fairly well if you can put it together properly. I've never been a fan of the PSX analog stick but I think that has more to do with its position than how well it actually works.
 

NixxxoN

Smash Master
Joined
Jun 16, 2008
Messages
3,726
Location
Barcelona
PSX sucks for playing smash because of location. If it had a better placement...well...I dunno what'd happen.
I dont agree, its the size and hardness of it that makes it bad and unprecise for smash. Plus the 360 direction thingy. Better to have 8 directions like nintendo ones.
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
...
...
...

WTF?

So you're saying that the location of the PSX stick is fine for Smash? Because what I said was "PSX stick is known to suck because of location, but I don't know how it is if it's in a good place". By saying "I don't agree", you're saying "the location is fine, it's the size/hardness that makes it bad".

I don't think you've ever touched a PSX controller. The location for the stick IS BAD. Your thumb has to move down to use it, that's HORRIBLY inprecise. And uncomfortable. Maybe the stick is large and hard, but no one has tested the PSX stick in a good location except this guy and maybe a few others, so we have no way of telling how it'd go. On a PSX controller, the location where the stick would be on 360 or GCN controller, there is a DPad. You have to move down to use the stick.

Also, technically 360 direction controllers are really 8 directions. X and Y component. N64 included, that one just has corners for the stick to slide into.

Also, you have some vendetta with disagreeing with everything I say XD. It makes me lol.

Also, the 360 stick is large and hard, with a circular ring. It works fine.
 

NixxxoN

Smash Master
Joined
Jun 16, 2008
Messages
3,726
Location
Barcelona
...
...
...

WTF?

So you're saying that the location of the PSX stick is fine for Smash? Because what I said was "PSX stick is known to suck because of location, but I don't know how it is if it's in a good place". By saying "I don't agree", you're saying "the location is fine, it's the size/hardness that makes it bad".

I don't think you've ever touched a PSX controller. The location for the stick IS BAD. Your thumb has to move down to use it, that's HORRIBLY inprecise. And uncomfortable. Maybe the stick is large and hard, but no one has tested the PSX stick in a good location except this guy and maybe a few others, so we have no way of telling how it'd go. On a PSX controller, the location where the stick would be on 360 or GCN controller, there is a DPad. You have to move down to use the stick.

Also, technically 360 direction controllers are really 8 directions. X and Y component. N64 included, that one just has corners for the stick to slide into.

Also, you have some vendetta with disagreeing with everything I say XD. It makes me lol.

Also, the 360 stick is large and hard, with a circular ring. It works fine.
cmon,I've had the PSX and PS2. Many many years using that controller. i even bought a PSx/PS2 adaptor for the PC and tested smash with it. Horrible for my taste.
Maybe the position matters, but as I said, its not a proper joystick for smash.
I think the GCN and 360 sticks are similar in size and sensitivity. Smaller and softer than the PS one.
and lol I'd gladly agree with you if you thought the same than me :p
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
Well, I said I didn't know if the stick mattered. I just said the PSX controller stick was bad because of position, not the PSX stick was "a good stick".

It could very well have been both. So instead of "I don't agree", it's more of "the position is bad, but the quality isn't so great in the first place".

Meaning you didn't disagree. Personally, position is a better reason, why I stated it, because even if it was a GCN stick, hell no would I use it for Smash.
 

NixxxoN

Smash Master
Joined
Jun 16, 2008
Messages
3,726
Location
Barcelona
I don't think the position is that bad. It works well (on ps2 games, not in smah). For example, for driving games, the hard joystick works well in order to steer more or less.
 

kylejw

Smash Rookie
Joined
Feb 13, 2009
Messages
6
I never really considered a gamecube analog, didn't realize people like them so much. Mine all went missing, but I went to EB today and checked out a couple in the used bin. All they had were third party ones and I didn't get one because I don't have any more bad N64 thumbsticks to harvest parts from. Hopefully I can find some (cheap too, all I really want are the thumbstick enclosures). Hell maybe I can make my own somehow.

I totally agree though that having the 8 direction 'corners' would be a big plus. I just used the PSX because they're easily found and dirt cheap. Xbox 360's I believe use potentiometers too so it'd work perfectly as long as you could find a way to mount the stick. I didn't use the Xbox because the controllers are simply too pricey to be hacking up.


i'll pay you to mod a n64 controller with a gc joystick.

EDIT: i can provide a gc and n64 controller

I'd like to try this out with a gc controller, but I don't think I'm comfortable chopping someone elses stuff up without being absolutely sure I can do it and make it robust. I'm not even sure if the GC controller uses pots, anyone know?

Maybe once I get the code perfected we'll talk



The only way to be able to do this without any extreme experience was if he left much more detailed instructions. The pictures may look good enough, but oftentimes, it'll come to a step that the picture alone won't explain.

Friends does change it though.
I wouldn't say I have extreme experience :p
But a few C and assembly courses along with some microcontroller classes. Not much real world experience to be honest. The code is pretty short actually, but if a real programmer looked at it s/he'd probably puke...

The pictures show most of the physical stuff you'd need. The hard part is lining up the stick to the middle of the hole, and getting the height right. If you push the stick against the gray 'ring', it won't spring back when you let go of it. What the pics don't show are the pins on the controller and of course the code :p
To do this the same way as I did you'd need some sort of microcontroller and a programmer for it (not terribly expensive)

It would also be interesting to see what someone with the hands of a surgeon and some good prototyping tools at their disposal could do, since as I mentioned in the original post, I think it is possible to mount the N64 quadrature parts to the PSX stick and do this WITHOUT any added electronics.
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
All I have is a high school programming class, Computer Science AB, and Programming I. All Java. Yuck.

All assembly/other language knowledge are self taught. Still though, more experience than most people have.
 

Dylan_Tnga

Smash Master
Joined
Feb 19, 2007
Messages
4,644
Location
Montreal Canada
Also, the 360 stick is large and hard, with a circular ring. It works fine.
LMFAO. :laugh: I actually laughed because he probably didn't think I would interpret it in a perverted way.

Whatever unholy science created your n64 controller is cool kylejew, I would very much like to try that out but Im getting my japan pal toshi to hook me up with a used hori mini thingy there if he can find one.

He called me Dylan-san. :)
 

MarioReincarnate

Smash Journeyman
Joined
Nov 16, 2006
Messages
449
Location
MD
props dude

so many people here are all talk, like people saying that stage modifiers should be easy if they tried lol

but you did it, and i applaud you

now if only someone would retro fit a SNES controller with a GC joystick... anyone?
 

Superstar

Smash Champion
Joined
Feb 9, 2007
Messages
2,351
Location
Miami, Florida
now if only someone would retro fit a SNES controller with a GC joystick... anyone?
...
...
...

GOOD LUCK HAVE FUN

And I lold thinking about it Dylan.

Who said stage modifiers should be easy if they tried? Maybe easier probably compared to some stuff, but what I notice is that some people said they'll look at it, not that it'd be actually easy. That stuff is never "easy".
 

Surri-Sama

Smash Hero
Joined
Apr 6, 2005
Messages
5,454
Location
Newfoundland, Canada!
Hah, someone dug this up...yeah this controller is awesome...but this thread is pointless now...please dont revive the dead without reason.


Unless of course the creator of this device is now distributing these....if thats the case...PM ME! xD
 
Status
Not open for further replies.
Top Bottom