1、基于单片机的基于单片机的数字温度计设计数字温度计设计 摘摘 要要 随着时代的进步和发展,单片机技术已经普及到我们生活、工作、科研、各 个领域,已经成为一种比较成熟的技术, 本文主要介绍了一个基于 AT89C52 单片 机的测温系统,详细描述了利用数字温度传感器 DS18B20 开发测温系统的过程, 重点对传感器在单片机下的硬件连接,软件编程以及各模块系统流程进行了详尽 分析,对各部分的电路也一一进行了介绍,该系统可以方便的实现实现温度采集和 显示,它使用起来相当方便,具有精度高、量程宽、灵敏度高、体积小、功耗低 等优点。 DS18B20 与 AT80C52 结合实现最简温度检测系统,该系统结构
2、简单, 抗干扰能力强,适合于恶劣环境下进行现场温度测量,有广泛的应用前景。 关键词:关键词:单片机单片机; ;数字控制数字控制; ;温度计温度计; ;DS18B20;AT89C52 Abstract Along with the progress of The Times and development, microcontroller technology has spread to our life, work, scientific research, each domain, has become a more mature technology, this paper mainly
3、introduces a temperature measurement system based on AT89C52 single chip microcomputer, described in detail using digital temperature sensor DS18B20 temperature measurement and control system in the development process, focusing on sensors under the single chip microcomputer hardware connection, sof
4、tware programming, and each module system process has carried on the detailed analysis of the circuit of each part are introduced one by one, also the system can easily realize temperature acquisition and display, it is quite convenient to use and has high precision, wide range, high sensitivity, sm
5、all volume, low power consumption advantages. DS18B20 with AT80C52 realize the minimalist temperature detection system, the system structure is simple, strong anti-jamming capability, suitable for harsh environments on-site temperature measurement, have broad application prospects. Key words: single
6、 chip microcomputer,Digital control,The thermometer, DS18B20,AT89C52 单片机原理及系统课程设计报告 1 1 引言引言 随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它所 给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子,但人们 对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设施 就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向发展。 本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围 广,测温准确,其输出温度采用数字显示,主要用于对测温比较准确的场所,或 科研实验室使用, 该设计控制器使用单片机AT89C52, 测温传感器使用DS18B20。 1.1设计内容及性能指标设计内容及性能指标 本设计主要是介绍了单片机控制下的温度检测系统,详细介绍了其硬件和软 件设计,并对其各功能模块做了详细介绍,其主要功能和指标如下: 利用温度传感器(DS18B20)测量某一点环境温度 测量范围为-5599,精度为 0.5 用1602LC