1. Flashing MIDI HID - Silhm/bcf-scribble-strips GitHub Wiki

Flashing your Arduino with MIDI HID

Note for later

See http://morecatlab.akiba.coocan.jp/lab/index.php/aruino/midi-firmware-for-arduino-uno-moco/?lang=en mocoLUFA firmware seems to better handle sysEx...

:warning: Once your Arduino is flashed, you won't be able to upload code to it via the Arduino USB port, you will need to do it via the ISP programmer only.

Requirements

  • First you need to get an Arduino UNO or MEGA,
  • The USB cable for the Arduino,
  • You need to install dfu-programmer (available in most Linux distrib)
  • 2 wires

It unfortunately doesn't work with copies or ftdi version since we need to flash the ATMEGA 8u2 or 16u2 to make the Arduino recognized as a MIDI Device on USB. (on copy version, there is no ATM8u2 chip on it, but a GH340G chip)

Get the firmware

Start by getting the HIDuino firmware corresponding to your Arduino.

You can also customize the name displayed in your computer by getting the firmware on pimpmyhiduino.yaeltex.com

Set The Arduino to DFU mode

To flash your Arduino HIDuino, you need to plug the USB cable, then set your Arduino on DFU mode.

  1. Short the top left PIN of the ATM8u2 to GND
  2. Short briefly the diode left PIN (right under the RX led) to GND
  3. All leds are off, remove the second short
  4. Remove the first short

Arduino to DFU mode

Your arduino is now in DFU mode

Flash your Arduino!

Use dfu-programmer to load the new firmware.

Once your Arduino is flashed, you won't be able to upload code to it via the Arduino USB port, you will need to do it via the ISP programmer only.

I did this for my UNO R2:

  • sudo dfu-programmer at90usb82 erase
  • sudo dfu-programmer at90usb82 flash dualMoco.hex
  • sudo dfu-programmer at90usb82 reset `

Ressources