This commit is contained in:
Sirawat Pitaksarit
2016-08-28 14:28:09 +09:00
parent 568610f6e7
commit cdc4fb2d94
2 changed files with 14 additions and 7 deletions

View File

@@ -2,25 +2,32 @@
![noah](https://github.com/5argon/UnoSDVXCon/raw/master/images/head.jpg)
![near](https://github.com/5argon/UnoSDVXCon/raw/master/images/splash.gif)
![laur](https://github.com/5argon/UnoSDVXCon/raw/master/images/laurtrim.gif)
This is for building your own physical controller for the game called [K-Shoot Mania](http://kshoot.client.jp) with an Arduino Uno as a USB interface.
If you build your own controller for the game called [K-Shoot Mania](http://kshoot.client.jp) you will need some way to connect it to your computer. In the case that you want to use an Arduino Uno as a USB interface, this script provide a working logic for you (.ino file).
Previous alternatives are connecting buttons to disassembled [Joystick circuit](http://homingpuyo.blog91.fc2.com/blog-entry-650.html), or using an [Arduino Leonardo](http://sdvxii.pancakeapps.com/LEONARDO). Arduino Uno cannot interface as a keyboard as easily as Leonardo. Only [Leonardo, Micro, and Due](https://www.arduino.cc/en/Reference/MouseKeyboard) can use the built-in keyboard functions.
##Video demo
The controller with Arduino Uno in this video uses this script. The knob miss probably results from my skill, not the script. (My rank is 9 in SDVX, I could not play perfectly.)
[cry of viyella - Laur](https://www.youtube.com/watch?v=efWP1qvjdQ0)
##Features
- Not a joystick, but emulates computer keyboard via USB. (HID interface standard) sdksldksldkdlksdlkdlskdlsddsskdkdkkkkklslskdlsdqooooppppoowowowwoqqqqqpqwwwwwqppqpqpqowowoow
- Plug into your computer as a USB keyboard. (HID interface standard) sdksldksldkdlksdlkdlskdlsddsskdkdkkkkklslskdlsdqooooppppoowowowwoqqqqqpqwwwwwqppqpqpqowowoow
- Supports LED response on all 4 BT + 2 FX + START button.
- Supports encoders with 2 signals (quadrature encoded), e.g. Copal RES20D50-201-1
- Supports encoders with 2 output signals cable (quadrature encoded), e.g. Copal RES20D50-201-1
- Change Uno's input pin easily in the code to suit your project.
- Adjust corresponding keys in the code.
- Adjust sensitivity of knobs and buttons in the code.
##Requires
- A [firmware flash hack](http://mitchtech.net/arduino-usb-hid-keyboard/) that will make your Arduino HID compatible but loses ability to program. (Need to flash the firmware back to reprogram) (Cannot brick your Uno.)
- A [firmware flash hack](http://mitchtech.net/arduino-usb-hid-keyboard/) that will make your Arduino HID compatible but loses ability to program. If you want to reupload the program again you need to Need to flash the firmware back. (Cannot brick your Uno.)
##How to use
Please wait for more information after I test the code more. But if you want to go ahead here are rough steps :
- Make a controller.
- Look at the SDVXCon.ino's top part and config things according to your connections to Uno's pin. Please read the comments. (Important)
- Make a controller around an Arduino Uno.
- Look at the SDVXCon.ino's top part and config things according to your connections to Uno's pin. Please read the comments before deciding which pin for each component, as the knobs requires specific pin. (Important)
- Upload the code to your Uno with the [Arduino IDE](https://www.arduino.cc/en/Main/Software).
- Do the [firmware flash hack](http://mitchtech.net/arduino-usb-hid-keyboard/).
- Do the [firmware flash hack](http://mitchtech.net/arduino-usb-hid-keyboard/). In that link, you will need a jumper, a cable or something to short circuit 2 pins on the Uno to begin flashing.
- Reconnect and done!

BIN
images/laurtrim.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB