Nintendo Gamecube Controller Pinout
The controller connects to the Gamecube through a proprietary 6-pin connector, with screen. The official Nintendo controller only seems to wire 5/6 of these pins, and of those only one seems to be used for data transfer between the console and the controller. With the exception of the power supply, the function of the remaining pins is unknown and is not described here. All the information here comes from an examination of the controller with oscilloscope and multimeter. Therefore, I make no guarantee that any of this information is accurate, and you use it at your own risk...
This is a work in progress, and these are just my early notes (11th December 2002). Since writing this, I've found that a Gamecube to USB interface exists already: it's called the Skillz Cube Connection USB and is only sold by Lik-Sang as far as I'm aware. I've not had the opportunity to try this, but apparently it only works with the original wired Gamecube controller (it's not compatible with the Wavebird or any 3rd party controllers). If anyone has useful information to add to this page, please drop me a line (contact details are on index page).
   James Ward, 11th December, 2002.
Connector Pinout
This is a view of the controller socket on the front of the console, looking into the socket. The numbering scheme is my own.
Pin Colour J1 Function
1 Yellow 2 5V power supply (used by rumble motor).
2 Red 3 DATA line: bi-directional data to/from console, pull-up to 3.43V
3 Green 4 Ground.
4 White 5 Unknown (measured 0V, nothing visible on 'scope)
5 - - Unknown: not connected by official controller (measured 0V).
6 Blue 1 3.43V logic supply.
7 Black 6 Cable shielding / ground.
In the table above, the pin number on the left corresponds to the diagram of the controller socket. The colour code is that of the cable from the official Nintendo Controller (different models might vary), noting that one pin is not used in this case. The third column marked J1 refers to the pinout of the connector inside the controller, which you will only be able to get to if you have the appropriate security screwdriver bit (or improvise your own handmade tool). The function column on the right is my best guess at what each pin is for.
Power Supply and Rumble Motor
There are two power rails on the connector, a 3.43V supply that is probably used for the logic, and a 5V supply that appears to be used to power the rumble motor (and perhaps logic also). The 3.43V supply is only what I measured on a PAL Gamecube, which isn't necessarily the same as the 'nominal' voltage of the supply of course. The ground (3) and shield (7) appear to be connected together.
The 5V power used by the rumble motor is always on, and the motor is controlled by a command sent to the controller. i.e. the controller contains a power transistor to switch the motor on/off, rather than the console doing this. The Yellow 5V power line goes directly to the +ve terminal of the rumble motor, and it looks like the -ve terminal of the motor is attached to a transistor.
I've not measured the current drawn by the controller yet.
Serial Data Interface
The controller uses one bi-directional data line (Pin 2 - Red) to communicate with the console. This appears to be an active high 3.43V logic signal, using a pull-up resistor to hold the line high, and driving it low with an open-collector transistor when a low-bit needs to be transmitted. Communication is initiated by the console sending a 24-bit string to the controller, after which the controller responds with 64-bits of button state and joystick data.
The controller seems to have an internal pull-up resistor (measured 745 ohms) between the 3.43V power rail (Pin 6 - Blue) and the DATA line (Pin 2 - Red).
Test 1: No controller attached
With no controller attached, the gamecube appears to probe for a controller by pulling DATA (Pin 2 - Red) low every 12 to 14ms, clocking what appears to be eight low bits, then letting DATA go high again. Each data bit is approximately 5us duration, with a visible spike between each bit (maybe 1us) where the bus goes high again briefly. The image below shows the signal on the DATA line, with the 'scope triggered on the negative edge.
Test 2: Controller attached
With an official controller attached, there is an interval of about 6.7ms between successive updates. Each update looks to last a little over 450us. The sequence starts with a 24-bit command from the console:
   0100 0000 0000 0011 0000 0010
The last two bits of this sequence appear to be the 'rumble' control. The pattern is normally '10', but seems to change to '01' when the motor is running. After a rumble the pattern sometimes remains '00' for a while, but eventually reverts to '10'. It's not yet clear whether these are a simple enable and drive signal, or if some initialisation sequence is required as with the N64 controller.
This sequence is probably a command word from the console. Although I've not seen the other bits change in this word, I'm sure they have some function codes (for example, there may be commands to reset the controller, or query what kind of hardware is attached to the console).
After the 24-bit command word, there is a short delay (about 15us, the data line being high) before the controller responds. After this period, the controller responds with a string of bits that contain the state of all the buttons along with joystick position data. From examination with an oscilloscope, the sequence appears to be as follows:
   000, Start, Y, X, B, A, 1, L, R, Z,
   DPadUp, DPadDown, DPadRight, DPadLeft,
   JoyX (8-bit signed), JoyY (8-bit signed),
   CX (8-bit signed), CY (8-bit signed),
   Left (8-bit), Right (8-bit)
Finally, the data line returns high again. Above, the L/R buttons are the end-stops on the L/R shoulder buttons. Note that between A and L there is a bit that always appears to be high. Also, I haven't seen the three leading zeros change. The buttons (and extra bits) make up a 16-bit field, the analogue controls make up a further 48-bits. Therefore, the GC sends a 24-bit command to the controller, and the control responds with a total of 64-bits. On the oscilloscope, the data bits look to be 5us, which gives a total of (64+24+3)*5us = 455us. This is assuming that the 'scope time-base is accurate.
Here is an example of what a complete data string looks like on the 'scope. In this figure, point A is the start of the 24-bit command word sent by the console, and point B marks the start of the 64-bit response from the controller. The quality of the image is quite poor, but it's actually possible to see the individual data bits.Â
The bit-pattern looks the same regardless of which controller port is used, so I guess that the control word doesn't contain a port identifier. If the console is reset, the first rumble bit seems to go low initially and then returns high after a few seconds. The same thing happens when you power on the console initially. In general, the communication with controllers seems to happen almost immediately when the console is turned on, so it seems likely that there is some dedicated interface here, rather than something that needs to be set up programmatically by the CPU.
Finally, here is a close-up view of the individual data bits when transmitting binary 0100. This shows the presence of the short spikes in between every data bit, presumably where the transistor is switched off (internal bus tri-stated?) and the data line floats high again.