Author Topic: "MIDI hack" information  (Read 1632 times)

"MIDI hack" information

« on: February 07, 2016, 07:51:53 PM »
Open quickbuttons

ris8_allo_zen0

Posts: 1

Offline
  • *
  • Newbie
    • View Profile
Hi all,
I'd like to use the miniAtmegatron with a "standard" 5-pin MIDI input, i.e. without an USB connection to a PC.

If I understood correctly, the miniAtmegatron supports MIDI input thru the "MIDI hack" for Arduino. But I haven't found further information about this hack on the web, so here are my questions:
  • does the miniAtmegatron accept a 31250bps input (as per MIDI standard) from the TX/RX pins of the Arduino?
  • Instead of doing the "midi hack", if I plug the shield to a custom Arduino board with MIDI input (and proper glue electronics, optocoupler etc), can I expect the miniAtmegatron to receive and play MIDI note on/off commands?

Thanks!

Re: "MIDI hack" information

« Reply #1 on: February 07, 2016, 09:22:39 PM »
Open quickbuttons

OpAmp

Posts: 4

Offline
  • *
  • Newbie
    • View Profile
Hi,

The MIDI hack is an update to the firmware in the companion chip that takes care of the USB connection between your PC and the Atmel 328p (Uno) processor. The hack installs in fact a new profile in that chip and makes sure that when the USB is plugged, the Arduino board is listed as a standard MIDI interface to your PC. It becomes effectively a MIDI-USB device (at least for your pc and if you downloaded an application processing MIDI events). Using a jumper you can switch back to the Arduino mode, because you need that to download new code to the 328p). That being said, this is not what you are looking for...

The miniAtmegatron understands out of the box MIDI. You need indeed the correct extra circuity on the serial Rx and Tx pins of the Arduino in order to plug a MIDI DIN connector. I have it working fine by reusing parts of the SparkFun MIDI shield. No MIDI hack needed for that.

Have fun.

Re: "MIDI hack" information

« Reply #2 on: February 11, 2016, 09:04:25 PM »
Open quickbuttons

paulsoulsby

Posts: 182

Offline
  • Administrator
  • *****
  • Full Member
    • View Profile
That sounds like an excellent way to add MIDI - I use the Sparkfun MIDI shield myself for lots of purposes.

Re: "MIDI hack" information

« Reply #3 on: February 13, 2016, 05:51:03 PM »
Open quickbuttons

OpAmp

Posts: 4

Offline
  • *
  • Newbie
    • View Profile
Just to sketch it a bit. It is not possible to stack the midi shield on the miniAtmegatron or vice versa. Also they may not be pin compatible (to be honest, I did not check all of them - for Rx and Tx it is ok). What I did:
* instead of the usual headers, I stuffed the miniAtmegatron with stackable headers. It is just fine, they are not blocking buttons or pots. These headers allow me to easily hook up jumper wires.
* put the miniAtmegatron on the Arduino board
* put the midi shield next to the Arduino-minitAtmage combo
* using jump wires, connect the 5V, ground, Rx and Tx between them
There you go...

Re: "MIDI hack" information

« Reply #4 on: February 20, 2016, 12:35:47 AM »
Open quickbuttons

paulsoulsby

Posts: 182

Offline
  • Administrator
  • *****
  • Full Member
    • View Profile
Ah yes - very good point.  The mini completely maxes out all digital and analogue pins apart from TX and RX.  So don't connect any of the knobs or buttons on the shield.