この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
usb_midi_controller [2018/03/21 11:14] fifi |
usb_midi_controller [2018/03/31 02:00] fifi |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
+ | [[:usb_midi_controller:Arduino MIDI Controller]] | ||
# USB MIDI Controllerの作り方 | # USB MIDI Controllerの作り方 | ||
ライン 5: | ライン 5: | ||
- 方法1 : マイコン PIC18F | - 方法1 : マイコン PIC18F | ||
- [k2b2/k4b4 USB-MIDIコントローラキット - hsgw from Dm9Records | makebooth](http://makebooth.com/i/oBsYy) | - [k2b2/k4b4 USB-MIDIコントローラキット - hsgw from Dm9Records | makebooth](http://makebooth.com/i/oBsYy) | ||
+ | - [USB MIDI入力装置のサンプルを動かす(PICマイコンによるUSBデバイス開発 第3回) : 工作と競馬](http://blog.livedoor.jp/sce_info3-craft/archives/6550372.html) | ||
+ | - [PIC18で始めるUSBデバイス自作 その1:サンプルプロジェクトを動かす - Qiita](https://qiita.com/gpsnmeajp/items/eedb3ed788add25df11c) | ||
+ | - PIC18F14 USB2.0内蔵PICの使い方](http://www.picfun.com/usb20frame.html) | ||
+ | |||
+ | - 本家 https://www.arduino.cc/en/Tutorial/MidiDevice | ||
- 方法2 : Arduino | - 方法2 : Arduino | ||
ライン 13: | ライン 17: | ||
- 方法3 : mbet | - 方法3 : mbet | ||
- [Dm9records :: ほとんどコピペで作るUSBデバイス](http://www.dm9records.com/index.php/tips/elec/mbedadvent2014/) | - [Dm9records :: ほとんどコピペで作るUSBデバイス](http://www.dm9records.com/index.php/tips/elec/mbedadvent2014/) | ||
+ | |||
+ | |||
+ | - 方法4 : マイコン | ||
+ | - [Arduino Leonardo/Micro風に、LUFAでUSBデバイスを作ってみる - Qiita](https://qiita.com/tadfmac/items/b7617ee94d9ce0d59084) | ||
+ | |||
+ | |||
## 仕様 | ## 仕様 | ||
ライン 18: | ライン 28: | ||
- VR x 15 | - VR x 15 | ||
- プッシュボタン x 10 | - プッシュボタン x 10 | ||
+ | |||
+ | ## PIC18 | ||
+ | |||
+ | - [PIC18 USB通信の実験](http://yohane.natsu.gs/00%20pic18%20usb.htm) | ||
+ | USBのタイプのモード等の説明がある | ||
+ | |||
+ | ## Feature | ||
+ | |||
+ | - 1. ArduinoでVR x2 とPushButton x 2とLEDx2を動かす | ||
+ | - 2. PIC 18F14K50で実装 | ||
+ | |||
+ | |||
+ | # Arduino | ||
+ | すごい参考になる資料 https://www.slideshare.net/tadfmac/arduinomidi | ||
+ | |||
+ | ## Moco For LUFAの焼き方 | ||
+ | |||
+ | - windows | ||
+ | [Dm9records :: Moco for LUFA](http://www.dm9records.com/index.php/tips/arduino/moco/) | ||
+ | |||
+ | - 焼きこみソフトをダウンロード | ||
+ | http://www.microchip.com/developmenttools/productdetails.aspx?partno=flip | ||
+ | |||
+ | - libusb0.dll が必要: | ||
+ | - dll Download : https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip/download | ||
+ | - READMEを読みながら適当に配置 | ||
+ | - [atmel Flip を使用時のatlibusbdfu.dll not foundの対処法 - ブログ](https://blog.goo.ne.jp/iroha112233/e/44c0fe332fc69344e232514bfcd9fc0d) | ||
+ | - ドライバを更新した。ら。エラーなし。 | ||
+ | |||
+ | |||
+ | |||
+ | - Mocoの.hexファイルをダウンロード | ||
+ | https://github.com/kuwatay/mocolufa | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ## 備忘録 | ||
+ | |||
+ | - Arduino公式のMIDIライブラリをダウンロード/配置 | ||
+ | Arduino/librariesの下に配置 | ||
+ | |||
+ | http://playground.arduino.cc/Main/MIDILibrary | ||
+ | |||
+ | - LEDチカで動作を確認 | ||
+ | |||
+ | ``` | ||
+ | #define LED_PIN 13 | ||
+ | void setup() { | ||
+ | pinMode(LED_PIN, OUTPUT); | ||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | digitalWrite(LED_PIN, HIGH); | ||
+ | delay(3000); | ||
+ | digitalWrite(LED_PIN, LOW); | ||
+ | delay(3000); | ||
+ | } | ||
+ | ``` | ||
+ | |||
+ | |||
+ | ## スイッチを押してみよう | ||
+ | |||
+ | https://qiita.com/tadfmac/items/9136f47ae1eea99a4ef7#%E6%9D%90%E6%96%99%E3%82%92%E9%9B%86%E3%82%81%E3%82%88%E3%81%86 | ||
+ | |||
+ | ## ISCPのピン配置 | ||
+ | |||
+ | http://www.arduinolab.net/in-circuit-system-programming-icsp-using-usbtinyisp-and-arduino-ide/ | ||
+ | |||
+ | |||
+ | # 受け側 C# | ||
+ | NAudio.MIDIIn https://github.com/naudio/NAudio/blob/master/Docs/MidiInAndOut.md | ||
+ | |||
+ | |||
+ | |||
+ | |||