Earlier this year I decided that it would be fun to use my wired Xbox 360 controller to control Arduino projects- in this case, an RGB LED. However, the most commonly used method to do so involves accessing the electronics inside the controller to directly interface it with the Arduino. I decided to take a different approach: using a program called Xpadder I can have the computer interpret controller button presses as keyboard strokes. From there, Processing can read those keystrokes and send them to the Arduino from which any number of actions can be programmed to be controlled.

This is what I'll specifically be making in this instructable:

Pros: Easy to do with a low barrier to entry, cheap and there's no risk of damaging your controller.

Con: Because a computer is being used as an intermediary between the controller and the Arduino, as it's interpreting button presses as keystrokes which are fed into Processing, the computer is required; with this method you can't have a standalone Arduino and controller. If that's what you want then you'd likely need to alter the controller to plug directly into the Arduino.

Last note: I'll be specifically talking about the wired Xbox 360 controller and some of the weird little issues that can come up with it, but I don't see why this couldn't apply to any USB controller.

I made this project over at TechShop (http://techshop.ws/).

Step 1: Software/hardware

Computer and keyboard (USB keyboard and built-in laptop keyboard tested to work)
USB controller
Arduino/breadboard/hookup wires

Xpadder 5.3 (see next step)
Arduino software
Hey there! Thanks for this instructable - but i can't find the rgbalphabet.zip and xboxrgb.zip files anywhere! whre do i download this?
<p>Sorry for the late reply, but both files are downloadable as attachments in Step 3. You may need to be browsing in a desktop browser to see them.</p>
<p>You said that the Xpadder will interpret the xbox controller as keyboard strokes does that mean that you cannot get analog inputs from the sticks and trigger from the xbox controller using this method because I want to control a quadcopter.</p>
<p>I see nothing on Step 3. Were exactly is?</p>
<p>how do you connect the computer to the arduino i've tried this but i still cant manage to light my led. pls help</p>
<p>Could you make the code downloadable somewhere, please?</p>

About This Instructable




More by khietman:Morse code generator for the 16x24 HT1632C LED Matrix- I made it at TechShop Making a box for your 16x24 HT1632C LED Matrix- I made it at TechShop Control Arduino functions with a USB controller, no soldering required- I made it at TechShop 
Add instructable to: