Jump to content
OGXbox.com

Mod To Use XBox 360 Controller


ELD
 Share

Recommended Posts

I have been thinking about doing a mod to allow for the use of a Xbox 360 controller.  I used to have a wireless S-controller rip off which worked great but I lost it during moving some time go. I also have the Logitech one, but I really despise it. It just feels wrong and in no way is as good as the s-controller.

I do love the 360 controller and use that for my 360 and my Opensuse based media centre. So I would also like to use it on a Xbox.

I was thinking of using a Raspberry Pi, a Xbox 360 usb receiver, custom usb connector/output to connect to the Xbox motherboard and connector for auto on/off with the xbox button on the 360.

On the Pi I want to load a lightweight Linux with the Xboxdrv driver to take the input of the 360 controllers and translate it to the OG xbox controller output, using some of the code from this same driver which also supports the original xbox controller.

A bit worried about lag and my ability to mod the driver code, but seems like an interesting challenge.

Any one seeing other challenges or maybe has tried this and found it impossible ;)

Edited by ELD
Link to comment
Share on other sites

arent 2 CY7C68013A-56 EZ-USB FX2LP USB Develope Board Module or somiliar be easier?
1 acting as a host, translating the packets to buttons and variables the other will reply as client on the xbox? this board is used as a usb debug and USB devices aswell. Im thinking of the following application note: http://www.cypress.com/documentation/application-notes/an63787-ez-usb-fx2lp-gpif-and-slave-fifo-configuration-examples
(I got 2 of these to sniff USB and debug my laptop, but havent used them yet... so no real world experiance with em yet)

Or, get a OG xbox controller IC and reroute all buttons of the 360 to the very similiar classic one? looks easier.

Else, yeah Linux/Rasp method migth be a trick: http://www.linux-usb.org/gadget/ the RaspberryPi zero has OTG apparently so maybe you could turn the Raspberry into a HID device: https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget?view=all#other-modules
For reverence: http://xboxdevwiki.net/Xbox_Input_Devices and Xqemu emulator source might help you first with making the Raps act as a controller
But I personaly have enough ControllerS to just take the pcb, and put em in a 360 controller shell with cutting and such. Remmeber that a Rapsberry AND a 360 controller take alott more power from the USB port. and the XBox only has USB1.1. And no way of replacing "drivers" so it either act as a Xbox classic controller or use it with homrebrew software that supports whatever HID device your "emulating"

My 10 cents :D

Edited by codeasm
added application note that Im thinking of as example
Link to comment
Share on other sites

An arduino usb host shield an atmega32u4 should do the trick. This has been done in the mechanical keyboard community. (https://geekhack.org/index.php?topic=69169.0). The power requirements are very reasonable for this type of setup.

I have a bunch of atmega32u4 lying around and after a couple of hours hacking I have gotten the atmega to register as a "generic xbox controller" on my linux system. I've ordered a bunch of host shields for testing.

The host shield library (https://github.com/felis/USB_Host_Shield_2.0) supports just about any controller you can think of, so if it works it will be very nice indeed.

Will post updates and source code as soon as I have either.

Link to comment
Share on other sites

The code registers fine with PCs running Windows and Linux.. I simply can;t figure out why the xbox doesn't register the chip, but I suspect there;s more to the protocol than is in the open-source drivers.

The AVR code: https://github.com/ripdajacker/xpad-avr

Edit:
The pi cannot be a host and a USB device at the same time which means it would also need a USB shield type device.
This means the AVRs are a better bet since they can be had for under $5 worldwide (whereas the Pi is $10-15 plus shipping where I live).

Edited by ripdajacker
Clarificatio
Link to comment
Share on other sites

On 2/24/2018 at 5:12 PM, ripdajacker said:

The code registers fine with PCs running Windows and Linux.. I simply can;t figure out why the xbox doesn't register the chip, but I suspect there;s more to the protocol than is in the open-source drivers.

The AVR code: https://github.com/ripdajacker/xpad-avr

Edit:
The pi cannot be a host and a USB device at the same time which means it would also need a USB shield type device.
This means the AVRs are a better bet since they can be had for under $5 worldwide (whereas the Pi is $10-15 plus shipping where I live).

What are AVRs? and where do you buy them?

Link to comment
Share on other sites

2 hours ago, Michael McBride said:

What are AVRs? and where do you buy them?

Is it ok to just point you here? https://en.wikipedia.org/wiki/Atmel_AVR

Basicly Arduino like hardware. but a PC from 1995 wont play the newest game right? so specs of a IC matter ;)

@ripdajacker did you look at the xboxdevwiki ? http://xboxdevwiki.net/Xbox_Input_Devices#Protocol Im not sure if it is complete or enough to recreate the USB device but the Xqemu emulator uses it for emulating a controllers for the emulator. the Xqemu USB Hid emulated source is here: https://github.com/xqemu/xqemu/blob/xbox/hw/xbox/xid.c maybe this helps.
Im watching this thread :D

Link to comment
Share on other sites

Wow thanks for the write up codeasm. You are right in that I was looking at the Pi Zero since that can also act as a USB device. I am still thinking on how to do this, I was actually tempted to do it in a really hacky way through using a s-controller board and pi GPIO, but simulating the analog sticks is more difficult than I initially thought :)

Link to comment
Share on other sites

1 hour ago, ripdajacker said:

@codeasm I read the wiki and XQEMU code and had a heureka moment the other night.

The Arduino registers correctly as an controller on my Xbox! :D

I will continue working on a serial interface to the chip and keep you posted.

i didnt think this was going to ramp up so quickly, im following this thread. sounds like i may be able to steer clear of pad hacks for an arcade stick. exciting stuff. 

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

This is something that if you can get it to work would sell without question, weather its a kit of parts thst you need to apply to your own previously bought controller or as a finished product..

 

I'd buy one or more even though I have one of the Logitech wireless ones.

Edited by big F
Link to comment
Share on other sites

  • 2 months later...

Following.  I was literally just googling around about this last night.  If you come up with a solution that doesn't lag then consider me in line to buy one!  I wonder if there were a way to use the xbox one controller via a blutooth dongle in a similar way to the method that 8bitdo uses on their classic nintendo controllers?

Edited by moses_373
Link to comment
Share on other sites

  • 4 weeks later...

Here are two articles from hackaday that are covering similar territory, either might be helpful for creating a solution:

The first uses a micro-controller to interface between an N64 and a wireless 360 adapter for the PC

https://hackaday.com/2018/07/31/add-on-board-brings-xbox-360-controllers-to-n64/

 

The second article has more to do with creating wireless controllers out of refurbished retro controllers.  Personally, if I could mod my Duke and my S to work wirelessly with my OGBox, that would be my preferred solution as it would preserve the original "feel" of the console. But I would ABSOLUTELY take a 360 controller over my current mess of wires.

https://hackaday.com/2012/02/13/wireless-controllers-for-all-your-retro-systems/

Edited by moses_373
  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

Board Life Status


Board startup date: April 23, 2017 12:45:48
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.