ESP32_FFT_VU icon indicating copy to clipboard operation
ESP32_FFT_VU copied to clipboard

analog read time 10 times slower

Open silderan opened this issue 1 year ago • 6 comments

Hello.

I'm trying to make an audio spectrum analizer displayed on LCD. Using 1024 samples seems better for more than 10 bars, but fps goes down dramatically. Reading your code, says each analog reading takes 9,8uS, but my tests says it's arround 84uS. 84uS * 1024 aprox. 100mS. It's 10 readings per second.

Looking your video and another one that uses your code, LEDs seems displaying fine, with good FPS.

Is there some change in new ESP32 versions?

silderan avatar Feb 09 '24 17:02 silderan

HI there i'm having the same issue! any luck yet?

whatever2010 avatar Feb 20 '24 19:02 whatever2010

Well, not by solving this issue. I went other way using I2S-DMA-ADC reading. Take a look to my repository. I'm about to upload an API/modular version easier to use.

But, anyway, I'm curious to know why this issue. In some days, I will have ESP32 boards from another vendor. I'll tell something.

silderan avatar Feb 21 '24 21:02 silderan

Sure mate! Thanks 👍

whatever2010 avatar Feb 22 '24 00:02 whatever2010

Hi all, apolgies for not responding here quickly - I haven't looked at this in quite some time. Unfortunately I have no idea why my tests resulted in times so much different to other peoples. As @silderan said, there are better ways to do this so if I were to do this again I would have a look at his method instead. Sorry I cannot be of help!

s-marley avatar Feb 23 '24 12:02 s-marley

Hi, thanks for responding. I actually did try that method.

whatever2010 avatar Feb 23 '24 12:02 whatever2010

from my own testing i get these awful ADC conversion times from esp32 modules not manufactured by Espressif

Cowh3adDK avatar May 02 '24 11:05 Cowh3adDK