1、 毕 业 设 计 (论 文) 专专 业业 电气工程及其自动化电气工程及其自动化 班班 级级 0707 电气(电气(1 1) 课课 题题 基于单片机的实时温度监控系统设计基于单片机的实时温度监控系统设计 基于单片机的实时温度监控系统设计 2 基于单片机的实时温度监控系统设计基于单片机的实时温度监控系统设计 摘摘 要要 本文所介绍的是一种采用单总线数字式的温度传感器DS18B20与AT89S52 单片机组成的新型温度测量系统, 并使用 LED 数码管显示器将所测温度显示出 来。该系统以 AT89S52 单片机为控制核心,利用新型一线制温度传感器 DS18B20 测量温度值,实现环境温度的检测和报警
2、。系统测温范围为-40 +85,测量精度为 0.5。用户可以自定义报警上、下限,一旦温度超过极 限值,单片机便启动声光报警系统。该系统精度高、测温范围广、报警及时, 可广泛应用于基于单片机的温报警场合。 关键词:关键词:AT89S52 单片机;温度测量;DS18B20;声光报警;数码管显示 基于单片机的实时温度监控系统设计 3 Design of Real-time Temperature Monitoring System Based on Single Chip Microcomputer Abstract Described in this paper is a single-bus d
3、igital temperature sensor DS18B20 AT89S52 single chip with a new temperature measuring system,and use the LED digital display will display the measured temperature. The AT89S52 microcontroller for the control system to the core,Temperature sensor system using a new first-line temperature measurement
4、 DS18B20,achieve environmental temperature detection and alarm. Temperature measurement range is -40 - +85 , measurement accuracy of 0.5 . Users can customize the alarm, the lower limit,Once the temperature exceeds the limit, the microcontroller will start the sound and light alarm system. The syste
5、m of high precision, wide temperature range, the alarm in time, can be widely used in microcontroller-based temperature alarm occasions. Key words: AT89S52 microcontroller; temperature measurement; DS18B20; sound and light alarms; digital display 基于单片机的实时温度监控系统设计 4 目 录 摘 要 2 Abstract 3 目 录 . 4 第一章 前
6、言. 5 第二章 监控系统主要元器件简介 . 6 2.1 AT89S52 单片机的组成结构及功能 6 2.1 .1 AT89S52 单片机的主要功能 6 2.1.2 AT89S5 单片机的封装及其引脚功能说明 . 7 2.1.3 外接晶振或外部振荡器引脚 9 2.1.4 AT89S52 复位 . 9 2.2 温度测量传感器 DS18B20 介绍 . 10 2.2.1 DS18B20 简介 . 10 2.2.2 DS18B20 的引脚、封装和结构 10 2.2.3 寄生电源 . 12 2.2.4 温度测量原理 12 2.3 四位连体数码管 SM410564 . 13 第三章 系统硬件电路设计 . 15 3.1 单片机最小系统 . 15 3.2 温度检测模块. 17 3.3 温度显示模块电路 17 3.4 报警电路模块 . 17 3.5 基于 AT89S52 单片机的温度测量系统总电路 . 18 3.6 温度测量系统的实物图. 19 第四