Communication Options for Dual-Processor MIDI Control Pedalboard with ESP32
Hello,
I am currently building a MIDI control pedalboard. It will need to connect simultaneously via classic MIDI (Serial ports) and BLE-MIDI to controllers and synthesizers and via WiFi to a computer.
I have read that the ESP32 cannot handle WiFi and BLE simultaneously, and my initial tests seem to confirm this. So, I am considering using two processors, one for WiFi and the other for Bluetooth.
I am wondering how to make them communicate with each other: a classic serial connection on a dedicated port or exchanges via I2C or SPI?
Thanks 🙏🏻
Solution:Jump to solution
I recommend using SPI. It's faster than I2C and simpler to implement than a dedicated serial connection.
2 Replies
Solution
I recommend using SPI. It's faster than I2C and simpler to implement than a dedicated serial connection.
ya, you should use an SPI protocol, cause it can handle two way communication simutanously in the two MCU. But when doing this enable 4-Wire mode in the SPI ports.