You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
日志 / 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.
描述一下这个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
日志 / Logs
看上图吧
系统 / System
Arduino AirMCU
PACK包版本 / Version
1.01
验证
The text was updated successfully, but these errors were encountered: