Oh cool, thanks.
Cube64-DX - Ameliored GC controller to N64 adapter.
Nintendo Game DevelopmentBtw I did another small update.
When doing the button mapping layout reset combo keys (AL+AR+Z), you now only erase the currently active button layout instead of erasing everything.
When doing the button mapping layout reset combo keys (AL+AR+Z), you now only erase the currently active button layout instead of erasing everything.
First official release!! Build r37
Precompiled .hex available in download section and pdf schematic too:
http://code.google.com/p/cube64-dx/downloads/list
Also this is the last build that will support PIC16F84A, 12F629 and 12F675. Precompiled .hex will stay available in the download section however. I flaged then "Deprecated" so you need to search in the download section in "All downloads" to find then.
Their is no reason to use those PICs anyway, maybe only if you have some of those chip already and want to try out while waiting to receive your 12F683
I also made a tutorial like promised to help people building it:
http://code.google.com/p/cube64-dx/wiki/BuildingAdapter
This is targeted to beginner.
If you have good skill already you can skip this and build a nice pcb with SMD component
Precompiled .hex available in download section and pdf schematic too:
http://code.google.com/p/cube64-dx/downloads/list
Also this is the last build that will support PIC16F84A, 12F629 and 12F675. Precompiled .hex will stay available in the download section however. I flaged then "Deprecated" so you need to search in the download section in "All downloads" to find then.
Their is no reason to use those PICs anyway, maybe only if you have some of those chip already and want to try out while waiting to receive your 12F683

I also made a tutorial like promised to help people building it:
http://code.google.com/p/cube64-dx/wiki/BuildingAdapter
This is targeted to beginner.
If you have good skill already you can skip this and build a nice pcb with SMD component

A few months ago I grabbed the interface for the microphone used in Hey You Pikachu! With no microphone and no idea what I was going to use it for.
Now I have the PERFECT box for this.
Now I have the PERFECT box for this.
that would make a nice case to house it in. and look rather pro
Wow you built the whole adapter on top of a DIP socket. That's genius and cost effective. Awesome.
I finally ordered all my parts to build this. This is my first venture into microcontrollers and I want to thank you for finally motivating me to do it. I'll report back with results in a week.
wow this is some straight up McGuyver adapter
Using a dip socket make development easier and quick.
What it could look like with pcb and smd component (This included the charge pump circuit to provide +5v to the rumble motor):
![[IMG]](https://web.archive.org/web/2im_/http://i36.photobucket.com/albums/e36/DarthCloud/biblio/IMG_0038.jpg)
the charge pump would certainly be nice, is it complicated to add?
So the 5v is just for the rumble motor? It's not needed at all for a basic controller?
Thanks for your continued work DarthCloud 
Well i'm glad the axis conversion is still there :nod: If you will be upgrading to a 64MHz PIC at some point I guess the CPU and flash usage issue will become redundant?
Also, maybe this is just me, but I have been looking at the schematic and it doesnt seem clear to me where capacitors C3, C4 and C5 fit in? Especially since C3 and C4 both connect to +3.3V.
Has anyone tried making an eagle board/schematic for the Cube64-DX? I am tempted to have a go, but theres no point if someones already done it.
Oh and slightly OT but could I just ask something which has been bugging me for a while - what is the maximum possible size for the N64 controller pak's SRAM? I previously thought it was 32 kilobytes, since that is the size of the SRAM chip used in official controller pak's, and I read in the 'n64-observations' doc from the original Cube64 here:-
http://svn.navi.cx/misc/trunk/wasabi/devices/cube64/notes/n64-observations
However, in the same doc it also says there are 16 address lines labelled A0-A15? 

Also, maybe this is just me, but I have been looking at the schematic and it doesnt seem clear to me where capacitors C3, C4 and C5 fit in? Especially since C3 and C4 both connect to +3.3V.
Has anyone tried making an eagle board/schematic for the Cube64-DX? I am tempted to have a go, but theres no point if someones already done it.
Oh and slightly OT but could I just ask something which has been bugging me for a while - what is the maximum possible size for the N64 controller pak's SRAM? I previously thought it was 32 kilobytes, since that is the size of the SRAM chip used in official controller pak's, and I read in the 'n64-observations' doc from the original Cube64 here:-
http://svn.navi.cx/misc/trunk/wasabi/devices/cube64/notes/n64-observations

This create the problem that in adventure game when you want to run straight up and put the joystick at what you believe the center you will turn a little bit to the left.
I played with the Wavebird with some VC N64 game on my Wii and I noticed a little dead-zone around the center, you push the joystick for about 3/4 of millimeter nothing happen. I believe this dead-zone is to avoid problem with misaligned controller.
I implemented a dead-zone in the adapter and this fixed that problem.
Doing so I modified the possible range of the Gamecube controller from [-0x64, 0x64] to [-0x5A, 0x5A] this still an higher range than n64 range [-0x54, 0x54] but it's damn close. I modified the axis range function so it fit to new spec but it don't really make any difference now that the range is so close to the real one. So I removed that. The code exist so I can put it back at some point if I receive some feadback about that.
But honestly I think it's better without that function. It will fill more sensitive but it's more caused by the fact the GC joystick is better than because the range is a bit higher.
If you check the MAX682 datasheet you can see that C4 go between +3.3v input and gnd of the IC, and C5 go on the +5v output and gnd of the charge pump.
180 steps is quite close to 168 steps, but doesnt this mean that the GC analog stick area mapped to N64 analog stick is now 10% smaller? So when you press full in one direction it has already reached the maximum value earlier.
I'm currently watching an auction on ebay for 3 Wavebird without receiver, so they are cheap. I will try to get them so I have a better sampling for testing.
Checked again both controller pcb and maybe their are not misaligned, maybe it just en illusion created by the mark on pcb which are present on the wavebird and not printed on my regular controller. Very hard to tell.
But still from my reading the idle center don't match the value you got at either the top or bottom position.
Wavebird:
![[IMG]](https://web.archive.org/web/2im_/http://i36.photobucket.com/albums/e36/DarthCloud/P4200037.jpg)
Regular:
![[IMG]](https://web.archive.org/web/2im_/http://i36.photobucket.com/albums/e36/DarthCloud/P4200038.jpg)
But still from my reading the idle center don't match the value you got at either the top or bottom position.
Wavebird:
![[IMG]](https://web.archive.org/web/2im_/http://i36.photobucket.com/albums/e36/DarthCloud/P4200037.jpg)
Regular:
![[IMG]](https://web.archive.org/web/2im_/http://i36.photobucket.com/albums/e36/DarthCloud/P4200038.jpg)
http://www.google.com/patents?id=GW0FAAAAEBAJ&printsec=abstract&zoom=4
Page 23
Page 24
Also the patent seems to suggest that Nintendo had planned to make a combined Controller Pak/Rumble Pak at some point?
Anyway while N64 range is -0x54 to 0x54, from my iQue controller (which use very same hardware) the range I get is -0x58 to 0x58. I believe it's because the joystick hole is not high enough so the stick can go a bit further.
I played a lot last night to test the latest r44 build (Now available in the project download page) and I'm very happy by how it's performing.
Original thread: https://assemblergames.com/threads/cube64-dx-ameliored-gc-controller-to-n64-adapter.32204/