NES Controller as USB Game Controller

From BUILDS

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:28, 23 April 2012
Cwoodall (Talk | contribs)
(Overview)
← Previous diff
Revision as of 19:30, 23 April 2012
Cwoodall (Talk | contribs)
(Making Your Arduino an HID device with LUFA)
Next diff →
Line 31: Line 31:
== Making Your Arduino an HID device with LUFA == == Making Your Arduino an HID device with LUFA ==
 +
 +=== References ===
 +* [http://www.usb.org/developers/devclass_docs/Hut1_11.pdf USB HID Usage Table]
 +* [http://hunt.net.nz/users/darran/ A Bunch of useful information for HID Arduino Hacks]
 +* [http://arduino.cc/forum/index.php/topic,52447.msg374201.html#msg374201 Putting arduino in DFU mode]
== Sending the Keyboard Commands == == Sending the Keyboard Commands ==

Revision as of 19:30, 23 April 2012

The NES Controller and Arduino in a very primitive set-up. I am going to make a better connector in the future.
Enlarge
The NES Controller and Arduino in a very primitive set-up. I am going to make a better connector in the future.

Contents

Overview

Chris Woodall wanted to play video games with an NES controller (the motivating games being Cave Story and Jamestown, the former was successfully beat with the controller). To do this he decided to use an Arduino UNO (definitely overkill). The best method for doing this is to announce your microcontroller as an HID Keyboard so that it can write to the keyboard buffer like any other USB peripheral keyboard. This adds the convenience of portability and flexibility; however, it requires flashing the ATMega8u2 on the Arduino UNO, which normally only handles serial communication via USB with a firmware that handles HID communication via USB. To do this you need to do some sketchy (explained below), but there is little risk of bricking your Arduino because you should always be able to flash the original atmega8u2 firmware.

Electronics

Parts List

  • An Arduino Uno
  • A NES Controller from Amazon
  • Lots of wires (solid core preferably)

Future Upgrade for SNES Controller version

Schematic

NES Version

Basic Schematic for the NES Controller to Arduino interface
Enlarge
Basic Schematic for the NES Controller to Arduino interface

SNES Version

Coming Soon...

Software

Getting Data from the NES Controller

Making Your Arduino an HID device with LUFA

References

Sending the Keyboard Commands

References

Personal tools