ESP8266 versus ESP32 for MIDI input

pd9fvh
Posts: 2
Joined: Tue Aug 03, 2021 8:13 pm

ESP8266 versus ESP32 for MIDI input

Postby pd9fvh » Tue Aug 03, 2021 8:17 pm

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?

uni4ever
Posts: 1
Joined: Sat Jan 07, 2023 8:52 pm

Re: ESP8266 versus ESP32 for MIDI input

Postby uni4ever » 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... :(

ChrisHill
Posts: 9
Joined: Fri Jan 06, 2023 12:57 pm

Re: ESP8266 versus ESP32 for MIDI input

Postby ChrisHill » Sun Jan 08, 2023 6:57 pm

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.

pd9fvh
Posts: 2
Joined: Tue Aug 03, 2021 8:13 pm

Re: ESP8266 versus ESP32 for MIDI input

Postby pd9fvh » Mon Mar 13, 2023 8:17 pm

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

Who is online

Users browsing this forum: Barkonet and 31 guests