Sending and recieving serial data with MidiUSB Lib

Hi,

Im working on a midi controller using the MidiUSB lib.
I have my Uno flashed as a MIDI compliant device so its not recognized as a serial device.
Now i was wondering if it is still possible to send and receive serial data along with the midi data.

My plan is to get data from the music software and display it on a smal display on the midi controller.

I could use the hairless serial to midi converter but i like the MIDI compliant device method because it does not need any additional software. And for me working on my mac the hairless software is not compatible anymore.

Hope somebody can give me some tips!
Cheers

Thanks for your reply!
I need to practice my google skills, i did som research myself but could not find what you just find.

I really like the Control Surface Library! it has some nice features i can use in my project.
Thanks for pointing it to me. So now its time to read the docs and try some thing out !

Cheers

1 Like

Just one question, what example you are talking about? ik cant find the one with multiple interfaces in the MIDI lib

Yes it is. You need these two libraries

#include <MIDI.h>
#include <USB-MIDI.h>

And then :-

MIDI_CREATE_INSTANCE(HardwareSerial, Serial1,     midi6pin);
MIDI_CREATE_INSTANCE(Serial_, SerialUSB,  usb); // use Hairless on laptop

I was using this to stream a other channel of MIDI in from the external pins of serial port 1 and converting it into MIDI using hairless, you have no need to do this, forget about hairless and just use the stuff you send over the serial port for printing.

EDIT:- I am afraid you can only do this trick with an Arduino Leonardo or Micro, not a Uno.

Thnks! sounds pretty easy tho.
I wil take a look at it sounds prommissing!

So when using this two libraries i get a my arduino pop up as a midi compliant device and it wil show up as a serial device? Sorry if im totally wrong, still learing ALOT.

I don't know what you mean by "pop up"?

Sorry I have just reread this:-

I am afraid you can only do this trick with an Arduino Leonardo or Micro.

Do you not find flashing the boot loader every time you want to change the code and then re-flashing the MIDI a bit of a PITA?

I did make it work, by flashing some firmware. Ofcourse i cant recall what firmware it was and where i found it but it must be some where on my mac.

Do you not find flashing the boot loader every time you want to change the code and then re-flashing the MIDI a bit of a PITA?

Yhea its kid of a pain.. i just order a Pro micro and a leonardo. the thing is. i had laying a micro around but it wont work... my mac or pc wont recognize it.

Sooo it time to spend some money and try it !!

thanks for the help. if i get it to work i wil let you know !

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.