May 15, 2016

XBox retro games emulator part II

In this section I connect up the front panel socket for the game controller to a USB plug, so that it can plug in to the Raspberry Pi USB port.

For this I bought some USB plugs and some 4 conductor wire. The plugs have a little groove where you can solder the wire on. You can also get USB plugs with wires already attached, which might save you a soldering step. Note that normally USB cabling has red, black, green and white. I am using a telecoms cable here, so I will need to be careful with the colours.

With the wires soldered, it's time to assemble the plug. Remember that this end of the cable will connect the controllers to the USB port on the Pi. If you used a standard USB cable, make sure the correct colours go to the correct pins. (e.g. Check the Wikipedia page on USB.) For me, I just had to make a note of which colours I used, so that I can connect the other end of the cable easily.

Now for the other end of the cable. The ports for controllers 1 and 2 go to a common header that connected to the motherboard.

I am taking a gable here in guessing that the XBox does use the standard colours for USB cabling. As can be seen elsewhere, the yellow cable for the controller is not used for USB.

I cut the plug off here, stripped the red, black, green and white wires, put on some heat shrink tubing, and soldered the wires together. If your USB cable was standard colours, then connect red to red, black to black, green to green, and white to white. (Yellow is not connected.) Shrink the tubing over the solder joints to insulate it.

No comments: