How should I read ADC values at high frequency in ESP32?

Hayden
Posts: 16
Joined: Thu Jul 01, 2021 8:10 am

How should I read ADC values at high frequency in ESP32?

Postby Hayden » Tue Aug 10, 2021 5:45 am

The analogRead() function has a delay of 100 microseconds, which means that it cannot be called more than 10,000 times per second, and given the actual delay, the number will only be less.
So if I need to read analog at a higher frequency (for example, 20,000 times per second), what should I use?
I found a post online that mentioned that the delay of this function can be reduced by modifying the value of Prescaler, but ADCSRA cannot be found in ESP32.


Who is online

Users browsing this forum: Google [Bot] and 127 guests