Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

air001 ADC抖动 #106

Closed
3 tasks done
xitonghan opened this issue Mar 25, 2024 · 4 comments
Closed
3 tasks done

air001 ADC抖动 #106

xitonghan opened this issue Mar 25, 2024 · 4 comments

Comments

@xitonghan
Copy link

描述一下这个bug / Describe the bug

我用他的ADC 接口, 但是抖动特别厉害
除了用数学平均法还有什么改善的办法?

void setup() {
Serial.begin(115200);
analogReadResolution(12);
}

void loop() {
Serial.printf("PA0 Voltage is %d mv \n", analogReadMillivolts(PA0));
Serial.printf("PA1 Voltage is %d mv \n", analogReadMillivolts(PA1));
Serial.printf("Chip temp is %d C \n", analogReadTempSensor());
Serial.printf("Vref is %d mv \n", analogReadVref());
delay(500);
}

复现步骤 / To Reproduce

获得ADC数据,传输到 串口,或者液晶屏
VREF temp IO 电压 都是一样的抖

如果正常,应该是什么样 / Expected behavior

我用的 单片机例如ESP8266 uno 没有如此刺激的抖动!

截图 / Screenshots

Uploading 微信图片_20240325193841.png…

日志 / Logs

看上图吧

系统 / System

Arduino AirMCU

PACK包版本 / Version

1.01

验证

  • 检查过该问题,之前没有人提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.
  • 已经提供了完整的报错信息、日志、截图,没有经过删减。
@LuaRobot
Copy link

⚠ 你的Issue可能缺少了一些信息,请自觉补全,以证明issue内容的真实性:

⚠ Your issue may be missing some information, please complete it to prove the authenticity of the content of the issue:

  • ❌未提供出错时需要的日志文件 does not provide logs when bug happening

@xitonghan
Copy link
Author

微信图片_20240325193841
补充日志图片

@chenxuuu
Copy link
Contributor

没什么改善方法,精度就是不高

@Hello-2877515114
Copy link

我这个问题,固件刚下载然后复位,ADC非常的准,掉电之后就不行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants