Offline
Glasgow, Scotland.
Adzetko wrote:
yogi wrote:

I was thinking that Teensyboy didn't act as a USB Host but just as a Device?

Yogi

Ow, can anyone confirm this?
At least, you can add these shields to an arduino (or Teensy or RasPi) : http://www.hobbytronics.co.uk/usb-host-midi

Oh nice! That seems a lot simpler than I had imagined.

The only electronics I've messed around with are Gameboys, so I'll need to investigate a bit, but theoretically I would just need the Raspberry Pi, a midi connector, and that USB host board right? (Give or take)...

Offline
Melbourne, Australia
unexpectedbowtie wrote:

The only electronics I've messed around with are Gameboys, so I'll need to investigate a bit, but theoretically I would just need the Raspberry Pi, a midi connector, and that USB host board right? (Give or take)...

Raspberry Pi already has USB Host onboard. Arduino / Teensy does not.

Offline
Glasgow, Scotland.
uXe wrote:
unexpectedbowtie wrote:

The only electronics I've messed around with are Gameboys, so I'll need to investigate a bit, but theoretically I would just need the Raspberry Pi, a midi connector, and that USB host board right? (Give or take)...

Raspberry Pi already has USB Host onboard. Arduino / Teensy does not.


Thanks. I know almost nothing about the boards. I'll go read up on them. This could be a good intro project!

Offline
Jelly Stone park, MD USA
unexpectedbowtie wrote:
uXe wrote:

Raspberry Pi already has USB Host onboard. Arduino / Teensy does not.


Thanks. I know almost nothing about the boards. I'll go read up on them. This could be a good intro project!

If you go the HobbyTronic route, you would just connect the output from the host board to the Teensy/Arduinoboy board instead of the DIN midi socket. Sort of like this example- http://www.hobbytronics.co.uk/midi-player-tutorial  but with the controller board running Arduinoboy firmware. Looks like there wouldn't be any 'programming' involved on your part, the Host board connects with TTL level midi in and out to the controller. Plug and Play
Yogi
Using this Host board, could retro fit any number of DIY midi projects, SammichSID or Shruthi

Last edited by yogi (Jan 10, 2016 2:32 am)

Offline
Glasgow, Scotland.
yogi wrote:
unexpectedbowtie wrote:

Thanks. I know almost nothing about the boards. I'll go read up on them. This could be a good intro project!

If you go the HobbyTronic route, you would just connect the output from the host board to the Teensy/Arduinoboy board instead of the DIN midi socket. Sort of like this example- http://www.hobbytronics.co.uk/midi-player-tutorial  but with the controller board running Arduinoboy firmware. Looks like there wouldn't be any 'programming' involved on your part, the Host board connects with TTL level midi in and out to the controller. Plug and Play
Yogi
Using this Host board, could retro fit any number of DIY midi projects, SammichSID or Shruthi

Awesome. Thanks a lot for the explanation - I appreciate it. I've ordered an Arduino (Uno), the USB Mini Host Board, a DIN connector, and the resistor(s). Just need to dig out my soldering iron. I'll post back when I inevitably mess things up, or when it's all done successfully!

Offline
Sweden

A Raspberry Pi with Raspbian can do USB to DIN MIDI out of the box if you have a USB MIDI interface with DIN connectors.
You can route USB keyboards to a DIN port on the interface using the aconnect command.

This way you dont have to solder anything.

See here for an example:
http://sandsoftwaresound.net/send-midi- … -to-5-pin/

Side-note:
I've made a program which lets you route MIDI like above while adding clock and more. See this thread:
http://chipmusic.org/forums/topic/17404 … l-routing/

Offline
Glasgow, Scotland.
Ledfyr wrote:

A Raspberry Pi with Raspbian can do USB to DIN MIDI out of the box if you have a USB MIDI interface with DIN connectors.
You can route USB keyboards to a DIN port on the interface using the aconnect command.

This way you dont have to solder anything.

See here for an example:
http://sandsoftwaresound.net/send-midi- … -to-5-pin/

Side-note:
I've made a program which lets you route MIDI like above while adding clock and more. See this thread:
http://chipmusic.org/forums/topic/17404 … l-routing/

