Midi Wing not working with ESP32 v2

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
17dixn
 
Posts: 5
Joined: Tue Jan 03, 2023 9:51 pm

Midi Wing not working with ESP32 v2

Post by 17dixn »

I'm not quite sure if this is the right board, but I have an esp32 v2 feather and a midi wing, and the example code just does not work for input or output. The input LED lights up, so I know the wing is getting midi in, but I can't for the life of me figure out why it won't send or receive info to the esp32.

I have inspected all the solders and they all have connections, is there something else I could be missing?

User avatar
bidrohini
 
Posts: 202
Joined: Thu Oct 20, 2022 10:03 am

Re: Midi Wing not working with ESP32 v2

Post by bidrohini »

Which library are you using?

User avatar
17dixn
 
Posts: 5
Joined: Tue Jan 03, 2023 9:51 pm

Re: Midi Wing not working with ESP32 v2

Post by 17dixn »

arduino MIDI library like the guide says. Copy pasting example code and also just running the include lib examples for testing, neither seem to work

User avatar
adafruit_support_carter
 
Posts: 30207
Joined: Tue Nov 29, 2016 2:45 pm

Re: Midi Wing not working with ESP32 v2

Post by adafruit_support_carter »

You're following this example?
https://learn.adafruit.com/adafruit-mid ... di-example

What board are you selecting in the Arduino IDE?

User avatar
17dixn
 
Posts: 5
Joined: Tue Jan 03, 2023 9:51 pm

Re: Midi Wing not working with ESP32 v2

Post by 17dixn »

yes that's the guide. I'm using the ESP32 V2 and selecting it in the IDE. It works perfectly fine with various stemma i2c sensors and a display in SPI mode. I've even gotten AppleMIDI to work while I was waiting on this wing.

User avatar
adafruit_support_carter
 
Posts: 30207
Joined: Tue Nov 29, 2016 2:45 pm

Re: Midi Wing not working with ESP32 v2

Post by adafruit_support_carter »

I have an esp32 v2 feather
You need to select Adafruit Feather ESP32 V2 in the board list.

User avatar
17dixn
 
Posts: 5
Joined: Tue Jan 03, 2023 9:51 pm

Re: Midi Wing not working with ESP32 v2

Post by 17dixn »

That is the one I'm selecting, apologies for being vague. I've gotten plenty of other examples loaded and working, this is the first part that I can't figure out.

User avatar
adafruit_support_carter
 
Posts: 30207
Joined: Tue Nov 29, 2016 2:45 pm

Re: Midi Wing not working with ESP32 v2

Post by adafruit_support_carter »

Try changing this line:

Code: Select all

MIDI_CREATE_DEFAULT_INSTANCE();
to:

Code: Select all

MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);

User avatar
17dixn
 
Posts: 5
Joined: Tue Jan 03, 2023 9:51 pm

Re: Midi Wing not working with ESP32 v2

Post by 17dixn »

That was the fix needed. Thanks for your help!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”