Hi;
I have asked similar question couple of days ago but I have no response.
The question: ( I have already bought several of your books, among them is the ESP32 and Micropython ,..etc) I am looking for a simplified way to set the ADC sampling rate using Arduino IDE. It was not addressed in your books. Either using the timer/Interrupt combination or any other approach. I also noticed that even the timer configuration was not thoroughly addressed in your books.
Thanks
Abdulmagid Omar
Hi Abdulmagid.
I’m sorry for taking so long to get back to you.
I’m not very familiar with advanced functions of ADC on ESP32.
However, I found this discussion about setting the sample rate of ADC on ESP32: https://www.esp32.com/viewtopic.php?t=6415
It seems that they found somehow how to do it. They also said that this tutorial help them doing that: https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/
You can also find other advanced functions related with ADC on ESP32 with Arduino IDE here: https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-adc.h
I hope this helps.
And once again, I’m sorry for taking so long to answer.
Thank you for supporting our work.
Regards,
Sara
Thanks Sara very much for your response. Yesterday I found this link:
https://techtutorialsx.com/2017/10/07/esp32-arduino-timer-interrupts/ which helped me setup the sampling rate using the timer and Interrupt. (This is the same linkas the second link in your list.
Thanks again
Abdulmagid