Tyronaut

a beginners exploration of the world

Guitar pedal / ESP32 ADC trigger test

After getting the signal biased and connected to the ESP32’s ADC, I wrote some very basic voltage follower code to trigger on note start/stop. It seems to work pretty well actually.

https://youtu.be/Ez-GEHq9HJg?si=QAwr4GJGPvrKP7Yy

For this first go around, I’m polling the ADC directly (termed ADC-RTC by ESP32); 200 samples spread out over 20ms (i.e. 50 hz) in order to get at least one full period and thereby guaranteeing at least one peak voltage measurement.

In the future, I’ll probably use the continuous sampling mode (termed ADC-DMA by ESP32). It is a bit more involved.