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.
How should I read ADC values at high frequency in ESP32?
Who is online
Users browsing this forum: No registered users and 235 guests