摘要AT89C51温度控制系统摘要:本文设计了一种基于单片机的数字温控系统,该系统由 AT89C51 单片机、DS18B20 温度传感器、LED 数码管显示器、12M 晶振、继电器等部分构成。以单片机为控制核心, 通过按键设定温度的上限及下限。然后用 DS18B20 温度传感器检测温度,并通过 A/D 转换 器将检测的模拟量转换为数字量,在数码管上显示转换后的数字量,继电器控制加热器或 风扇,直到能在规定的温度下恒温加热,加热器采用生活中常用的加热棒代替。本系统结 构简单,功能易扩展,具有读数方便,测温范围广,测温准确等优点,主要用于工农业测 量控制温度的场所,或科研实验室使用。75412
毕业论文关键词:单片机系统,传感器,数码管,温度
1
Abstract: A digital temperature control system based on MCU is designed in this paper, the system by the AT89C51 microcontroller, DS18B20 temperature sensor, LED digital tube display, 12m crystal, relays and other components。 Use single chip microcomputer as the control core。
Use the key setting temperature of the upper and lower bounds。 Then using DS18B20 temperature sensor detects the temperature, and through the A / D converter will detect the analog conversion to digital quantity, in the digital tube display after conversion to digital quantity, relay control heaters and fans, until you can under the provisions of the temperature constant temperature heating, heater using instead of the commonly used in life of the heating rod。 The system has the advantages of simple structure, easy expansion of functions, with advantage of easy reading, a wide range of temperature measurement, accurate temperature measurement, etc。, mainly used for temperature measurement in industry and agriculture control places, or scientific research laboratories。
Key words:Single chip microcomputer system, Sensor, Digital tube, Temperature
目录
1 前言 4
1。1 背景 4
1。2 意义 4
1。3 发展现状及前景 4
2 系统总体设计 5
2。1 系统总体结构图及工作原理 5
2。2 系统实现功能 5
2。3 DS18B20 传感器简介 6
2。4 AT89C51 介绍 8
2。5 数码管介绍 12
3 硬件电路设计 13
3。1 AT89C51 与 DS18B20 构成的测温系统硬件结构 13
3。2 单片机最小系统 14
3。3 电源模块 15
3。4 显示模块 15
3。5 报警模块 16
3。6 温度检测模块 16
3。7