Page 1 of 1

ESP8266 versus ESP32 for MIDI input

Posted: Tue Aug 03, 2021 8:17 pm
by pd9fvh
Hi,

I've been using this https://vps001.vanheusden.com/~folkert/midi-wemos.pdf schematic for an esp8266 successfully. It allows me to receive MIDI data on an ESP.
Now I would like to do the same for the ESP32. I tried the same schematic but I receive nothing if I connect the optocoupler to the regular RX pin (GPIO3 if I remember correctly) and I only receive garbage which somewhat resembles the input-data if I use GPIO16 (using uart1). I'm using the arduino environment.

Should I be able to use the same schematic? or are there electrical differences between the 8266 and esp32 regarding the uarts?

Re: ESP8266 versus ESP32 for MIDI input

Posted: Sat Jan 07, 2023 8:56 pm
by uni4ever
Hi,

Can you please send me the MIDI input schematic for ESP8266 and ESP32? I tried to download from that link but the link is already dead... :(

Re: ESP8266 versus ESP32 for MIDI input

Posted: Sun Jan 08, 2023 6:57 pm
by ChrisHill
I built a MIDI circuit for an ESP32 based on the information in the very useful video here: https://www.notesandvolts.com/2014/11/m ... lysis.html (the circuit diagram used in that video is here: https://2.bp.blogspot.com/-sQ8Uw7x-Vs0/ ... ematic.png).

I've hooked it up to various input pins - someone will correct me, but I think you should be able to use any GPIO provided you configure it properly, e.g.:

Code: Select all

#define my_rx 22
#define my_tx 23
static const uint32_t my_Baud = 31250;
HardwareSerial my_Serial(2);

pinMode(my_tx, OUTPUT);
pinMode(my_rx, INPUT);
mySerial.begin(my_Baud,SERIAL_8N1,my_rx,my_tx);
The usual reason for garbage input is either incorrect baud rate or parity. I don't know enough about MIDI to say whether the 31250 baud needed for my application is common.

Re: ESP8266 versus ESP32 for MIDI input

Posted: Mon Mar 13, 2023 8:17 pm
by pd9fvh
uni4ever wrote:
Sat Jan 07, 2023 8:56 pm
Hi,

Can you please send me the MIDI input schematic for ESP8266 and ESP32? I tried to download from that link but the link is already dead... :(
Hi,

I believe it was something like this: https://vanheusden.com/permshare/wemosmidi.pdf