Please familiarise yourself with the forum rules & guidelines

USB HOST midi interface with Raspberry Zero

12
sIRwa2sIRwa2 Posts: 5

Hi guy's

I like to share my almost finished project to have "usb only controllers" work directly with de Deluge (or any other usb midi device for that matter) the Idea was brought to my attention on the Deluge Facebook group by Fabio Barbon.

Here is the deal:

Raspberry Zero with wifi and bluetooth (get them while they still out there, i think production stopped on those)
usb hub hat (it fits nicely on it)

How it works:

The Zero is running vanilla raspbian jessie in read only, so you can pull the power and don't risk sd-card corruption. The Zero wakes up and automatically connects the midi devices. thats it!

for maintenance, the Zero is configured to connect to my hotspot automatically, If it doesn't find my network, it will create a hotspot for you to connect to and that way you can ssh into it and configure what ever you like.

Thats how far i took it, software is running,, have to build a nice box to house the zero and 3 usb ports.. theoretically you could add a cheap usb to midi din adaptor and have an even more versatile device! i heard bluetooth midi works as well, i didn't test that

i used the following guides:

step one:

install Raspbian Jessie (i didn't go for Stretch because i couldn't get it boot properly in read only without errors)

step two:

get midi working:
https://stimresp.wordpress.com/2016/02/08/using-a-raspberry-pi-as-usb-midi-host/

to auto configure at boot i didn't use the cron methode as mentioned but i added the following to /etc/rc.local
aconnect 20:0 24:0
aconnect 24:0 20:0

step three:

set up the autohotspot:

http://www.raspberryconnect.com/network/item/331-raspberry-pi-auto-wifi-hotspot-switch-no-internet-routing

step four

make it read only:

https://learn.adafruit.com/read-only-raspberry-pi?view=all.

this, off course, works with any raspberry.

Comments

  • 0
    maxmanmaxman HamburgPosts: 8

    this is awesome.... trying with my zero now....

  • 0
    mrrafsmrrafs ukPosts: 47

    sIRwa2 this looks awesome. I assume you need to power the Raspberry via another usb lead and that provides the controller with juice?

  • 0
    TenebrousTenebrous EnglandPosts: 49

    For info, I came across another guide that may be of use too:
    https://neuma.studio/rpi-as-midi-host.html

    It covers:

    • automatically connecting devices together as and when they are plugged into the USB ports
    • setting up the Pi to act as a Bluetooth MIDI device
    • read-only mode.

    Hope it helps!

  • 0
    drbourbondrbourbon italyPosts: 10

    I've recently added instructions to connect a 128x64 1.3' OLED display (https://amazon.it/AZDelivery-Display-retroilluminato-Raspberry-gratuito/dp/B01L9GC470/ref=sr_1_2?ie=UTF8&qid=1550633976&sr=8-2&keywords=SSD1306) to the Raspberry for displaying active MIDI connected devices by name.

    This box works surprisingly well even with chained usb hubs. I am using this trick to control 6 synths with my deluge (3 raspberry usb ports, fourth is used to chain a 4 port standard usb hub).

  • 0
    TenebrousTenebrous EnglandPosts: 49

    @drbourbon said:
    I've recently added instructions to connect a 128x64 1.3' OLED display...

    Thanks for that! Works very well for me too.

  • 0
    Tricep3Tricep3 United KingdomPosts: 12

    Hi guys,

    This looks like an awesome way to chain lots of midi devices together. Does the Raspberry Pi basically act as a midi thru for all connected devices? For example, would all midi data received into the Raspberry Pi be sent to all devices that are connected?

    And what about if a Midi device that is connected gets its power from its usb port - does the raspberry pi draw enough power to power external hardware?

    Cheers,

    Alex

  • 0
    TenebrousTenebrous EnglandPosts: 49
    edited March 11

    @Tricep3 said:
    ... would all midi data received into the Raspberry Pi be sent to all devices that are connected?

    Yep!

    @Tricep3 said:
    And what about if a Midi device that is connected gets its power from its usb port - does the raspberry pi draw enough power to power external hardware?

    You should have enough for a few simple devices. But the worst that could happen is the connected devices don't work reliably or don't power on.

    The best idea is to use a USB hub connected to the Pi - one that supports an additional separate power supply.

    FYI, the Pi's can supply power to USB:

    Pi 1: 500mA
    Pi 1B and Pi 2: 600mA, or 1.2A with max_usb_current=1
    Pi 3: 1.2A

    (I took this from https://github.com/superjamie/lazyweb/wiki/Raspberry-Pi-Power)

    Post edited by Tenebrous on
  • 0
    Tricep3Tricep3 United KingdomPosts: 12

    Thanks for the information Tenebrous! I was plan to power a Novation Launch Control XL and an Arturia Keystep with the Raspberry Pi but like you said it's probably best to have a powered usb hub in case I need more power. I found that the Keystep draws 500mA according to the manual. Does anyone know how much the Launch Control XL draws? I couldn't find it anywhere in the manual.

    Cheers

Sign In or Register to comment.