Hi, I am working on a project where I need to get 10kHz sample rate i.e. 10,000 sample in 1 second on ADC pin using DMA in ESP32. I have tried this using ADC in continuous mode example code. But I am getting only 120-150 approx. samples in 1 second.
I need some help to solve this problem and how to validate the samples.
Thankyou.
Unable to achieve 10k samples using ADC continuous mode example code for ESP32.
-
- Posts: 52
- Joined: Sun Mar 10, 2024 9:34 pm
Re: Unable to achieve 10k samples using ADC continuous mode example code for ESP32.
I run 40K samples without any problems. Are your buffers big enough?
Re: Unable to achieve 10k samples using ADC continuous mode example code for ESP32.
Hi,
you could have a look at this code sample, below. It doesn't actually use the buffer contents but that part is straightforward (use bits 11..0 of the returned 16 bit data)
https://github.com/mnentwig/ESP32_ADCrate_dbg
you could have a look at this code sample, below. It doesn't actually use the buffer contents but that part is straightforward (use bits 11..0 of the returned 16 bit data)
https://github.com/mnentwig/ESP32_ADCrate_dbg
Who is online
Users browsing this forum: No registered users and 319 guests