Hacking Gamecube to Classic Controller Converter 2 questions

bootsector

Well-Known Member
Member
Joined
Oct 2, 2008
Messages
198
Trophies
0
XP
275
Country
Brazil
It's probably because of fuses config. Also, can you check with your Bus Pirate if the TWI interface is working properly?
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Yeah, the makefile had fuse settings in it, but it looks like the fuse values aren't the same between the two chips. I'm playing around with a fuse calculator to try to figure out the equivalent settings. At the very least, the clock settings were wrong...

Oh well, at least finding something that I know is definitely wrong gives me something to fix.
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Bingo, different clock multipliers. Proper fuse settings for the Atmega8 are lfuse:0xE4 hfuse:0xDE Works like a charm now :D

347v4si.png
 
  • Like
Reactions: mike333 and bezem

bezem

Well-Known Member
Member
Joined
Dec 15, 2012
Messages
211
Trophies
0
Age
41
XP
344
Country
United States
That looks sexy as hell. Would definitely want at least 1 each of the SNES controller board and GC Adapter
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
I got the plastic enclosures in today. They are nice and small and look really clean. The cable holes are a bit big, but as long as I knot the cables inside the enclosure, it won't be a big deal. I'll finalize the PCB outlines now that I can measure the internal dimensions of the enclosure and I'll send off for PCB's tonight. I'm really happy with these. Add a short cable out each side and you get the idea of what the final product will look like. It's going to look slick and clean.

deaakz.jpg
 
  • Like
Reactions: bezem

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Ok, I just ordered the microcontrollers, but the board is going to take a bit of work. I rather underestimated the thickness of the enclosure, so shrinking the board has left me with this:

1gfygn.png


Not at all an insurmountable problem, but it's going to take me a few hours to retrace the board...
 
  • Like
Reactions: mike333

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Ok, PCB's are traced and ordered. I paid a bit extra for faster shipping, so I'll be interested to see how quickly they show up. I have enough parts for 25 adapters, but I'm ordering 50 PCB's, so I'll be able to order more parts if the first 25 sell quickly. First come, first served, PM me to reserve one (or two, or four :P).

Edit: To clarify, if I sell them all, I WILL make more. I just don't have the money to order more parts out of pocket right now. I'll keep making them as long as people are interested.

Also, this board is broken out for the full capability of the software. If you'd like a different adapter, I can make them for the following controllers (pending my ability to acquire the necessary cables):

NES
SNES
N64
GC
PS1/2
Sega Genesis (Mega Drive),
Sega Master System
Sega Saturn
Atari 2600
Neo Geo CD

As mentioned before, price is $25 each plus shipping.

In addition, I have the parts for 9 internal SNES mods like I posted a few comments back. $10 plus shipping for the board (fully populated and programmed), or I can sell fully modded controllers, price varies a bit depending on a couple of things, PM me if you're interested.
 
  • Like
Reactions: bezem

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
For those of you thinking of sacrificing a nunchuck
http://www.aliexpress.com/item/DHL-...Nunchuck-Extension-Cable-EW062/636002102.html

Would it be possible to directly use a wavebird controller with some work on the pcb? This way you do not have to use a cable ; )

Yes, it would be possible, but Wavebirds are way harder to come by than nunchucks.

Speaking of which, is anyone interested in a nunchuck converted to a USB joystick? I'm going to have a bunch of leftover nunchucks without cables when all is said and done...
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Also, despite not using a cable, you'd still need the nunchuck connector. You'd just be cutting up the cable differently, not avoiding the need for one entirely.
 

e3xtreme

Member
Newcomer
Joined
Jan 13, 2009
Messages
21
Trophies
0
XP
93
Country
Australia
I can disassembly mine to build a whole wavebird receiver pcb, if you like... and you can integrate your pcb in the design to make a whole wireless solution ; )
 
  • Like
Reactions: bezem

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
I disassembled one of mine to the point where the RF shield is soldered to the PCB and didn't feel like going any further. Can the receiver be built from off-the-shelf parts or would you have to cannibalize a receiver? If it could be built from scratch that would be one heck of a sweet project, but I'm not a fan of cannibalizing wavebirds, regardless of the application.
 
  • Like
Reactions: bezem

e3xtreme

Member
Newcomer
Joined
Jan 13, 2009
Messages
21
Trophies
0
XP
93
Country
Australia
I think it is not necessary to cannibalize it, since it is just a wireless connection e.g. Bluetooth,WLAN,Zigbee or any 868 MHz solution so it depens on the IC which is used, but like in the Wii and Wii U there are only off the shelf wireless devices, so it should be possible, I will take some time in Feb reverse engineering the wavebird receiver then we will know more... Maybe we can modifiy the internal Hardware of the wavebird controler to just use the Wii / U bluetooth connection without even using a wiimote, but thats just speculations... :yaywii:

But either way you can reserve some pcbs for me I will solder them inside a gamecube controller and a N64 Controller.
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
Bah... of course, 2 hours after I place an $80 PCB order, I notice silkscreen errors :( It's ok, no functional errors, silkscreen doesn't *really* matter, but still... >.<
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
e3extreme, I'll have plenty of PCB's, though this particular board design isn't quite as small as it could be, so no guarantees that it will fit internally. It's not huge, I just don't know how much free space there is in some of the controllers. The board measures approximately 38mmx16mm, so you can see if that's small enough for an internal mod.
 
  • Like
Reactions: bezem

bootsector

Well-Known Member
Member
Joined
Oct 2, 2008
Messages
198
Trophies
0
XP
275
Country
Brazil
Bad news. Unfortunately I had to demote GC and N64 pad support on the Wii RetroPad Adapter to beta stage. :(

I couldn't find an effective way to prevent that disabling interrupts while reading those pads mess with the I2C communication.

This makes the WRA to send garbage data to the Wiimote somtimes, resulting in unwanted button presses being registered by the Wiimote.

I will keep researching and I will try to find the definitive solution for this.

bootsector
 

qwertymodo

Well-Known Member
Member
Joined
Feb 1, 2010
Messages
827
Trophies
0
Age
34
Website
qwertymodo.com
XP
520
Country
United States
I'll look into it on my end as well and see if I can find anything. If I understand correctly, you're disabling interrupts because of the crucial timing of the GC pad reads. I am guessing that the I2C requires interrupts for receiving properly. Is that right? Is it only an issue if an interrupt is serviced during the GC read process? If so, you could try leaving interrupts on and setting a global flag at the start of the GC read function that all interrupt routines unset when they get called. At the end of the GC read, check the flag, if it's good, return. If it's not, reset the flag and read again. Thankfully, the SNES controller is working great. I've played several hours of Metroid Super Zero Mission without so much as a hiccup
 

bootsector

Well-Known Member
Member
Joined
Oct 2, 2008
Messages
198
Trophies
0
XP
275
Country
Brazil
I'll look into it on my end as well and see if I can find anything.

That would be great, since my time to work on the WRA is very limited...

If I understand correctly, you're disabling interrupts because of the crucial timing of the GC pad reads.

Correct!

I am guessing that the I2C requires interrupts for receiving properly. Is that right?

Correct!


Is it only an issue if an interrupt is serviced during the GC read process? If so, you could try leaving interrupts on and setting a global flag at the start of the GC read function that all interrupt routines unset when they get called. At the end of the GC read, check the flag, if it's good, return. If it's not, reset the flag and read again.

The problem is that the I2C master (the Wiimote) expects the I2C slave (WRA) to respond whenever information is requested. If that happens while interrupts are disabled, the results can be unpredictable. I don't think we can disable interrupts at all without, before that, putting the I2C slave in a state that allows clock stretching on the master.

Atmel manual http://www.atmel.com/Images/doc2565.pdf says on page 3:

"If a Slave device cannot handle incoming data until it has performed some other
function, it can hold SCL low to force the Master into a wait-state."

I could not find a way to cleanly do that on the Wire library. I don't even know if, for that, I2C interrupts should be enabled.


Thankfully, the SNES controller is working great. I've played several hours of Metroid Super Zero Mission without so much as a hiccup

Yeah! I don't remember disabling interrupts on the other pad drivers for the Wii RetroPad Adapter. So there are no issues for them! :)

bootsector
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @OctoAori20, Cool. Same here.