Faster ADC Reading

srini1948
Posts: 5
Joined: Fri Feb 15, 2019 10:44 pm

Re: Faster ADC Reading

Postby srini1948 » Wed Mar 13, 2019 6:40 pm

I was wondering if you have used the "use_apll" feature to get a more accurate sampling clock as suggested in the IDF instructions. This is for the i2S configuration. When I set this to "true" the APLL clock message does show that the requested rate and real rate are virtually identical. However the data captured seems to be at 16 times the set rate. For example, setting the sampling rate to 32000 I captured 512 samples of a 1 kHz sine wave. This should have 16 cycles when plotted. Instead I get just one period - and that too with a lot of jitter!


Thanks.

hernandezpepe
Posts: 1
Joined: Thu Mar 04, 2021 4:42 am

Re: Faster ADC Reading

Postby hernandezpepe » Thu Mar 04, 2021 5:12 am

I tried to run the attached file in platformio and I couldn't because the dig_i2s_adc library is missing, I saw that a .h and a .c file is included I tried to add them to the lib folder of my platformio project and I couldn't. any suggestion?

Samit Hasan
Posts: 3
Joined: Fri Jun 04, 2021 4:47 am

Re: Faster ADC Reading

Postby Samit Hasan » Wed Jun 09, 2021 9:32 am

cannot convert 'adc1_channel_t' to 'adc_channel_t' in initialization
this error is showing while running the code

Who is online

Users browsing this forum: MicroController and 96 guests