数字温度计设计毕业设计论文
- 格式:doc
- 大小:549.00 KB
- 文档页数:30
毕业设计任务书毕业设计题目:数字温度计设计题目类型工程设计题目来源学生自选课题毕业设计时间从至毕业设计内容要求:测温范围-55ºC至150ºC,明亮显示。
能显示出测量温度值。
能够对超出最高温度进行报警.主要介绍了一个基于89S52单片机的测温系统,详细描述了利用数字温度传感器DS18B20开发测温系统的过程,重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部分的电路也一一进行了介绍,该系统用四位数码管可以方便的实现实现温度显示,并可根据需要任意设定上下限报警温度, DS18B20与AT89S52结合实现最简温度检测系统,该系统结构简单,抗干扰能力强,适合于恶劣环境下进行现场温度测量,有广泛的应用前景。
2.主要参考资料[1]刘修文主编.新编电子控制电路.北京:机械工业出版社,2006[2]黄贤武编著.传感器原理与应用.桂林:高等教育出版社,2007[3]刘瑄编著.单片机有效值转换器. 机械工业出版社,2008[4]刘军编著.单片机原理与接口技术.华东理工大学[5]沈德金陈粤初《单片机接口电路与应用程序实例》北京航天航空大学出版社目录第一章、引言 4第二章、系统方案论证与比较 52.1、方案一 (5)2.2、方案二 62.3、整机电路分析 (7)第三章、硬件设计电路 83.1、元器件选择 (8)3.1.1、单片机选择 (8)3.1.2、温度传感器选择 (8)3.2、温度检测电路 (10)3.3、温度报警电路 (11)第四章、软件设计 124.1、概述 (12)4.2、主程序模块 (12)4.3、各模块流程设计 (13)4.3.1、温度检测流程 (13)4.3.2、报警模块流程 (15)第五章、软硬件综合调试16第六章、总结和体会18第七章、致谢19第一章引言随着科技的不断发展,现代社会对各种信息参数的准确度和精确度的要求都有了几何级的增长,而如何准确而又迅速的获得这些参数就需要受制于现代信息基础的发展水平。
(毕业设计)数字温度计论文————————————————————————————————作者:————————————————————————————————日期:数字温度计的设计摘要温度是一种最基本的环境参数,人们生活与环境温度息息相关,在工业生产过程中需要实时测量温度,在工业生产中也离不开温度的测量,因此研究温度的测量方法和控制具有重要的意义。
本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。
主要包括硬件电路的设计和系统程序的设计。
硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机A T89C52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用8位共阴极LED数码管,ULN2803A为驱动的动态扫描直读显示。
测温控制电路由温度传感器和预置温度值比较报警电路组成,当实际测量温度值大于预置温度值时,发出报警信号,即发光二极管亮。
系统程序主要包括主程序,测温子程序和显示子程序等。
DS18B20新型单总线数字温度传感器是DALLAS 公司生产的单线数字温度传感器, 集温度测量和 A /D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。
DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。
此外,还介绍了系统的调试和性能分析。
关键词:显示电路,单片机,AT89C52,温度传感器,DS18B20 ,单总线The Design of DS18B20 Digit ThermometerABSTRACTTemperature is a basic parameters of the environment, people's lives and the environment are closely related to temperature. in the course of industrial production immediate need for temperature measurement in industrial production has to do with temperature measurement, The study of the temperature measurement and control is of great significance.The paper introduced one kind new digital thermometer that take the Micro Controller Unit as the primary control component and take DS18B20 as the temperature sensor. Mainly included the design of the hardware electric circuit and the design of the system program .The hardware electric circuit mainly included the master controller, the temperature measured electric circuit and the display circuit and so on, the master controller used Micro Controller Unit AT89C52, the temperature sensor used DS18B20 which the American DALLAS semiconductor company produces, the display circuit used 8 altogether anodes LED numerical code tube by the dynamic scanning method straight to read the demonstration.ULN2803A-driven dynamic scan showed straight time. Temperature control circuit from temperature sensors and preset temperature value compared alarm circuit components, When measured temperature greater than preset temperature value, issued warning signal that the bright light emitting diodes. The system program mainly included the master routine, the temperature subroutine, the data renovates subroutine and so on. DS18B20 is a digital temperature sensor of single bus .It is producted by DALLAS cooperation . DS18B20 assembles temperature measure and A /D converter, exports digital signal directly, operation easily, better precise, protecting disturb, running steably and so on.Because used the advanced version intelligence temperature sensor DS18B20 as the examine part, compared with the traditional thermometer,Ithis digital thermometer reduced the exterior hardware electric circuit, h as characteristic that the low cost and was easy to use. The DS18B20 th ermometer also may used to the high temperature warning, the long-distance range multi- spots temperature measured aspect and so on temperature co ntrol carries on the application development, has the very good prospects for development. In addition, introduced the system debugging and the p erformance analysis.KEY WORDS:Display Circuit, Microcontroller Unit , AT89C52,Temperature Sensor, DS18B20,1-Wire目录前言 0II第1章设计任务及方案分析 (1)§1.1 设计任务及要求 (1)§1.2 设计总体方案及方案论证 (1)§1.3 温度测量的方案与分析 (1)§1.3.1 芯片选择 (1)§1.3.2 实现方法简介 (2)§1.3.3 测温流程图 (2)第2章芯片功能简介 (2)§2.1 AT89C52的功能简介 (3)§2.1.1 AT89C52芯片简介 (3)§2.1.2 引脚功能说明 (3)§2.2 DS18B20的功能简介 (6)§2.2.1 芯片简介 (6)§2.2.2 DS18B20外形和内部结构 (7)§2.2.3 DS18B20的工作时序 (9)§2.2.4 DS18B20与单片机的典型接口设计 (11)§2.2.5 DS18B20的各个ROM命令 (11)第3章系统硬件电路的设计 (13)§3.1 主控制电路和测温控制电路原理图 (13)§3.2 驱动电路模块原理图 (14)§3.3 显示模块原理图 (15)第4章软件编程调试及性能分析 (16)§4.1 主程序流程图 (16)§4.2 主程序 (17)§4.3 温度子程序 (20)§4.3.1 DS18B20复位子程序 (20)§4.3.2 读DS18B20子程序 (22)§4.3.3 写DS18B20子程序 (23)§4.3.4 比较报警子程序 (25)§4.3.5 按键子程序 (25)III§4.4 显示子程序 (26)§4.5 调试性能分析和注意事项 (28)§4.5.1 调试性能分析 (28)§4.5.2 DS18B20使用中的注意事项 (28)结论 (29)参考文献 (30)致谢 (31)附录 (32)IV前言日常生活及工农业生产中经常要用到温度的检测及控制,在冶金、食品加工、化工等工业生产过程中,广泛使用的各种加热炉、热处理炉、反应炉等,都要求对温度进行严格控制。
数字温度计的设计摘要温度是一种最基本的环境参数,人们生活与环境温度息息相关,在工业生产过程中需要实时测量温度,在工业生产中也离不开温度的测量,因此研究温度的测量方法和控制具有重要的意义。
本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。
主要包括硬件电路的设计和系统程序的设计。
硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机AT89C52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用8位共阴极LED数码管,ULN2803A为驱动的动态扫描直读显示。
测温控制电路由温度传感器和预置温度值比较报警电路组成,当实际测量温度值大于预置温度值时,发出报警信号,即发光二极管亮。
系统程序主要包括主程序,测温子程序和显示子程序等。
DS18B20新型单总线数字温度传感器是DALLAS 公司生产的单线数字温度传感器, 集温度测量和 A D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。
DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。
此外,还介绍了系统的调试和性能分析。
关键词:显示电路,单片机,AT89C52,温度传感器,DS18B2 0 ,单总线The Design of DS18B20 Digit ThermometerABSTRACTTemperature is a basic parameters of the environment, people's lives and the environment are closely related to temperature. in the course of industrial production immediate need for temperature measurement in industrial production of the of the system program .The , the master controller used Micro Controller Unit AT89C52, the temperature sensor used DS18B20 which the American DALLAS semiconductor company produces, the display circuit used 8 altogetheranodes LED numerical code tube by the dynamic scanning method straight to read the demonstration.ULN2803A-driven dynamic scan showed straight time. Temperature control circuit from temperature sensors and preset temperature value compared alarm circuit components, When measured temperature greater than preset temperature value, issued warning signal that the bright light emitting diodes. The system program mainly included the master routine, the temperature subroutine, the data renovates subroutine and so on. DS18B20 is a digital temperature sensor of single bus .It is producted by DALLAS cooperation . DS18B20 assembles temperature measure and A D converter, exports digital signal directly, operation easily, better precise, protecting disturb, running steably and so on.Because used the advanced version intelligence tem perature sensor DS18B20 as the examine part, compared with the traditional thermometer, this digital thermometer reduced the exterior temperature control carries on the application development, addition, introduced the system debugging and the performance analysis.KEY WORDS: Display Circuit, Microcontroller Unit , AT 89C52,Temperature Sensor, DS18B20,1-Wire目录前言................................................................................................第1章设计任务及方案分析...........................................................§1.1 设计任务及要求................................................................§1.2 设计总体方案及方案论证................................................§1.3 温度测量的方案与分析....................................................§1.3.1 芯片选择...................................................................§1.3.2 实现方法简介...........................................................§1.3.3 测温流程图...............................................................第2章芯片功能简介 ......................................................................§2.1 AT89C52的功能简介........................................................§2.1.1 AT89C52芯片简介 ...................................................§2.1.2 引脚功能说明...........................................................§2.2 DS18B20的功能简介 ........................................................§2.2.1 芯片简介...................................................................§2.2.2 DS18B20外形和内部结构........................................§2.2.3 DS18B20的工作时序 (1)§2.2.4 DS18B20与单片机的典型接口设计 (1)§2.2.5 DS18B20的各个ROM命令 (1)第3章系统硬件电路的设计 (1)§3.1 主控制电路和测温控制电路原理图 (1)§3.2 驱动电路模块原理图 (1)§3.3 显示模块原理图 (1)第4章软件编程调试及性能分析 (1)§4.1 主程序流程图 (1)§4.2 主程序 (1)§4.3 温度子程序 (2)§4.3.1 DS18B20复位子程序 (2)§4.3.2 读DS18B20子程序 (2)§4.3.3 写DS18B20子程序 (2)§4.3.4 比较报警子程序 (2)§4.3.5 按键子程序 (2)§4.4 显示子程序 (2)§4.5 调试性能分析和注意事项 (2)§4.5.1 调试性能分析 (2)§4.5.2 DS18B20使用中的注意事项 (3)结论 (3)参考文献 (3)致谢 (3)附录 (3)前言日常生活及工农业生产中经常要用到温度的检测及控制,在冶金、食品加工、化工等工业生产过程中,广泛使用的各种加热炉、热处理炉、反应炉等,都要求对温度进行严格控制。
基于单片机的数字温度计的设计摘要温度作为一个重要的物理量,是工业生产过程中最普遍、最常用的测量及被控参数之一。
随着社会的发展、科学技术的不断更新,温度的测量范围要求不断扩大,同时温度的测量准确性要求不断提高。
它直接影响燃烧、化学反应、发酵、烘烤、蒸馏、浓度、挤压成形、结晶以及空气流动等物理和化学过程。
温度控制失误就可能引起生产安全、产品质量、产品产量等一系列问题, 因此对温度测量的意义就越来越大。
本文主要介绍了一个基于89S51单片机的测温系统,详细描述了利用数字温度传感器DS18B20开发测温系统的过程,重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽分析,对各部分的电路也一一进行了介绍,该系统可以方便的实现实现温度采集和显示,并可根据需要任意设定上下限报警温度,它使用起来相当方便,具有精度高、量程宽、灵敏度高、体积小、功耗低等优点,适合于我们日常生活和工、农业生产中的温度测量,也可以当作温度处理模块嵌入其它系统中,作为其他主系统的辅助扩展。
DS18B20与AT89S51结合实现最简温度检测系统,该系统结构简单,抗干扰能力强,适合于恶劣环境下进行现场温度测量,有广泛的应用前景。
本文主要包括两个方面的设计:一方面是硬件电路的设计,另一方面是系统程序的设计。
其中,硬件电路各部分组成如下:中央控制器采用单片机AT89S51,温度检测部分采用DS18B20温度传感器,用LCD液晶1602作为显示器。
其次,系统软件程序包括主程序,温度值读取、转换及计算程序,显示数据刷新程序等。
该温度计整体功能的实现是通过温度传感器DS18B20采集温度信号送该给单片机处理,单片机再把温度数据送液晶显示器1602显示。
关键词:单片机;温度传感器;DS18B20;LCD液晶显示器THE DESEGN OF THE ELECTRONIC THERMOMETERBASED ON MICROCONTROLLERAbstractTemperature as an important physics, is the most common industrial production process, the most commonly used one of measuring and controlled parameter. With the development of society, the science and technology unceasing renewal, temperature measurement range requirements, at the same time expanding temperature measurement accuracy requirement enhances unceasingly. It directly affects combustion, chemical reaction, fermentation, roasted, distillation, concentration, extrusion, crystallization and air flow etc physical and chemical processes. Temperature control error could cause a production safety, product quality, product yield and so on. So the significance of temperature measurement is more and more big.This paper describes the digital thermometer which is consisted of the central controller, temperature detectors, monitors and police components.The thermometer’s basic range is from -50 ℃ to 110 ℃,its accuracy error is less tha n 0.5 ℃ and LCD directly shows numerical temperature. When the measured temperature exceed the limit alarm doors, the system will output alarm signal.The paper includes tow aspects of the design: one is hardware circuit design, the other is the system process design. Among them, the hardware components are as following: the central controller SCM AT89S51,the temperature detection DS18B20 part of a temperature sensor,and LCD monitors, as LCD 1602 F; the system software programs, including the main program, the temperature reading, conversion and calculation procedures, the data show that refresh procedures and so on.Temperature Sensor DS18B20 acquisition of the temperature signal sent to SCM for processing, SCM then the temperature data sent 1602 F LCD display.Key words: temperature sensor;DS18B20;LCD liquid crystal display目录1 绪论 (4)1.1 设计背景及目的 (5)1.2 设计研究方法 (5)1.3 设计构成及内容 (7)2 数字温度计硬件电路的实现 (8)2.1 单片机的选取和介绍 (8)2.1.1 引脚描述 (8)2.1.2 特殊功能寄存器与存储结构 (10)2.1.3 编写方法 (11)2.2 复位电路及晶振电路设计 (12)2.2.1 复位电路 (12)2.2.2 晶振电路 (12)2.3 温度传感器设计 (12)2.3.1 DS18B20的外形及内部结构 (12)2.3.2 DS18B20工作原理 (15)2.3.3 DS18B20的外部电路图 (15)2.4 液晶显示电路设计 (16)2.4.1 1602的引脚功能介绍 (16)2.4.2 1602液晶模块内部的控制指令 (17)2.4.3 1602的外部电路图 (18)3 数字温度计软件设计流程 (18)3.1 主程序设计 (19)3.2 温度值读取程序设计 (20)3.3 计算温度程序设计 (21)3.4 显示数据及刷新程序设计 (21)4 仿真调试 (22)5 结论 (25)致谢 (26)参考文献 (27)附录 (29)附录A 原理图 (29)附录B 源程序 (29)附件附件1 开题报告(文献综述)附件2 译文及原文影印件1 绪论1.1 设计背景及目的传统的温度计有反应速度慢、读数麻烦、测量精度不高、误差大等缺点,本文介绍了一种基于 DS18B20 的数字温度计设计方案。
摘要单片机在日用电子产品中的应用越来越广泛,温度则是人们日常生活中常常需要测量和控制的一个量。
科学技术的发展和检测技术的发展是密切相关的。
现代化的检测手段能达到的精度、灵敏度及测量范围等,在很大程度上决定了科学技术的发展水平。
本文作者采用AT89C2051单片机和温度传感器DS18B20从硬件和软件两方面介绍了一款简易数字温度计的设计过程,并对硬件原理图和程序流程图作了简洁的描述。
数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采用数字显示,主要用于对测温比较准确的场所。
关键词:单片机AT89C2051;温度传感器DS18B20;74LS48七段数码译码器AbstractSingle-chip electronic products in the daily application ofmore and more widely, the temperature is often the need for dailylife in a measure and control the volume. Development of scienceand technology development and testing are closely related.Modern methods to achieve the accuracy, sensitivity and measurement range, to a large extent determine the level of development of science and technology. The author of this articleusing AT89C2051 MCU and temperature sensor DS18B20 from bothhardware and software, introduced a simple digital thermometerof the design process, and schematic diagram of hardware and procedures were concise description of flow chart. Digital thermometer with a traditional thermometer, compared with areading of convenience, a wide range of temperature measurement, temperature measurement accuracy, the output of the temperature digital display, mainly used for more accurate temperature measurement sites.Key words:single-chip AT89C2051; temperature sensor DS18B20;Digital Seven Segment Decoder 74LS48第一章绪论随着单片机技术的不断发展,单片机在日用电子产品中的应用越来越广泛,广泛应用于冰箱、空调器、粮仓等日常生活中温度的测量和控制。
数字测温计设计摘要:随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各个领域,已经成为一种比较成熟的技术。
在工业生产中温度是常用的被控参数,而采用单片机来对这些被控参数进行控制已成为当今的主流。
本文介绍了基于AT89S51单片机的测温系统,描述了利用DS18B20开发测温系统的过程,对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详实的分析,对各部分的电路也逐一进行了介绍,该系统灵活的实现了温度采集和显示,且可设定上下限报警温度,使用起来十分方便,适合于我们日常生活和生产中的温度测量,该系统结构相对简单,抗干扰能力较强,适合于不同环境下温度测量,有着广阔的应用前景。
关键词:AT89S51单片机DS18B20 温度测量Abstract:With the progress and development of era,microcontroller technology has become popular in our life,in the work,the scientific research and various fields,has become a relatively mature technology.The temperature measurement method and device of the highlights is very important.Posed by the single chip temperature sensor and temperature measurement system can be widely applied in many fields.目录第1章绪论 (1)1.2 选题的目的和意义 (1)1.2.1选题的目的 (1)1.2.2选题的意义 (1)第2章数字温度计的设计方案 (4)2.1 设计方案的确立及论证 (4)2.1.1 温度传感器DS18B20的选择 (4)2.1.2 显示器的选择 (5)2.1.3 单片机STC89C52的选择 (5)第3章系统硬件电路的设计 (4)3.1 主控制器 (4)3.1.1 AT89S51的介绍 (4)3.1.2 DS18B20的介绍 (9)3.1.3 DS18B20使用的注意事项 ......................................... 错误!未定义书签。
毕业论文数字温度计摘要日常生活中,实时地掌握温度和时间信息对于人们来说必不可少。
本设计是基于单片机的多功能温度计,实现时间显示和温度显示两种功能。
整个硬件系统采用AT89S52单片机作为主芯片,协调整机工作并进行数据处理。
温度测量模块以DS18B20数字温度传感器作为核心,单线接口即可实现与处理器的双向通讯;时钟模块则采用实时时钟电路DS1302,提供秒、分、时、日期的信息;1602字符液晶提供的32个字符的显示容量足以显示时间和温度;电源方面,直接使用USB接口供电;由四个按键组成的键盘电路用以设置日期时间。
本设计采用Proteus作为仿真软件,根据硬件设计思想,将系统所需要的元件在ISIS中连接好后,在AT89S52单片机中加载编译好的hex文件,即可进行仿真。
仿真运行正常后,进入实物制作阶段,最终实物实现了设想功能。
关键字:AT89S52;DS18B20;DS1302;1602字符液晶;ProteusAbstractIt's necessary to get the information about the real-time and temperature in our daily life。
This design is expect to display the real-time and temperature by a multifunctional thermometer which is based on one type of singlechip .The hardware system uses AT89S52 Micro-chip Controller Unit as a core to coordinate the whole system's work and process the datas.In the temperature measure module ,temperature sensor DS18B20 is a good choice since it can achieve a two-way communication with the singlechip by only one interface.The real-time module is based on the real-timer DS1302 which can provide the the information about the present year,date andtime.As a monitor,Character Mode LCD(Liquid Crystal Display)1602 has a big enough display capacity of 32 characters to show the real-time and temperature information.A USB(Universe Serial Bus) interface was used to take charge of power supply.This design uses Proteus as the simulation software, Connect the required components according to the hardware system design in the ISIS ,and load the compiled hex files to the AT89S52 microcontroller.Thencan run into the physical production stage, the ultimateachievementcan realise expected function.Keywords: AT89S52; DS18B20; DS1302; Character Mode LCD 1602;Proteus目录摘要 (I)Abstract ......................................................... II 1前言. (1)1.1 选题背景 (1)1.2 选题意义 (2)2 多功能温度计的硬件设计 (3)2.1 系统分析 (3)2.1.1 处理器分析 (3)2.1.2 时钟模块分析 (3)2.1.3 温度测量模块分析 (4)2.1.4 显示模块分析 (4)2.2 硬件系统总体方案设计 (4)2.2.1 硬件系统总体结构 (4)2.2.2 硬件系统原理图 (5)2.3 各部分硬件电路设计 (5)2.3.1 AT89S52单片机最小系统 (5)2.3.2 DS18B20温度传感器电路 (9)2.3.3 DS1302实时时钟电路 (13)2.3.4 多功能温度计显示终端—字符型LCD液晶 (18)2.3.5 键盘输入电路 (20)3 多功能温度计的软件设计 (21)3.1 系统主程序流程图 (21)3.2 时钟模块程序流程图 (22)3.3 温度模块程序流程图 (23)3.4 显示模块程序流程图 (23)3.5 键盘输入程序流程图 (24)4 系统仿真及实物制作 (26)4.1仿真软件介绍 (26)4.2 仿真结果 (27)4.3 实物制作 (27)5 总结与展望 (29)5.1 总结 (29)5.2 展望 (29)致谢 (30)参考文献 (31)附录多功能温度计部分程序清单 (32)1前言1.1选题背景单片机具有体积小、功能强、可靠性高、价格低廉等一系列优点,不但已成为工业测控领域广泛采用的智能化控制工具,而且已渗入到人们工作和和生活的各个方面,有力地推动了各行业的技术改造和产品的更新换代,应用前景广阔。
摘要温度的检测与控制是工业生产过程中比较典型的应用。
本设计以AT89C52 单片机为核心,采用DS18B20温度传感器检测温度,由温度采集、温度显示,温度报警等功能模块组成。
基于题口基木要求,本系统对温度采集和温度显示系统行了重点设计。
木系统大部分功能能由软件实现,吸收了硬件软件化的思想。
实际操作时,各功能在开发板上也能完美实现。
本系统实现了要求的基本功能,其余发挥部分也能实现。
关键字:AT89C52单片机、DS18B20温度传感器、数码管显示、温度采集目录绪论 ................................................ 二•设计目的.............................................三.设计要求.............................................四.设计思路.............................................五.系统的硬件构成及功能.................................5.1主控制器...........................................5.2显示电路...........................................5.3温度传感器.........................................六.系统整体硬件电路.....................................七.系统程序设计.........................................八.测量及其结果分析.....................................九.设计心得体会.........................................十.参考文献.............................................. 附录1源程序附录2元件清单及PCB图一. 绪论随着时代的发展,控制智能化,仪器小型化,功耗微量化得到广泛关注。
XXXXXXXX 学院毕业设计说明书(论文)作 者:学 号: 系: 电子工程与光电技术系专 业: 电子信息工程题 目: 数字温度计研究与设计指导者:(姓 名) (专业技术职务)评阅者:(姓 名) (专业技术职务)2015 年 6 月讲师 讲师目次1 引言 01.1 课题的背景 01.2 数字温度计的发展趋势和特征 01.3 课题研究内容及要求 (1)1.4 章节内容安排 (2)2 方案的选择 (3)2.1 主控芯片的选择 (3)2.2 温度传感器的选择 (4)2.3 显示屏的选择 (5)2.4 报警器的选择 (5)3 系统硬件设计 (6)3.1 最小系统 (6)3.2 温度采集电路 (8)3.3 显示电路 (9)3.4 报警电路 (12)4 软件电路的设计 (13)4.1 总体软件设计流程 (13)4.2 DS18B20子程序设计 (15)4.3 液晶显示模块 (21)4.4 报警子程序 (27)5仿真结果与调试 (28)结论 (33)致谢 (34)参考文献 (35)1 引言1.1 课题的背景温度作为7个基本单位之一,是用来表示物体冷热程度的物理量。
由于物体随温度变化会产生相应的特性变化,而温度的测量仅且只能利用相关特性进行间接测量。
温度的国际单位是开尔文,而其他经常使用的温标有华氏度、摄氏度等。
人类的日常的生活、生产与温度是紧密连接的,温度计也就应运而生。
16世纪末,早期的温度计就诞生了。
第一支温度计是利用热胀冷缩的原理的制作的,但是受制于压强等环境因素,测量结果很不稳定。
但这是人类历史中里程碑的进步。
此后,其他科学家在伽利略的基础上反复尝试、改进,先后制出了华氏温度计、列士温度计和该良版华氏温度计(摄氏温度)。
现今,英美等国家主要使用华氏温度、列氏温度在德国使用较多,摄氏温度广泛用于大部分科技研发和工农业生产中。
在科技日新月异当代,不同规模的集成芯片大量涌现,引发了关于温度计的革命。
数字温度计(DTM),是以数字化技术为基础的测量方式,将温度的相对变化由连续变为离散的数字信号,同时能够实现时时显示的智能仪表。
毕业设计毕业设计(论文)题目:数字温度计设计专业:应用电子技术****:***班级:08级应用电子5班学号:****************完成日期:2011年4月18日目录摘要 (3)第一章.数字温计总体设案1.数字温度计设计方案论述 (4)1.1方案一 (4)1.2方案二 (4)1.3方案三 (4)第二章数字温度计总体详细设计2.1 主控器 (5).AT89S51特点及特性 (5).管脚功能说明 (5)2.2 温度采集部分设计 (5)温度传感器DS18B20 (5)DS18B20温度传感器与单片机的接口电路 (8)DS18B20的控制方法 (9)第三章系统硬件电路设计3.1电路原理 (11)3.2电路原材料清单 (12)3.3使用工具及仪表清单 (12)第四章系统软件设计4.1流程图 (13)4.2读出温度子程序 (13)4.3温度转换命令子程序 (14)4.4计算温度子程序 (14)4.5数字温度计程序清单 (14)总结 (19)致谢 (20)参考文献 (21)摘要本文综述了数字温度计的设计与制作过程,介绍了设计制作一个完整的数字温度计需要做的准备与制作过程,通过一段时间的努力制作,从刚开始透彻理解题目要求及所要设计的产品的各项性能功能,然后觉得利用单片机作为控制内核,其次主要的就是温度传感器DS18B20,及其他重要部分电路的配合下设计出一套完整的硬件系统,及它的灵魂软件系统。
得到了一种基于单片机控制的数字温度计,本温度计属于多功能温度计,可以设置上下报警温度,当温度不在设置范围内时,可以报警。
本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采用数字显示,该设计控制器使用单片机AT89S51,测温传感器使用DS18B20,用4位共阳极LED数码管以串口传送数据,实现温度显示,能准确达到以上要求。
关键词:单片机,数字控制,温度计, DS18B20,AT89S51第1章.数字温度计总体设计方案1.数字温度计设计方案论证1.1方案一:热敏电阻由于本设计是测温电路,可以使用热敏电阻之类的器件利用其感温效应,在将随被测温度变化的电压或电流采集过来,进行A/D转换后,就可以用单片机进行数据的处理,在显示电路上,就可以将被测温度显示出来,这种设计需要用到A/D转换电路,感温电路比较麻烦。