See the full article on Soldered.com.
Project where an ESP32-S3 board with USB-OTG acts as a MIDI device for Surge XT. A continuous note is played (can be paused with a button) while the HX711 load cell sets the cutoff filter value based on applied pressure.
Note: If you are using an ESP32-S3 with USB-OTG the board presents itself as a USB MIDI device directly. If your board does not support USB-OTG native MIDI, you will need additional tools to bridge USB serial to MIDI:
- Hairless MIDI — converts serial output to MIDI
- loopMIDI (Windows) or a similar virtual MIDI port driver
- An ESP32-S3 board
- Load-cell amplifier HX711
- Simple Pushbutton
-
If you haven't already, install Arduino IDE
-
Download this repository and extract it
-
Start the arduino sketch located in HX711_MIDI_Controller/HX711_MIDI_Controller.ino
-
Click on the Boards Manager icon on the left and search for esp32 by Espressif Systems and install it
-
In the Select other board or menu... dropdown menu pick the ESP32S3 Dev Module and the serial port it is connected to
-
Install all of the libraries mentioned under Software requirements
-
Connect ESP32-S3 board to your PC via UART USB port when uploading code.
-
In Arduino IDE under Tools set USB Mode to USB-OTG (TinyUSB).
-
Upload the sketch.
-
Now switch the USB port connection on your S3 board from UART to USB.
-
Open Surge XT program, under Options select Audio/MIDI Settings and pick TinyUSB MIDI as Active MIDI input.
-
On main screen, right click on Cutoff filter slider and select MIDI Learn to make it respond to load cell input.
-
Now pick a filter type and apply pressure on the load cell to play the tunes!
At Soldered, we design and manufacture a wide selection of electronic products to help you turn your ideas into acts and bring you one step closer to your final project. Our products are intented for makers and crafted in-house by our experienced team in Osijek, Croatia. We believe that sharing is a crucial element for improvement and innovation, and we work hard to stay connected with all our makers regardless of their skill or experience level. Therefore, all our products are open-source. Finally, we always have your back. If you face any problem concerning either your shopping experience or your electronics project, our team will help you deal with it, offering efficient customer service and cost-free technical support anytime. Some of those might be useful for you:
Soldered invests vast amounts of time into hardware & software for these products, which are all open-source. Please support future development by buying one of our products.
This repository is under the MIT license, for more info, see LICENSE. Long story short, use these open-source files for any purpose you want to, as long as you apply the same open-source licence to it and disclose the original source. No warranty - all designs in this repository are distributed in the hope that they will be useful, but without any warranty. They are provided "AS IS", therefore without warranty of any kind, either expressed or implied. The entire quality and performance of what you do with the contents of this repository are your responsibility. In no event, Soldered (TAVU) will be liable for your damages, losses, including any general, special, incidental or consequential damage arising out of the use or inability to use the contents of this repository.
And thank you from your fellow makers at Soldered Electronics.

