Hi, Is there any good example to read Analog A0 input signal using Timer at a specific sampling rate ?
I am trying to read the sound sensor analog output to determine a some specific tone sound frequency.
Unfortunately, I don’t know any example about that.
But I found this issue on the ESP32 forum: https://www.esp32.com/viewtopic.php?t=6415
They are discussing exactly what you want: setting a specific sampling rate on the analog pins.
More information abou the analogRead function: https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-adc.h
I hope this helps.