Damnit, I've bought the components for the Arduinoboy now. I've saved the link though and will probably come back to it when I throw it out the window due to my crappy soldering.

Offline
Glasgow, Scotland.

So, I ended up getting a raspberry pi and the USB-MIDI cable. Connected it all up via aconnect, and I can see that the MIDI messages are getting routed correctly. Result! Problem is now that there's no sound coming out. I know that the Arduinoboy works fine, so I suspect it must be a channel mis-match. Trying to work out how to switch the channel at the minute as the USB keyboard I have doesn't have any hardware controls that do it (it's an Akai LPK25).

I did try to use the software at http://chipmusic.org/forums/topic/17404 … l-routing/ - but I'm hitting an error about a dependency that I've dropped you a PM about Ledfyr:

'./midicloro: error while loading shared libraries: libboost_system.so.1.55.0: cannot open shared object file: no such file or directory.'

Offline
Glasgow, Scotland.

After chatting with ledfyr, I've re-flashed the Raspberry Pi and all is working perfectly! I've now got a neat wee headless USB-MIDI converter. I've ordered a Nanoloop USB-MIDI link cable adaptor to see if I could use that in place of the Arduinoboy as an experiment too.

Thanks a lot for the help!

Offline
Sweden

Glad to hear you got it working!  Can you confirm if the nanoloop usb adapter works with the Raspberry when you get it? (it should)

Last edited by Ledfyr (Jan 14, 2016 1:51 pm)

Offline
Glasgow, Scotland.
Ledfyr wrote:

Glad to hear you got it working!  Can you confirm if the nanoloop usb midi adapter works when you get it? (it should)

No problem!

I've ended up with all the parts for the Arduino shizz as well, so going to try building that as a side-project.

Offline
Glasgow, Scotland.

Another update for the sake of anybody who is trying this out later on.

I tested using the Midicloro app from ledfyr on a Raspberry Pi, using the Nanoloop USB Midi adaptor rather than connecting via the Arduinoboy, and it works! So a cheaper option to get USB MIDI devices to work for those who don't have an arduinoboy...

My Launchpad works as an input device as well, but the default note settings are all messed up, so it will require some more research to work out how to re-map the keys in Linux (only Windows/Mac are supported officially - boo.)

Offline

Let me revive this thread. Someone linked to it in another post, and I realized that I had recently seen a solution:

Anyone trying this can go with the original proposed solution of using a regular Arduinoboy, and then get the MIDI to USB adapter to work by hacking it like this:

http://makezine.com/2010/09/10/send-mid … for-cheap/

My goal is to get the Arduino UNO to act as a MIDI USB device simply through the programming, no extra hardware needed. Once I've solved that, I'm going to attempt to get an Arduino DUE to do the same thing, only since it has two USB ports, I'm hoping I can get it to do MIDI-through, instead of just MIDI-in.

Offline
Unsubscribe

i think you are making it too complicated. If the due works for usb host and midi what would you need the above for?

In other words what all are you trying to connect?

Offline
herr_prof wrote:

i think you are making it too complicated. If the due works for usb host and midi what would you need the above for?

In other words what all are you trying to connect?

What I'm trying to achieve: A single Arduinoboy type device with MIDI Through USB, and also MIDI In/Out/Through 5 pin jacks. All for under $25 cost.

The reason I'm starting with the UNO is because I'm almost certain I can get it to work by combining the Hiduino project with Trash80s Arduinoboy or Teensyboy code. Then it's as simple as putting a Shieldboy on top of that. The only thing I'm missing is MIDI through on the USB. For that I will need to use an Arduino DUE because it has the two USB ports on the board. If I can get MIDI to run on the DUE, I will then need to make a custom Shieldboy. as it has a different footprint than the UNO. In other words, the UNO is the low hanging fruit, and anything I learn doing that should help me accomplish the DUE.

Wish me luck.

Offline
NUMBSKULL

Do you want to be able to plug in a USB MIDI device into your arduinoboy? Or you just want to be able to plug the arduinoboy into your computer and have it show up as a midi device?