GithubHelp home page GithubHelp logo

vonniewu / makeyarcadestick Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jealas/makeyarcadestick

0.0 2.0 0.0 140 KB

Make a MakeyMakey into an Arcade Stick Controller!

C++ 42.15% Arduino 30.38% C 27.48%

makeyarcadestick's Introduction

MakeyArcadeStick

Make your MakeyMakey into a MAME Arcade Controller!

Version

1.0

Tested With

  • Arduino IDE 1.6
  • SDL MAME 0.159

Features

  • Simple button configuration.
  • Extremely light-weight code for reactive button presses.

Build Instructions

  • Option A:
    1. Clone the repository
 $ git clone https://github.com/jealas/MakeyArcadeStick
    1. Open the Arduino IDE.
    1. Open the MakeyArcadeStick.ino file inside of the MakeyArcadeStick folder.
  • 4*. Customize your button mappings if you want (default button mappings work out of the box with MAME).

    1. Flash the new Firmware.
    1. Connect your buttons (sett wiring information below).
    1. Enjoy your new arcade stick!
  • Option B:

    1. Download the Respository as a .zip file (click the Download button to the right).
    1. Extract the folder inside of the .zip file.
    1. Rename the folder to: MakeyArcadeStick
    1. Open the Arduino IDE.
    1. Open the MakeyArcadeStick.ino file inside of the MakeyArcadeStick folder.
  • 6*. Customize your button mappings if you want (default button mappings work out of the box with MAME).

    1. Flash the new Firmware.
    1. Connect your buttons (see wiring information below).
    1. Enjoy your new arcade stick!

Configuration Example

  • Valid Key values can be found here: Arduino Keyboard Valid Keys
  • Simply change these bindings in the MakeyArcadeStick.ino file, then flash and you're done!
  • The array below defines MakeyButtons where the first value is a pin on the MakeyMakey and
  • the second value is the key you want pressed when the button bound to the pin is pressed.
  • Valid Pins are: A0-A5, D0-D5 and D14-D16.
  • You can remove/add as many buttons as you'd like and even set up a button that presses mutliple keys!
MakeyButton buttons[] = {{MakeyPin::A5, KEY_UP_ARROW},
                         {MakeyPin::A4, KEY_DOWN_ARROW},
                         {MakeyPin::A3, KEY_LEFT_ARROW},
                         {MakeyPin::A2, KEY_RIGHT_ARROW},

                         {MakeyPin::A1, '5'},
                         {MakeyPin::A0, '1'},

                         {MakeyPin::D5, KEY_LEFT_CTRL}, //left control
                         {MakeyPin::D4, KEY_LEFT_ALT}, // left alt
                         {MakeyPin::D3, ' '}, // space
                         {MakeyPin::D14, 'c'}, // c

                         {MakeyPin::D2, KEY_LEFT_SHIFT}, // left shift
                         {MakeyPin::D1, 'z'}, // z
                         {MakeyPin::D0, 'x'}, // x
                         {MakeyPin::D15, 'v'} // v
};

MAME Arcade Stick Layout

  • The button layout below corresponds to the default, out of the box settings for MAME.
  • C = Player 1 Coin
  • S = Player 1 Start
  • U = Player 1 Up
  • D = Player 1 Down
  • R = Player 1 Right
  • L = Player 1 Left
  • 1 - 8 = Player 1 Buttons 1 - 8 alt text

Wiring

  • Wiring is Simple!
  • All you need is one wire per button (directionals, coin, start, buttons 1 - 8).
  • All ground connections can be daisy-chained, so you really only need 1 or 2 wires for the ground pins.
  • Button Mappings:
  • Pin A5 -> Up Button
  • Pin A4 -> Down Button
  • Pin A3 -> Left Button
  • Pin A2 -> Right Button
  • Pin A1 -> Player 1 Coin Button
  • Pin A0 -> Player 1 Start Button
  • Pin D5 -> Player 1 Button 1
  • Pin D4 -> Player 1 Button 2
  • Pin D3 -> Player 1 Button 3
  • Pin D2 -> Player 1 Button 4
  • Pin D1 -> Player 1 Button 5
  • Pin D0 -> Player 1 Button 6
  • Pin D14 -> Player 1 Button 7
  • Pin D15 -> Player 1 Button 8

Todo's

  • Create Wiring Diagram.
  • Add Documentation
  • Make an Arduino Leonardo version.
  • Make a generic arduino version (will need to reflash the USB Serial Microcontroller).

License

Apache 2.0

makeyarcadestick's People

Watchers

James Cloos avatar  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.