SNES Controller Decoding

Includes but not limited to: SNES, Genesis, Sega CD, PlayStation 1, Nintendo 64, Dreamcast, Game Gear and I guess the Virtual Boy.

Moderator: Moderators

nos_slived
Higher Idiot
Posts: 3476
Joined: Mon Mar 21, 2005 6:32 pm
Location: Burnaby, BC, Canada
Contact:

Post by nos_slived »

I figured it would work. I just thought that it would be a lot easier to test with only LEDs, instead of using the inverters for every button. It will also help other people who try that. For inverters, you also could have used a single PNP by itself on each line. If you hook this to a computer, you could also just leave the lines high, and write the program to read high as off.
Image
Gummo
Posts: 33
Joined: Fri Dec 24, 2004 11:45 am
Contact:

Post by Gummo »

Good news! I've been able to make a snes controller decoder using a PIC microcontroller. I made a program for the PIC16F684 chip and it works like a charm. However, I ended up destroying the chip when I accidentaly had the + and - connections reversed :oops:

If anyone is still interested, I could post the code and schematic.
electromaster64
Posts: 265
Joined: Mon May 31, 2004 7:09 pm
Contact:

Post by electromaster64 »

So you keep saying you are going to use it for something different it might help if everyone knew exactly what you had in mind. Secondly you are confining yourself because you are trying to find something to decode the SNES controller. In the Pre-NES videogame era controllers used one wire per button on the controller. But now you can encode it all on a couple lines which is why you can have all of the buttons on the N64 controller occupy only 3 lines. What I would suggest is to look at some older controllers and wee what they use. Also you could get say a serial connector and then make a new SNES controller having the +5v (or whatever) going to each button and then having one wire for each button. that way when you press a button +5v goes down the line and to the respective pin on the serial connector. That would be my suggestion. But I would definitely reccommend that you build a new controller board as opposed to "decoding" the SNES controller.
ImageImage
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

give me a few hours and I'll draw up a nice schem for a snes/nes controller decoder with built in P/S and clock ;)
Gummo
Posts: 33
Joined: Fri Dec 24, 2004 11:45 am
Contact:

Post by Gummo »

I made the decoder so I can use a snes controller on a gameboy advance. I took a snes system case and super gameboy case and stuffed the gba and gba->tv adaptor into those cases. So it looks like a super nintendo but its really a gameboy advance that I can play on the tv using snes controllers. Thats why I needed a snes controller decoder...
gannon
Moderator
Posts: 6974
Joined: Sun Apr 04, 2004 4:48 pm
Location: Near that one big lake
Contact:

Post by gannon »

<img src="http://img91.imageshack.us/img91/158/sn ... 5cm.th.png" border="0">
Pretty basic. I'm not sure if it'll work 100% with snes controllers, but I do know that it'll work fine for nes ones. It has a 8 bit count for the p/s line, it may need to be 16 bits for snes, but that'd require another counter and wiring them in series just about.
Electric Rain
Senior Member
Posts: 1911
Joined: Tue Mar 29, 2005 12:39 pm
PSN Username: Denki_no_Ame
Location: What's it to you? Stalker...

Post by Electric Rain »

Hi all. I didn't know this thread was still active... for some reason I stopped receiving Email notifications for new posts. Plus, I haven't been here in a while. I go through phases with forums... sometimes I go for a while without even thinking about them. But I'm back now! :)

Anyway, Gummo... I would kill to have the code and schematic. And depending on what I was killing, that's not even an exaggeration. :twisted: :lol: Seriously though, I'd really appreciate it a lot if I could have them. Thanks.

Rain
Image
Post Reply