joulupukki
Member
We explored that direction (treating the incoming signal as a digital signal and interpreting the DC pulses in the microcontroller). In practice, we found that it actually performed much better when we still read it as an analog signal so we kept it. I spent a good number of days trying out different flavors of gain and landed on what's currently in the schematic. This being DIY, you could always use different values of resistors and experiment yourself if you felt something else would work better.That seems like a lot of gain. And there's the DC offset on a 5v single supply R2R opamp with a single clipper. Without asking you to reveal trade secrets, are you detecting the guitar signal as variable frequency DC, essentially? Kinda a half wave rectifier via the offset and clipping?
Interesting approach if so!
Edit: An additional challenge with treating it solely as a digital signal and counting frequency is that, with the limited number of GPIOs on this ESP32 dev board, there was no way to easily determine whether a string was being plucked or whether we were just picking up noise. We could have explored it more and added more hardware components to get that all sorted out, but ... the one analog input worked so well already.
Last edited: