Pages: [1]   Go Down
Author Topic: Interface Xbox (gen1) controller with Arduino  (Read 1660 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I'm building an autonomous bot and I'd like to be able to control in manually in addition to it operating autonomously. I was thinking about using an Xbox (gen1) controller connected to an Arduino, decoding the controllers output, and sending it to the Arduino controlled bot via radio somehow. Would it be as simple as stripping the controller cable and making some sort of breakout board with which  to connect to the arduino? Any thoughts would be appreciated!

Thanks
 
Logged

Lancaster, England
Offline Offline
Jr. Member
**
Karma: 0
Posts: 85
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know about the XBox, but Bill Porter has done a library for the PS2 controller (16 buttons & 2 joysticks on 4 Arduino pins).  I'm using this myself at the mo for a project I'm working on.

http://www.billporter.info/playstation-2-controller-arduino-library-v1-0/

I would imagine some sort of similar library code would need to be written for XBox controllers, if it hasn't been made by somebody already.
Logged

John

Maine
Offline Offline
Sr. Member
****
Karma: 14
Posts: 417
Caution: Explosives in use.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The Xbox 1 controller uses the USB interface (Microsoft just used a proprietary connector). There are tutorials on the web about how to cut the cable off and replace it with a USB plug. I'm not sure where you would go from there. There are ways to hook up a USB keyboard to the Aduino, but I think you would need a special library to get the controller working.
Logged

"Anyone who isn't confused really doesn't understand the situation."

Electronic props for Airsoft, paintball, and laser tag -> www.nightscapetech.com

Offline Offline
Full Member
***
Karma: 0
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you both for your replies! Seems like I'm going to be going with the PS2 option, seeing as there's a library already written. Many thanks for the link!
Logged

Pages: [1]   Go Up
Jump to: