Offline

I'm trying to come up with the least expensive way possible of connecting a DMG to a MIDI device. Most cheap modern MIDI keyboards don't have MIDI plugs, and Laptops certainly don't, so I need to use a USB cable. Of course, the Teensyboy does this, but an Arduino Teensy is $20 at Adafruit, while Arduino Pro-Micros, and UNO clones are readily available for less than $10 (as low as $3!) on eBay, and both of those have native USB. Even an Arduino DUE is less expensive than a Teensy, and it is a far better board with 2 USB ports. 

1) Can I wire up any Arduino with Native USB support the way I would wire a Teensyboy, and then run the Arduinoboy.ino sketch on it and have a functional USB MIDI Adapter for a DMG? Which model would be best?

2) Would it be possible to run an UNO with a Shieldboy on top thus giving me the option of MIDI jacks or USB?

3) The Arduino Due has 2 USB ports. Can I use this Arduino and achieve MIDI through?

Offline
Unsubscribe

https://github.com/ddiakopoulos/hiduino

1 Would do it with the above
2: youd could do this but would probably need to alter the code some.
3. No idea, but 1 disables the ability for a uno to be updated over USB and you need a FTDI cable.

Let me know how it goes, I want to do #2 myself but havent found the time to try it.

Offline
Unsubscribe

dupes

Last edited by herr_prof (Aug 30, 2016 1:09 am)

Offline
NUMBSKULL

I don't know the answers to your questions, but AFAIK the USB midi host stuff is pretty exclusive to the teensy.

If you're looking for the absolute cheapest way to connect your gameboy to MIDI, I would just build a regular arduinoboy and buy one of these super cheap USB MIDI cables: http://www.ebay.com/itm/MIDI-USB-IN-OUT … 1416064081

Also, shameless plug, but I have arduinoboy kits for pretty cheap. Maybe even cheaper than buying all the parts yourself. http://catskull.net/shop/arduinoboy

Offline

Catskull, If I figure out how to get MIDI USB working on an UNO board, I certainly plan on buying a few of your Shieldboy kits so that I can have the option of MIDI ports, or USB. That being said, Arduino UNOs with the necessary AVR chip for USB MIDI are currently going for $7.68 on eBay. If I could get that to work as a USB MIDI DMG hub, there is nothing that could come close to it for the money. The problem is that I am an intermediate Arduino programmer at best. I'm not sure I can accomplish blending HIDUINO with Trash80's Arduinoboy code.

Offline
Ardèche, France

If anyone was able to made these projects blend, please share. It would be a significant improvement in costs for some projects.
Some months ago someone did a prototype of a usb-midi board to integrate directly in the DMG-01, and this was based on a Teensy, this was amazing to see, but if my memory's good, he was having problems with the costs of his prototypes, so this could drastically improve this problem.

Offline
Sweeeeeeden

Or, the NL MIDI adapter. Maybe not the cheapest option, but probably the smallest and simplest. But again, no MIDI USB host.

http://nanoloop.de/midi/index.html

Offline
Glasgow, Scotland.

You could use an Arduino with a USB to MIDI cable in combination with an Arduinoboy. Ledfyr wrote some code up for this - midicloro.

Check out: http://chipmusic.org/forums/topic/17525 … o-midi-din

Last edited by unexpectedbowtie (Aug 30, 2016 3:38 pm)

Offline
IL, US

there is this, should work on a pi zero, a powered usb hub and the nl midi adapter for a pretty low total cost
http://sandsoftwaresound.net/send-midi- … -to-5-pin/

Offline
e.s.c. wrote:

there is this, should work on a pi zero, a powered usb hub and the nl midi adapter for a pretty low total cost
http://sandsoftwaresound.net/send-midi- … -to-5-pin/

That would work. But...

NL MIDI Adapter = $15.60 (plus shipping)
Raspberry Pi Zero = $5.00 (plus shipping)
Powered USB Hub with Power Supply = $7.39

Total $27.90 (plus shipping)

Arduino DUE with USB Cable with free shipping = $13.84

Theoretically, if I can get the DUE to work, all it would need is some coding. It's cheaper, self contained, and I should be able to power it from the Gameboy. Of course, I'm not sure I can get both USB ports to work for USB-Through on the DUE.

Offline
IL, US

yeah, just keep in mind that your time is worth money too.. and time spent is non-refundable

Offline
e.s.c. wrote:

yeah, just keep in mind that your time is worth money too.. and time spent is non-refundable

This is a hobby, Man! In this case time=/=money. None of us would be here if Trash80 hadn't put in the time.

Anwyay, I think it's a moot point. Your way would work, but I don't think a DUE will. From what I just read a few minutes ago:

"The Arduino Due has two USB ports available. The Native USB port (which supports CDC serial communication using the SerialUSB object) is connected directly to the SAM3X MCU. The other USB port is the Programming port. It is connected to an ATMEL 16U2 which acts as a USB-to-Serial converter."

I don't think I will be able to use HIDUINO code to get both USB ports Sending/Receiving MIDI signals as the

"HIDUINO takes advantage of Arduino boards where a second AVR chip is used as the USB controller, so it won't work with single chip variants (e.g. Leonardo), nor older boards that use an FTDI chip as USB controller (e.g. Duemilanove). Many cheap Arduino knockoffs that pretend to be an Uno or Mega also might not work, since they tend to use the (slighly) cheaper FTDI chips."

Maybe there is another way to get the two USB ports working with MIDI on a DUE, but I don't see a clear path.

Offline
Ciudad de méxico, MX

Teensyduino is the way to go in my opinion (teensy is MIDI ready). I use HIDUINO to make Midi controlers but in this case you got to change the code and the schematic for the arduinoboy. Doesn't look that difficult. Actually (wild guessing) you can upload the teensy sketch file on a UNO and change the bootloader to HIDUINO and it should work -don't quote me on this-. (You gotta check the in/outs since they are similar boards but not identical).

Cheap arduino clones don't always have the pins for the dfu programming. (that is, the easiest way to program the bootloader for "out of the box" MIDI). Check that before you buy it.

You can enter in dfu mode to change the bootloader for use hiduino. (I know by experience that uno board works great!)
https://www.arduino.cc/en/Hacking/DFUProgramming8U2

I guess that you can figure out which parts of the circuits you won't need anymore.
https://www.arduino.cc/en/Tutorial/Midi

Offline
Analog wrote:

Teensyduino is the way to go in my opinion (teensy is MIDI ready). I use HIDUINO to make Midi controlers but in this case you got to change the code and the schematic for the arduinoboy. Doesn't look that difficult. Actually (wild guessing) you can upload the teensy sketch file on a UNO and change the bootloader to HIDUINO and it should work -don't quote me on this-. (You gotta check the in/outs since they are similar boards but not identical).

Cheap arduino clones don't always have the pins for the dfu programming. (that is, the easiest way to program the bootloader for "out of the box" MIDI). Check that before you buy it.

You can enter in dfu mode to change the bootloader for use hiduino. (I know by experience that uno board works great!)
https://www.arduino.cc/en/Hacking/DFUProgramming8U2

I guess that you can figure out which parts of the circuits you won't need anymore.
https://www.arduino.cc/en/Tutorial/Midi

This is helpful. Thank you.

Offline

Duplicate

Last edited by punamenon2 (Aug 30, 2016 8:04 pm)

Offline
Ciudad de méxico, MX

Anything you need please don't hesitate to ask. The community needs to cover options smile