0

Huzzah32 as USB MIDI device?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Huzzah32 as USB MIDI device?

by juanestrella on Thu Nov 07, 2019 3:12 pm

Hello. I'm building a MIDI synth. I'm using the Huzzah32 to scan a button matrix, and send key press data over USB to a Teensy 3.6 where I do signal processing with the Teensy Audio Library. I'd like to have the Huzzah32 show up as a USB Midi device and turn the button press info into MIDI note on/off messages. Is this possible? It was easy when I used a Teensy as the scanning processor. But I'd like to switch to the Huzzah32 to take advantage of Bluetooth. Any advice would be greatly appreciated. :)

juanestrella
 
Posts: 1
Joined: Fri Apr 27, 2018 7:48 am

Re: Huzzah32 as USB MIDI device?

by adafruit_support_mike on Fri Nov 08, 2019 3:45 am

I'm afraid that isn't possible.

The Teensy handles USB internally, so you can program the microcontroller to act like any kind of USB device you want. The ESP32 doesn't know how to do USB, and relies on a CP2104 USB-to-Serial converter to talk to a computer's USB host.

The CP2104 only knows how to behave like a Serial device, and there's no way to change that.

You could add an intermediate board like a Trinket M0:

https://www.adafruit.com/product/3500

It also handles USB internally, and can be programmed to work like a USB MIDI device. The ESP32 can talk to it through a Serial connection.

adafruit_support_mike
 
Posts: 59401
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.