I found this project: https://github.com/corrados/edrumulus
And I managed to import it into VSC and have platformio compile it and upload it to my ESP32 board. I even added an extra cymbal, which for me is quite something. But I get stuck on how to get the generated MIDI signal to my laptop. I tried an ESP32 S3 board as the readme says that is supportted, but that won't compile and upload properly. So, back to the regular ESP32. And there should be a way to get that MIDI signal to the laptop.
This evening, my eye fell on the lower right hand side of the schematic: https://github.com/corrados/edrumulus/blob/main/hardware/prototype2/edrumulus.pdf
There is the ESP32, and besides all the signal inputs there is UART_TX and UART_RX. My gut feeling says I need to hook those up to the laptop. I googled it and I get a lot of different sollutions. From wiring those pins directly to D+ and D- of the USB, up to CP2102 UART Modules. What should I chose, and why? I'd really like to learn and as you may have guessed by now, I have no experience with these things. I've only made simple stand alone Arduino projects so far.
Post the code in code tags, and also post any serial logs in code tags. Hand-draw a wiring diagram and post a picture of it. Make SURE my 83-year-old eyes will be able to understand what you are posting! I would be a little surprised (I just looked at the photos in the zip, I doubt anyone can draw it let alone follow it so maybe forget that)
I see python is also allowed, don't forget that.
I spent a few seconds looking at the docs and saw the following
Now open the edrumulus.ino file in the Arduino IDE and compile and upload.
Use Edrumulus in your DAW
Go into edrumulus/tools directory and start edrumulus_gui.py. This tool will connect to Edrumulus and
creates (virtual) MIDI ports which can be selected in your DAW as a MIDI device. This tool works on
Windows, Linux and MacOS.
E.g., on Linux simply type python3 edrumulus_gui.py. If you have an ESP32-S3, this usually is on a
different serial port than the normal ESP32. E.g., for an ESP32-S3 on Windows, the following command
should work: python edrumulus_gui.py serial COM4.
Thank you for your reply! I was able to compile and upload.
You cleared a thinking mistake in my head. I thought I needed to start the gui thingy from the board, but I cannot access the board. Now I think I need to run the gui thingy from the laptop folder. However, that file extension .py does not have any program assigned to it on my laptop. So, when I double click it, it opens in VSC. I doubt that is supposed to happen, it should 'run'. Do I need a program to run it, or can I start running it from inside VSC?
[EDIT] Wow, command line... Back to the DOS ages! I think is should run the command line, cd to the right directory and then run the file. I'll try tonight. [/EDIT]
.py is a Python file. It needs to be interpreted, maybe inside VSC. I am not a Python guy, so not 100% sure.
It's still command line, just wrapped in a GUI, so you need faster, more expensive computers than what we used back in the day. It's all smoke and mirrors.
Well, progress. I figured how to run the gui.py file. (install Python, run PowerShell, etc) . And something did indeed happen, but I don't think it's right:
PS C:\Users\hugow> cd desktop
PS C:\Users\hugow\desktop> cd edrumulus-main
PS C:\Users\hugow\desktop\edrumulus-main> cd tools
PS C:\Users\hugow\desktop\edrumulus-main\tools> python edrumulus_gui.py
Traceback (most recent call last):
File "C:\Users\hugow\desktop\edrumulus-main\tools\edrumulus_gui.py", line 38, in
import serial
ModuleNotFoundError: No module named 'serial'
PS C:\Users\hugow\desktop\edrumulus-main\tools>
Yes, I cd'd to the directory and from there ran the file. Something did indeed happen, but it gives an error. I can find that line in the file when opening it in VCS, but I don't know what it wrong or how to fix it.
Oh, BTW, I tried the hello.py example and that works, so Python is basically functional.