Unable to achieve 10k samples using ADC continuous mode example code for ESP32.

om_sal
Posts: 1
Joined: Mon Jun 03, 2024 11:41 am

Unable to achieve 10k samples using ADC continuous mode example code for ESP32.

Postby om_sal » Tue Jun 04, 2024 7:59 am

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.

FrankJensen
Posts: 52
Joined: Sun Mar 10, 2024 9:34 pm

Re: Unable to achieve 10k samples using ADC continuous mode example code for ESP32.

Postby FrankJensen » Wed Jun 05, 2024 8:47 pm

I run 40K samples without any problems. Are your buffers big enough?

mnentwig
Posts: 4
Joined: Tue Jun 04, 2024 8:10 am

Re: Unable to achieve 10k samples using ADC continuous mode example code for ESP32.

Postby mnentwig » Wed Jun 05, 2024 8:57 pm

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

Who is online

Users browsing this forum: Bing [Bot] and 403 guests