fbpx
Skip to main content

MIDI Forum

MIDI USB to STM32 U...
 
Notifications
Clear all

MIDI USB to STM32 UART (direct connection/ pinout / conversion)?

3 Posts
3 Users
0 Reactions
10.6 K Views
Ciro
 Ciro
Posts: 1
New Member
Topic starter
 

Hello,

i'm new to MIDI and i'm trying to build a MIDI synth that takes midi usb in.

I'm still design the development pcb and ran into a problem.

At first i was just trying to see the pinout of midi usb to connect it to my stm32f1, but now i see that i might need a FTDI chip between midi usb and my controller's serial uart.

I tried to search for the documentation but i couldn't find anything. what should i do?

EDIT: what about the native STM32's usb? should i use that?

 
Posted : 28/11/2019 11:58 am
Clemens Ladisch
Posts: 321
Reputable Member
 

If your STM32 can speak USB, then you should use it. However, the USB protocol is very complex, so it is likely that you will be using ST's libraries for this. (The USB MIDI protocol itself is rather simple.)

Consider using libraries that have built-in USB MIDI support, i.e., Arduino (this works on chips with built-in USB support, e.g., ATmega32U4-based boards or Teensy; I don't know if there is full Arduino support for your STM32).

The FTDI chips do not speak USB MIDI (USB serial is a different protocol). The only external USB/MIDI chip is the CH345, which I cannot recommend because it is too buggy.

 
Posted : 29/11/2019 12:57 am
Prof. H.W.Neuschwander
Posts: 1
New Member
 

Hi,
you can use an STM32F042 Nucleo board. Price approx. 12$?
Add some components for MIDI in and out or analog ... Then use the 2 USB pins of the processor (is USB Device) and connect it to an USB connector and this to any USB host ... for example an WIN10 Pc.

Now search on internet for example code or build it for yourself (not very simple!).

For example
http://midi-and-more.de/stm32-usbmidicom.htm

best regards
Werner

 
Posted : 03/12/2019 2:30 pm
Share: