esp32c3 adc ADC1_CHANNEL_1采集问题

wolink
Posts: 1
Joined: Thu Sep 30, 2021 12:08 am

esp32c3 adc ADC1_CHANNEL_1采集问题

Postby wolink » Mon Nov 15, 2021 3:58 am

我测试了一下ADC1_CHANNEL_0和ADC1_CHANNEL_1的两个通道,发现这两个采集到的信息有比较大的差异,ADC1_CHANNEL_0比较准确,ADC1_CHANNEL_1的采集数据跳跃比较严重,不知道是不是有一些复用的原因?例子是采用/examples/peripherals/adc/esp32c3/adc目录下面的测试例子

I (10:38:13.054) device: ch:0, val:10
W (10:38:13.054) device: ch:1, val:1608
I (10:38:13.055) device: ch:0, val:8
W (10:38:13.056) device: ch:1, val:4095
I (10:38:13.061) device: ch:0, val:18
W (10:38:13.065) device: ch:1, val:4095
I (10:38:13.070) device: ch:0, val:8
W (10:38:13.074) device: ch:1, val:4095
I (10:38:13.078) device: ch:0, val:8
W (10:38:13.083) device: ch:1, val:494
I (10:38:13.087) device: ch:0, val:17
W (10:38:13.091) device: ch:1, val:474
I (10:38:13.096) device: ch:0, val:8
W (10:38:13.100) device: ch:1, val:1546
I (10:38:13.105) device: ch:0, val:18
W (10:38:13.109) device: ch:1, val:4095
I (10:38:13.113) device: ch:0, val:9
W (10:38:13.118) device: ch:1, val:4095
I (10:38:13.122) device: ch:0, val:9
W (10:38:13.126) device: ch:1, val:4095
I (10:38:13.131) device: ch:0, val:8
W (10:38:13.135) device: ch:1, val:942
I (10:38:13.140) device: ch:0, val:7
W (10:38:13.144) device: ch:1, val:333
I (10:38:13.148) device: ch:0, val:8
W (10:38:13.153) device: ch:1, val:1464
I (10:38:13.157) device: ch:0, val:16
W (10:38:13.161) device: ch:1, val:2856
I (10:38:13.166) device: ch:0, val:8
W (10:38:13.170) device: ch:1, val:4095
I (10:38:13.175) device: ch:0, val:9
W (10:38:13.179) device: ch:1, val:4073

ESP_Jiajia
Posts: 13
Joined: Tue Jun 08, 2021 7:03 am

Re: esp32c3 adc ADC1_CHANNEL_1采集问题

Postby ESP_Jiajia » Fri Nov 19, 2021 3:13 am

ADC1_CHANNEL_0 和 ADC1_CHANNEL_1 本身都是浮空状态, 这个状态是一个不确定的状态, 建议您可以在做测试时,测量下内部上下拉的状态。

Who is online

Users browsing this forum: No registered users and 46 guests