- 1、本文档共41页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于AT8951的数字温度计设计与仿真
基于AT89C51的数字温度计设计与仿真
邓联巍
(吉首大学张家界学院,湖南 张家界 427000)
摘 要
随着科学技术的不断发展,温度的检测、控制应用于许多行业,数字温度计就是其中一例,它的反应速度快、操作简单,对环境要求不高,因此得到广泛的应用。
传统的温度测量大多使用热敏电阻,但热敏电阻的可靠性差,测量温度准确率低,而且必须经过专门的接口电路将模拟信号转换成数字信号才能由单片机进行处理。本课题采用单片机作为主控芯片,利用DS18B20来实现测温,用LCD液晶显示器来实现温度显示。
温度测量范围为0~,可以手动设置温度上下报警值,当温度超出所设报警值将发出报警鸣叫声,并显示温度值,该温度计适用于人的日常生活和工、农业生产领域igital Thermometers Design and Simulation Based on AT89C51
Deng Lian Wei
(Zhangjiajie College of Jishou University,Zhangjiajie,Hunan 427000)
Abstract
With the continuous development of science and technology, the temperature detection and control used in many industries, the digital thermometer is a case in which the reaction speed, simple operation, less demanding on the environment, it is widely used.
Most of the traditional use of thermistor temperature measurement, but poor reliability of thermistors to measure temperature, low accuracy, and must go through a special interface circuit converts the analog signal to digital signal processing by the microcontroller. The subject of using SCM as the main chip, the use of DS18B20 to achieve temperature, with the LCD liquid crystal display to achieve the temperature display.
Temperature measurement range is 0 ~ 119 ℃, accuracy of 0.1 ℃. You can manually set the alarm value upper and lower temperature, when the temperature exceeds the set alarm when the alarm calls, and display temperature, the thermometer for peoples daily lives and industrial and agricultural production areas.
Keywords: Digital Thermometer; DS18B20; AT89C51; LCD1602
目 录
第一章 绪 论 1
1.1 前言 1
1.2 课题的目的及意义 1
1.3 该论文研究的内容 1
第二章 设计方案 2
2.1 方案1:使用电阻元件 2
2.2 方案2:使用温度传感器 2
2.3 方案2的总体设计框图 2
2.3.1 温度传感器 2
2.3.2 1602LCD显示模块 6
第三章 硬件电路设计 10
3.1 电路原理图 10
3.2 LCD1602显示器与单片机的接口电路 10
3.2.1 查看温度报警值 11
3.2.2 报警状态显示 11
3.3 DS18B20温度传感器与单片机的接口电路 11
3.3.1 检测DS18B20状态 12
3.4 按键与单片机的接口电路 12
3.4.1 设定温度报警值 13
第四章 软件设计 14
4.1 读出温度子程序 15
4.2 温度转换子程序 15
4.3 计算温度子程序 16
4.4 显示数据刷新子程序 16
4.5 电路仿真 17
4.6 结果分析 20
总 结 21
参考文献 22
附 件 23
第一章 绪 论
1.1 前言
随着人们生活
文档评论(0)