Giter VIP home page Giter VIP logo

arduino-snes-controller's Introduction

Arduino-SNES-Controller

A small Arduino sketch which creates an HID compliant joystick out of Nintendo's Super Nintendo (SNES) Controller. You can now play any joystick compatible game using your old SNES controller and any Arduino based microcontroller.

Check out this quick video for a demo and tutorial: https://www.youtube.com/watch?v=93oCS9nF_y0

Hardware Setup

SNES Controller Pinout

 -----------------\
| 1 2 3 4 | 5 6 7  |
 -----------------/
  • Pin 1: 5V
  • Pin 2: Data_Clock (Arduino: Pin 6)
  • Pin 3: Data_Latch (Arduino: Pin 7)
  • Pin 4: Data_Serial (Arduino: Pin 12)
  • Pin 5: N/A
  • Pin 6: N/A
  • Pin 7: GND

Software Setup

  1. Install the Drivers by running to UnoJoy/UnoJoyDriverInstaller.bat
  2. Open the code located under snes/snes.ino and upload it to your Arduino.
  3. The Arduino UNO R3 uses a MEGA16u2 chip to upload sketches to memory. In order to be recognized as an HID USB device, we must flash the 16u2 chip with some custom firmware. To do this on the Arduino R3, short the 2 pins closest to the USB port to enter DFU mode. From there, run UnoJoy/TurnIntoAJoystick.bat. Now that you have reflashed the Arduino, unplug it from the USB and re-plug it back in. You are now running the arduino as a joystick.
  4. There is also an Arduino Micro folder containing a sketch that can simply be loaded to any arduino micro controller. Since this is an HID compliant device, uno joy is not needed. Just plug and play.

Be sure to checkout UnoJoy (https://github.com/AlanChatham/UnoJoy) for their awesome library/drivers that made this project possible.

arduino-snes-controller's People

Contributors

glumb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.