打印

单片机自带温度采集

[复制链接]
1865|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
沙发
huangxz| | 2013-5-17 14:36 | 只看该作者
这么严重么,参考手册上面有没有写准确度啊

使用特权

评论回复
板凳
e08610318|  楼主 | 2013-5-17 15:27 | 只看该作者
huangxz 发表于 2013-5-17 14:36
这么严重么,参考手册上面有没有写准确度啊

上两个图吧,斜率误差在3%,说明书说可能要校准吧

Tousethe on-chiptemperature sensor,the userselectsthe analoginput channelINCHx =1010.Any
otherconfigurationis doneasif anexternalchannelwasselected,including referenceselection,
conversion-memoryselection,etc.
Thetypical temperature sensortransfer function is shownin Figure23-10. Whenusingthe temperature sensor,the sampleperiodmustbegreaterthan 30µs.The temperature sensor offset error can be large,and may need to be calibrated for most applications.See device-specific datasheet for parameters.
Selectingthe temperature sensorautomaticallyturns onthe on-chipreferencegeneratorasavoltage
sourcefor the temperature sensor.However,it doesnotenablethe V
REF+
outputoraffectthe reference
selectionsfor the conversion.Thereferencechoicesfor convertingthe temperature sensorarethe same
aswithanyotherchannel.

我用的是1.5v参考电压,分辨率4095  1号设备AD值 2911 <-> 1066mv <-> 22.5度
                                                           2号设备AD值2960 <->  1084mv <-> 27.6度

采样保持8个时钟,时间为 8/32768s  连续采40次,去掉第一次和最后一次值,再求平均

2.png (16.9 KB )

2.png

1.png (27.35 KB )

1.png

使用特权

评论回复
地板
yl581101| | 2013-5-17 15:51 | 只看该作者
是不是应该去掉最大和最小值啊

使用特权

评论回复
5
e08610318|  楼主 | 2013-5-17 18:50 | 只看该作者
有没有前辈用单片机来采温度的呢?效果怎么样呢?
刚才试了下,我用当前温度和采到的AD值自动计算出斜率,然后放到高低温箱测了下,效果挺理想的,稳定温度和高低温箱显示的温度误差在1度以内

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:你可能不知道今天所做的事情会对未来有多大的干预能力!

67

主题

310

帖子

12

粉丝