Hi,
我在手册里找不到ADC采样率的相关信息,在论坛里有看见帖子说是6K Hz ,这个6KHz 是12Bit采样时最大采样率吗?各Bit采样时,最大采样率是多少呢?
关于ADC采样率
Re: 关于ADC采样率
Google translation of original post from Chinese:
. . . . . (where 'v' is a uint16_t array indexed by 'z'), it takes 9.5µs.
If I use the ESP-IDF instruction with default 12 bit resolution. . . . . .
. . . . . it takes 36.5µs.
I hope someone can explain the reason for that!
ESP_Sprite has written (link):
Usng the Arduino instruction 'analogRead', I am sampling a 40kHz sqaure wave at a sample rate of just over 100kHz and seem to be getting good digital values. I therefore question whether 6kHz is correct.
Note ESP32 ADCs are badly affected by noise.
I am using the Arduino IDF. If I use the Arduino instruction . . . . . .I can not find the ADC sampling rate in the manual information, in the forum to see the post said to be 6K Hz, this 6KHz is 12Bit sampling the maximum sample rate? What is the maximum sample rate for each bit sample?
Code: Select all
v[z] = analogRead(34);
If I use the ESP-IDF instruction with default 12 bit resolution. . . . . .
Code: Select all
v[z] = adc1_get_raw(ADC1_CHANNEL_6);
I hope someone can explain the reason for that!
ESP_Sprite has written (link):
I take 6kHz to mean the analogue bandwidth, not the sample rate.The bandwidth of the ADC just is more-or-less 6KHz if you want a linear frequency response.
Usng the Arduino instruction 'analogRead', I am sampling a 40kHz sqaure wave at a sample rate of just over 100kHz and seem to be getting good digital values. I therefore question whether 6kHz is correct.
Note ESP32 ADCs are badly affected by noise.
-
- Posts: 6
- Joined: Fri Jun 29, 2018 5:29 am
Re: 关于ADC采样率
Thanks for your timely help。Archibald wrote:Google translation of original post from Chinese:I am using the Arduino IDF. If I use the Arduino instruction . . . . . .I can not find the ADC sampling rate in the manual information, in the forum to see the post said to be 6K Hz, this 6KHz is 12Bit sampling the maximum sample rate? What is the maximum sample rate for each bit sample?. . . . . (where 'v' is a uint16_t array indexed by 'z'), it takes 9.5µs.Code: Select all
v[z] = analogRead(34);
If I use the ESP-IDF instruction with default 12 bit resolution. . . . . .. . . . . it takes 36.5µs.Code: Select all
v[z] = adc1_get_raw(ADC1_CHANNEL_6);
I hope someone can explain the reason for that!
ESP_Sprite has written (link):I take 6kHz to mean the analogue bandwidth, not the sample rate.The bandwidth of the ADC just is more-or-less 6KHz if you want a linear frequency response.
Usng the Arduino instruction 'analogRead', I am sampling a 40kHz sqaure wave at a sample rate of just over 100kHz and seem to be getting good digital values. I therefore question whether 6kHz is correct.
Note ESP32 ADCs are badly affected by noise.
Who is online
Users browsing this forum: No registered users and 192 guests