Build your own DIY digital multi-effect pedal with the following features

  • Guitar Tuner
  • Noise Gate
  • Compressor
  • Distortion
  • Tremolo
  • Delay and Reverb
Learn more HERE!

ESP32-A1S Guitar Multi-Effect Engine with Microphone and MIDI I/O

Since the release of ESP32 by Espressif, many application-specific modules based on this chip are produced. For example, Ai-Thinker produce image processing module with artificial intelligence support for image recognition. In the audio processing area, one interesting product by Ai-Thinker is the ESP32-A1S module. Because of the integrated AC101 codec inside, this module enable very compact and low cost solution for audio DSP. The most interesting features of ESP32 is its dual core 32-bit CPU with Wifi and Bluetooth connectivity. Since the Wifi connectivity enable OTA (over-the-air) firmware upgrade, releasing any products will be faster because any bug can be fixed later without any product-recall. Now take a look at our tentative circuit’s schematic design shown in the Figure 1.

Figure 1. Tentative ESP32 Guitar Multi-Effect Engine Circuit’s Schematic Diagram

Hardware Features of The Multi-Effect Engine

The schematic diagram is not perfect yet, as you can see there’s no reset circuitry for the EN pin, and some resistors doesn’t show any values. Before going into the detail explanations, let’s see the features of this multi-effect engine design first:

  • Guitar or line/input, support for single-ended and balanced modes.
  • Microphone input, support for single-ended and balanced modes, and with configurable bias current.
  • Stereo outputs, support for single-ended and balanced modes.
  • OLED display module support.
  • Up-to 6 control knobs or mode selectors
  • Analog expression pedal support (alternative function with one of the control knobs)
  • 2 indicator LEDs.
  • Rotary encoder with push button.
  • MIDI input and output.
  • WiFi (for OTA update)
  • Bluetooth (for pedal extension mobile app)

ESP32 CPU Power and Its Comparison with STM32F103 in Deepstomp Multi-Effect Platform

Before exploring on what kind of multi-effect pedals we can implement with this design concept, first we will talk about on the processing power of the CPU. ESP32 has dual core Xtensa 32-bit LX6 RISC microprocessor as the CPU. Furthermore, the processor is capable of running up to 240 MHz (up-to 600 MIPS) [see reference 1]. To grab an idea on how fast it can be, let’s compare it with STM32F103C8 microcontroller used in our developed multi-effect platform: Deepstomp. Looking at the CPU clock, ESP32 runs up to 240 MHz and while STM32F103C8 runs up to 72 MHz [see reference 2], that means one ESP32 core is more than 3 faster. By looking at the number of core, then we can assume that ESP32 is more that 6 time faster. While it’s not a really accurate comparison since both CPU are RISC (reduced instruction set computer) and they has different design, but we can still use it as coarse approximation.

To have more insight of what can be done with such processing speed, now let’s see what can we do in Deepstomp platform for the comparison. In the first case, Deepstomp can run the audio processing for noise gate, compressor, distortion, and delay at the same time. In the second case, it can also run the combination of noise gate, compressor, and spring reverb (based on 5 multi-tap delay model). Those cases are some multi-effect combination that works within its processing power budget. From the first example cases, it would get a CPU overload condition when we change the delay into the spring reverb. In the same way, it would produce CPU overload as well when we add a distortion in the second case combination.

After looking at STM32F103C8 capabilities in handling the effect processing, now we can see that one core of the ESP32 is likely capable of handling almost any combination of standard multi-effect processing. Just keep in mind that one core of the ESP32 is about 3 time faster than the STM32F103C8. By dedicating one core for the audio processing, consequently we can easily manage the second core of the ESP32 for handling the OLED display, Bluetooth, and the MIDI input/output.

Possible Effect Types Implementation

With the hardware features and the processing power of the CPU as described before, we can expect many types of guitar effect types can be implemented using this multi-effect engine.

  1. Standard Multi Effect. Noise gate, compressor, distortion, tremolo, vibrato, chorus, phaser, flanger, wah, auto-wah, delay, and reverb. With its processing power, we believe that almost all common combination of those effect types can be run on ESP32. Please note that some effect types combination would practically never be applied, such as phaser and flanger, or some other combination whichis ineffective or contra-productive.
  2. Voice Effects. With microphone input, it is possible to implement many type of vocal effect such as band-limited filters, vocal-tuned reverb, auto-tune, anti-feedback, distortion, etc. With combination of distortion and band-limited filter, we can implement many type of device simulator such as telephone line, megaphone, or intercom for example.
  3. Vocoder. With both guitar and microphone input, we can simulate an analog channel vocoder or even digital phase vocoder which uses the power of FFT (Fast Fourier Transform) computation.
  4. Pitch Shifter and Vocal-Guitar Harmonizer. The possibility of polyphonic pitch shifter implementation would be very interesting since we can implement some cool effect like whammy pedal, or even a vocal-guitar harmonizer. A vocal-guitar harmonizer would need a chord analysis processing, and the FFT performance benchmark of ESP32 [see reference 3] shows such application is possible to explore.
  5. Guitar Synthesizer. We are pretty sure that monophonic synthesizer can be easily implemented using this engine, but the possibility of polyphonic synth is also very challenging to explore. To produce polyphonic synthesizer, a polyphonic pitch detection analysis should be done by the pedal. If we can implement this analysis, then the synthesis process can be proceed. If the polyphonic pitch detection can be done on the engine but the synthesis overloads the CPU, then we can possibly just convert the analysis result into the MIDI commands to generate the sound by external synthesizer.

WiFi, Bluetooth, and MIDI for Maximum Design Flexibility

Next, let’s make some list on how the features of WiFi, Bluetooth, and MIDI enable the engine to provide many flexibility for many things.

  1. WiFi connectivity enable the engine to provide over-the-air (OTA) firmware upgrade. As a result, we can expect many new pedals based on this design would quickly released. Just remember that the biggest obstacle of releasing new product is the possible software-bug, and any product recall would sound ridiculous on pedal product. With OTA upgrade, we need not to worry about such disaster.
  2. Bluetooth connectivity makes it possible to provide a cheap pedal or quick button extension on mobile application, so the pedal itself can be implemented as small stompbox for the most convenient mobility. Off-course we can still provide foot switch and expression pedal extension through MIDI input while providing cheaper mobile app extension alternative via Bluetooth.
  3. MIDI Input can be used to provide interface to external controller for quick preset button or MIDI expression pedal through MIDI input.
  4. Other possible MIDI I/O usage, is for implementing many knobs, indicator LEDs, buttons, foot switches, and expression pedal as an integrated standard multi-effect pedal. In order to do this, the MIDI I/O can be extended to provide all the required interface using the system-exclusive message of the MIDI protocol. It can be bridged and buffered internally using a dedicated micro controller, then pass the non-system-exclusive MIDI messages to external MIDI I/O ports.
  5. The MIDI output can also be used to send MIDI commands if the engine is used to implement a guitar-to-midi converter. If a polyphonic pitch detection can be implemented by the engine, then sending a polyphonic MIDI command should be easily implemented. Otherwise, monophonic pitch analysis should be easily implemented to produce a monophonic MIDI command on the MIDI output.

That’s all what we have in mind fro the moment, any discussion about this multi-effect engine design is welcome. Please share your thought in the comment section below.


  1. STM32F103x8 STM32F103xB Datasheet
  2. ESP32 Series Datasheet
  3. FFT on ESP32