IR Wiring & USB Ports

Planning

My personal requirements to get this working the way I want are:


Putting all of this together, this means that the Hardwired DVD Dongle tutorial must be used, but instead of the Dongle, a USB hub will be there. Using a 5V relay, if a controller is in port 4, the Hub/DVD Dongle/Front USB are bypassed. When port 4 Controller is removed, all is back to normal. Since 4 controllers inserted is rare, in almost all cases it will work "normally".

Here was how I intended to have it be wired:

                 +--------------+
                 | Motherboard  |
                 |(Port 4 Wires)|
                 +--------------+
                        |
                    +-------+
                    | Relay |
                    +-------+
                    |       |
       +-------------+      |
       |   USB Hub   |      |
       |4 add'l ports|      |
       +-------------+      |
        |       |   |       |
 +--------+   +--------+   +------------+
 |  DVD   |   | Front  |   | Controller |
 | Dongle |   | USB x2 |   |   Port 4   |
 +--------+   +--------+   +------------+


Here are some diagrams that others made that I inteded to use as a guideline to get this working:


Reality

I wired everything up as above, but I couldnt get it to work. Either there was something wrong with my relay, or I was just too stupid to figure it out. I simply couldn't get it to work, so instead I hardwired controller port 4 directly to a 4 port USB hub. The hub then has the DVD dongle hardwired to it, the 2 front USB ports, and then controller port 4. In this scenario, an xbox controller WITHOUT memory card slots in it (a usb hub) should work. "Standard" controllers won't work, but something like a steering wheel or arcade stick should work.

Here's how it ended up looking:

           +--------------+
           | Motherboard  |
           |(Port 4 Wires)|
           +--------------+
                  |
       +-------------------------+
       |         USB Hub         |
       |      4 add'l ports      |
       +-------------------------+
        |       |   |         |
 +--------+   +--------+   +------------+
 |  DVD   |   | Front  |   | Controller |
 | Dongle |   | USB x2 |   |   Port 4   |
 +--------+   +--------+   +------------+


Front USB Connectors

I opted to convert controller 3 and 4 into the front USB connectors that already exist on this case. As with the Power connectors, the same sized header pins work perfectly. I pulled one of the pins out to match the key notch in the USB front panel connector and soldered it onto the same test PCB as above.

To do all of this, I need the female USB header that originally connects to the controller ports. I took a pair of the controller ports out, removed the metal covering, and de-soldered the wires. After this, I connected them to the appropriate pins that match the case's USB connectors.


X3IR and DVD Dongle Eye

One main reason I used the X3IR as opposed to a less expensive IR solution is because it's programmable. The default of Display for on, and 0 for off weren't to my liking. I intended to use the standard RCA "power" code to turn it off/on. From a learning remote, I beleive that to be CF0D23. This unfortunately conflicts with my TV. Instead, I used a non-standard rca "VCR1" code on that remote, which was C785A3. I also changed the default keypress time for power off from 1000ms to 200ms, to match the "on" function.

I couldn't find the correct way to get the IR eye to be shared for both, so I have two IR eyes in the system. The eye for the X3IR is so tiny that it was no problem fitting it behind the main window next to the LCD. The DVD dongle eye is behind the hole in the case where the IR is intended to be.