数字温度计大学论文设计
- 格式:pdf
- 大小:4.55 MB
- 文档页数:31
DS18B20数字温度计的设计摘要温度是一种最基本的环境参数,人们生活与环境温度息息相关,在工业生产过程中需要实时测量温度,在工业生产中也离不开温度的测量,因此研究温度的测量方法和控制具有重要的意义。
本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。
主要包括硬件电路的设计和系统程序的设计。
硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机AT8 9C52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用8位共阴极LED数码管,ULN2803A为驱动的动态扫描直读显示。
测温控制电路由温度传感器和预置温度值比较报警电路组成,当实际测量温度值大于预置温度值时,发出报警信号,即发光二极管亮。
系统程序主要包括主程序,测温子程序和显示子程序等。
DS18B20新型单总线数字温度传感器是DALLAS 公司生产的单线数字温度传感器, 集温度测量和 A /D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
由于采用了改进型智能温度传感器DS18B20作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。
DS18B20温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。
此外,还介绍了系统的调试和性能分析。
关键词:显示电路,单片机,AT89C52,温度传感器,DS18B20 ,单总线IThe Design of DS18B20 Digit ThermometerABSTRACTTemperature is a basic parameters of the environment, people's lives a nd the environment are closely related to temperature. in the course of ind ustrial production immediate need for temperature measurement in industrial production has to do with temperature measurement, The study o f the temperature measurement and control is of great significance.The paper introduced one kind new digital thermo meter 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 contro ller used Micro Controller Unit AT89C52, the temperature sensor used DS18B20 which the American DALLAS semiconductor company produces, the disp lay circuit used 8 altogether anodes LED numerical code tube by the dynamic scanning method straight to read the demo nstration.ULN2803A-driven dynamic scan showed straight time. Temperature control circuit fro m 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 assemb les temperature measure and A /D converter, exports digital signal directly, operation easily, better precise, protecting disturb, running steably and so on.IIBecause used the advanced version intelligence temperature sensor DS18B20 as the examine part, compared with the traditio nal thermo meter, this d igital thermo meter reduced the exterior hardware electric circuit, has characteristic that the low cost and was easy to use. The DS18B20 therm ometer also may used to the high temperature warning, the long-distance ran ge multi- spots temperature measured aspect and so on temperature contro l carries on the applicatio n development, has the very good prospects for development. In addition, introduced the system debugging and the perform ance analysis.KEY WORDS:Disp lay Circuit, Microcontroller Unit , AT89C52,Temperature Sensor, DS18B20,1-WireIII目录前言 (1)第1章设计任务及方案分析 (2)§1.1 设计任务及要求 (2)§1.2 设计总体方案及方案论证 (2)§1.3 温度测量的方案与分析 (2)§1.3.1 芯片选择 (2)§1.3.2 实现方法简介 (3)§1.3.3 测温流程图 (3)第2章芯片功能简介 (4)§2.1 A T89C52的功能简介 (4)§2.1.1 A T89C52芯片简介 (4)§2.1.2 引脚功能说明 (4)§2.2 DS18B20的功能简介 (7)§2.2.1 芯片简介 (7)§2.2.2 DS18B20外形和内部结构 (8)§2.2.3 DS18B20的工作时序 (11)§2.2.4 DS18B20与单片机的典型接口设计 (12)§2.2.5 DS18B20的各个ROM命令 (13)第3章系统硬件电路的设计 (15)§3.1 主控制电路和测温控制电路原理图 (15)§3.2 驱动电路模块原理图 (16)§3.3 显示模块原理图 (17)第4章软件编程调试及性能分析 (18)§4.1 主程序流程图 (18)§4.2 主程序 (19)§4.3 温度子程序 (21)§4.3.1 DS18B20复位子程序 (22)IV§4.3.2 读DS18B20子程序 (23)§4.3.3 写DS18B20子程序 (25)§4.3.4 比较报警子程序 (26)§4.3.5 按键子程序 (27)§4.4 显示子程序 (27)§4.5 调试性能分析和注意事项 (29)§4.5.1 调试性能分析 (29)§4.5.2 DS18B20使用中的注意事项 (30)结论 (31)参考文献 (32)致谢 (33)附录 (34)V前言日常生活及工农业生产中经常要用到温度的检测及控制,在冶金、食品加工、化工等工业生产过程中,广泛使用的各种加热炉、热处理炉、反应炉等,都要求对温度进行严格控制。
毕业设计任务书毕业设计题目:数字温度计设计题目类型工程设计题目来源学生自选课题毕业设计时间从至毕业设计内容要求:测温范围-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为温度传感器的新型数字温度计。
主要包括硬件电路的设计和系统程序的设计。
硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机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第一章绪论随着单片机技术的不断发展,单片机在日用电子产品中的应用越来越广泛,广泛应用于冰箱、空调器、粮仓等日常生活中温度的测量和控制。
毕业论文数字温度计摘要日常生活中,实时地掌握温度和时间信息对于人们来说必不可少。
本设计是基于单片机的多功能温度计,实现时间显示和温度显示两种功能。
整个硬件系统采用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选题背景单片机具有体积小、功能强、可靠性高、价格低廉等一系列优点,不但已成为工业测控领域广泛采用的智能化控制工具,而且已渗入到人们工作和和生活的各个方面,有力地推动了各行业的技术改造和产品的更新换代,应用前景广阔。
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转换电路,感温电路比较麻烦。
基于单片机的数字温度计的设计与实现摘要采用单片机来对他们控制不仅具有控制方便,简单和灵活性大等优点,而且可以大幅度提高被控温度的技术指标,从而能够大大的提高产品的质量和数量。
在生产过程中,为了高效地进行生产,必须对它的主要参数,如温度、压力、流量等进行有效的控制。
传统的测温元件有热电偶和二电阻。
而热电偶和热电阻测出的一般都是电压,再转换成对应的温度,这些方法相对比较复杂,需要比较多的外部硬件支持。
我们用一种相对比较简单的方式来测量。
温度范围为-55~125 ºC,最高分辨率可达0.0625 ºC。
DS18B20可以直接读出温度值,而且采用三线制与单片机相连,减少了外部的硬件电路,具有低成本和易使用的特点。
本文介绍一种基于AT89C51单片机的一种温度测量及报警电路,该电路采用DS18B20作为温度监测元件,测量范围0℃-~+100℃,使用七级数码管LED模块显示,能设置温度报警上下限。
正文着重给出了软硬件系统的各部分电路,介绍了集成温度传感器DS18B20的原理,AT89C51单片机功能和应用,该电路设计新颖、功能强大、结构简单。
关键词:温度测量;DS18B20 ; AT89C51基于单片机的数字温度计的设计与实现Design of Digital Thermomer Based on SCMABSTRACTControlled by single-chip microcomputer to control not only to them, advantages of simplicity and flexibility, and can significantly increase the temperature specifications, which can significantly increase the quality and quantity of the products. In the process of production, in order to efficiently produce, it must be the main parameters, such as temperature, pressure, flow, and other effective control. Traditional temperature measuring component thermocouple and resistance. Are generally voltage of thermocouple and thermal resistance measured, then converted to the corresponding temperature, these methods are relatively complex and requires more external hardware support. We are in a relatively simple way to measure.-55~125 ºc temperature range, maximum resolution up to 0.0625 ºc. DS18B20 can read temperature value, and wire connected to the microcontroller, reduced external hardware circuits, low cost and ease of use features.The introduction of a cost-based AT89C51 MCU a temperatur measurement circuits, the circuits used DS18B20 high-precision temperatur sensor, measuring scope 0℃-~+100℃,can set the warning limitation, the use of Seven digital tube seven segments LED that can be display the current temperature. The paper focuses on providing a software and hardware system components circuit, introduced the theory of DS18B20, the founctions and applications of AT89C51 .This circuit design innovative, powerful, can be expansionary strong.Keywords:Temperature measurement ;DS18B20 ;AT89C51目录摘要 (I)ABSTRACT (II)第一章绪论 (1)1.1 引言 (1)1.1.1 国内外现状 (1)1.1.2 课题背景及研究意义 (2)1.2 设计内容及性能指标 (2)1.3 系统概述 (3)1.3.1 系统方案论证与比较 (3)1.3.2 系统设计原理与组成 (5)第二章开发工具Proteus与Keil (6)2.1 Proteus软件 (6)2.1.1 Proteus简介 (6)2.1.2 4大功能模块 (6)2.1.3 Proteus简单应用 (8)2.2 Keil软件 (8)2.2.1 Keil软件简介 (8)2.2.2 Keil软件调试功能 (9)第三章系统硬件设计 (10)3.1 单片机的选择 (10)3.1.1 AT89C51单片机的介绍 (10)基于单片机的数字温度计的设计与实现3.1.2 AT89C51单片机主要特性 (11)3.2 温度传感器的选择 (13)3.3 硬件电路设计 (17)第四章系统软件设计 (20)4.1 各模块的程序设计 (20)4.2 Protues测温仿真 (25)4.3 系统调试 (28)4.4 结果分析 (30)结论 (31)致谢 (32)参考文献 (33)附录1 全部程序清单 (34)附录2 系统总体设计图 (41)第一章绪论1.1引言1.1.1 国内外现状温度控制系统在国内各行各业的应用虽然已经十分广泛,但从国内生产的温度控制器来讲,总体发展水平仍然不高,同日本、美国、德国等先进国家相比,仍然有着较大的差距。
LCD数字显示体温计设计摘要LCD数字体温计电路的设计研究开发对涉及到的相关技术理论和方法进行了深入的研究讨论给出了电路的详细设计过程并结合实际工作方面的经验给出了工程设计上的一些指导思想和原则.在各种传感器的温度变换曲线中存在着一个共同的问题即输出特性与温度的变化呈现非线性关系这一问题是温度测量误差的一个主要来源另一个造成测量误差的主要原因是测量系统的不稳定性在本课题的研究中对这两个问题作了着重分析和研究.LCD数字显示体温计系统采用AT89C51为控制器件,单线数字温度传感器DS18B20采集温度,LCD液晶显示,增设有高低报警和实时时钟及数据记录功能。
关键词:单片机;温度传感器;液晶显示;目录引言 (2)1 体温计的正确选择与使用 (4)2 案论证与比较 (4)3 硬件系统设计 (5)3.1电路设计 (7)3.2 时钟处理电路 (7)3.3 温度检测电路 (8)3.4显示电路 (9)4 软件设计 (9)结束语 (11)参考文献 (12)致谢 (13)LCD数字显示体温计引言在现代化生产过程控制中,执行机构起着十分重要的作用,它是自动控制系统中不可缺少的组成部分。
现有的国产大流量电动执行机构存在着控制手段落后、机械传动机构多、结构复杂、定位精度低、可靠性差等问题。
而且执行机构的全程运行速度取决于其电机的输出轴转速和其内部减速齿轮的减速比,一旦出厂,这一速度固定不可调整,其通用性较弱。
整个机构缺乏完善的保护和故障诊断措施以及必要的通信手段,系统的安全性较差,不便与计算机联网。
鉴于以上原因,采用传统的大流量电动执行机构的控制系统,可靠性和稳定性较差。
随着计算机网络、现场总线等技术在工业过程中的应用,这种执行机构已远远不能满足工业生产的要求。
笔者设计的大流量电动执行机构,采用机电一体化技术,将阀门、伺服电机、控制器合为一体,利用异步电动机直接驱动阀门的开与关。
通过内置变频器,采用模糊神经网络,实现阀门的动作速度、精确定位、柔性开关以及电机转矩等控制。