ESP32ADC测量电压换算
为解决使⽤MicroPython ESP32 ADC采集10K B3950 NTC电阻值获取对应温度
元宵节来历
查看ESP32 ADC API官⽅⽂档:
中国的由来简介我所关⼼的ADC值如何换算成电压:
加拿大打工上图是我关⼼的,但是我并不知道我的芯⽚是否有校准功能,其实根据上图所给的公式y = coeff_a * x + coeff_b我们可以利⽤万⽤表⼤致推算出coeff_a、coeff_b。简单选取两点GND(0mV)、VCC(3290mV)实测ADC值分别为142、3145。带⼊公式可求得
coeff_a=0.913、coeff_b=142。最后由y = 0.913 * x + 142得电压(mV) x = (y-142)/0.913。选⽤更⾼精度的万⽤表多点测量更准确。
电饭锅蒸馒头补充注意:
一个人的网名11 dB attenuation (ADC_ATTEN_DB_11) gives full-scale voltage 3.9 V (e note below)
Note
The full-scale voltage is the voltage corresponding to a maximum reading (depending on ADC1 configured bit width, this value in ESP32 is: 4095 for 12-bits, 2047 for 11-bits, 1023 for 10-bits, 511 for 9 bits.藉字组词语
this value in ESP32S2 is: 8191 for 13-bits.)
Note
电气自动化实习报告At 11 dB attenuation the maximum voltage is limited by VDD_A, not the full scale voltage.
做你的爱人简谱