Skip to content

MIDI not working with ESP32 S3 with Serial2 #308

Open
@mastrumisciu

Description

@mastrumisciu

Hi I'm using both an ESP32 WROOM 32 and a ESP32-S3-DevKitC-1 for some MIDI projects with Arduino.
The code I'm using is the one below and for both board I'm using the following wiring to the 5 din connector and using resistors for 3,3volt.
https://eu-central-1-02860049-view.menlosecurity.com/c/0/i/aHR0cHM6Ly93d3cubWlkaS5vcmcvaW1hZ2VzL3NwZWNzL1NjcmVlbl9TaG90XzIwMjAtMDctMThfYXRfMTIuMjAuMDhfUE0ucG5n

By using pin 17 as Tx I get the code working on the WROOM board only, I can upload the code with no errors on the S3 board as well but no MIDI message are sent from pin 17.
Is there anyone using the S3 for MIDI over Serial2 that can help me on `this?
Thanks!

``

#include <MIDI.h>
#include <HardwareSerial.h>
#include <esp_now.h>

struct Serial2MIDISettings : public midi::DefaultSettings
{
static const long BaudRate = 31250;
static const int8_t TxPin = 17;
};

MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial2, DIN_MIDI, Serial2MIDISettings);

void setup() {
Serial.begin(9600);
DIN_MIDI.begin(MIDI_CHANNEL_OMNI);
delay(300);
DIN_MIDI.setHandleProgramChange(handleProgramChange);
}

void loop() {
DIN_MIDI.sendProgramChange(42, 10);
delay(100);
}

``

  • What board are you using ?
    • ESP32wroom and ESP32 S3 Devkit
  • What version of the Arduino IDE are you using ?
    • 1.8.5
  • How are you using MIDI ?
    • DIN plug
  • Is your problem related to:
    • MIDI Output (sending messages to other devices)
  • How comfortable are you with code ?
    • I've done basic projects

Describe your project and what you expect to happen:

I just need to send some basic MIDI messages from S3 to a MIDI device using 5pin DIN connector using Serial2

Describe your problem (what does not work):

By using pin 17 as Tx I get the code working on the WROOM board only, I can upload the code with no errors on the S3 board as well but no MIDI message are sent from pin 17.

Steps to reproduce

The code I'm using is the one above and for both board I'm using the following wiring to the 5 din connector and using resistors for 3,3volt.
https://eu-central-1-02860049-view.menlosecurity.com/c/0/i/aHR0cHM6Ly93d3cubWlkaS5vcmcvaW1hZ2VzL3NwZWNzL1NjcmVlbl9TaG90XzIwMjAtMDctMThfYXRfMTIuMjAuMDhfUE0ucG5n

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions