热敏电阻测量温度“分压后,用AD取值”是怎么回事?

2020-02-05 09:02发布

我想用热敏电阻做一个简易温度计,在坛子里找了好久,具体思路是有了,把热敏电阻的阻值转换成AD相对应的码,用查表法测量温度,但是实际操作起来就来麻烦了,它是用电阻值转换过来的,不明白热敏电阻要和AD如何连接呢?“分压后,用AD取值”是什么意思呢??
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
30条回答
baoxiuqiang520
2020-02-07 06:53
请问这两组数据对应的是什么啊?温度值??哪组是?还有一组呢??uint code ad_date[]={
        1060,1060,1060,1100,1120,1140,1166,1180,1200,1220,
        1240,1320,1340,1360,1380,1400,1420,1440,1460,1480,
        1500,1520,1540,1560,1580,1600,1620,1640,1660,1680,
        1700,1720,1740,1760,1780,1800,1820,1840,1840,1860,
        1880,1900,1920,1940,1960,1980,2000,2020,2040,2060,
        2080,2100,2120,2140,2160,2180,2200,2220,2240,2260,
        2280,2300,2320,2340,2360,2380,2400,2420,2440,2460,
        2480,2500,2520,2540,2560,2580,2600,2620,2640,2660,
        2680,2700,2720,2740,2760,2780,2800,2820,2840,2860,
        2880,2900,2920,2920,2940,2960,2980,3000,3020,3040,
        3060,3080,3100,3120,3140,3160,3180,3200,3220,3240,
        3260,3280,3300,3320,3340,3360,3380,3400,3420,3440,
        3460,3480,3500,3520,3540,3560,3580,3600,3620,3640,
        3660,3680};
uint code temperiture[]={
        594,593,586,580,579,560,564,559,552,545,
        541,518,513,508,503,497,491,488,483,480,
        473,468,463,458,455,451,447,440,434,433,
        430,425,420,416,413,409,404,401,401,396,
        390,386,382,378,374,372,368,364,361,357,
        354,351,347,343,340,336,333,328,326,322,
        319,316,313,309,307,303,300,296,294,289,
        286,283,280,276,274,271,267,264,260,257,
        253,249,246,243,240,237,233,231,228,224,
        222,219,214,216,211,209,206,202,198,194,
        187,184,181,178,175,171,168,164,161,158,
        154,152,148,146,142,139,136,133,130,126,
        124,121,116,114,112,108,102,98,96,94,89,86};
uchar code table[]="  T:00.0`C";
uchar num=0;
uchar keynum,max=40,min=0;
uchar code Temp_max[]="  Max:40`C",Temp_min[]="  Min:00`C";

一周热门 更多>