摘要: 随着科技的高速发展,生活中处处可见各种各样的测温仪表。例如智能电饭煲、太阳能热水器就运用到了测温元器件。温度无论是太高或是太低,都会在一定程度上浪费水资源,所以精确地测量水温并显示出来是至关重要的。本文介绍了一种基于单片机AT89C51、数字温度传感器DS18B20设计的水温控制系统。它用来实现系统检测温度从而进行控制调节的功能。
绪论里简单介绍了本课题的背景、意义及目标。在系统总体设计方案中确定设计原理与单片机的选用。系统的硬件部分由单片机电路、内部时钟电路、上电和按键复位电路、LCD显示电路、测量温度电路、按键设定温度电路、继电器控制电路组成。软件部分从设计的思路以及系统框图出发,逐一分析、确定各个模块的程序算法,通过C51语言的编写满足任务的需求。最后进行调试,使系统能够仿真运行达到课题要求。22175
毕业论文关键词: 单片机AT89C51;温度传感器DS18B20;LCD显示;温度控制
The Water Temperature Control System Based on DS18B20
Abstract: With the rapid development of science and technology, various thermometers are visible in life. Such as intelligent rice cooker, solar water heater are used to measuring temperature components. Temperature is too high or too low, will waste water to a certain extent, so the temperature shall be measured accurately and displayed is very vital. This paper introduces a kind of based on microcontroller AT89C51, digital temperature sensor DS18B20 to design water temperature control system. It is used to implement system testing temperature and thus for the control function.
The introduction introduces the background, significance and the goal of this project. In the system overall design to determine the design principle and selection of single chip microcomputer. The hardware part of the system by single chip microcomputer circuit, internal clock circuit and reset circuit, electricity and buttons on the LCD display circuit, measuring temperature circuit, button set temperature circuit, relay control circuit. Software part starting from the design train of thought and the system block algorithm, by C51 language writing to meet the requirement of task. The final debugging, the system is able to run the simulation to meet the project requirements.
Keywords: SCM AT89C51; temperature sensor DS18B20; LCD display; temperature control
目录
摘要 i
Abstract i
目录 iii
1 绪论 1
1.1 选题背景 1
1.2 选题意义 1
1.3 选题简介 1
2 系统总体设计方案 3
2.1 系统工作原理 3
2.2 单片机AT89C51 4
2.2.1 单片机的选择 4
3 硬件设计 8
3.1 时钟电路模块 8
3.1.1 内部时钟方式 8
3.2 复位电路模块 9
3.2.1 按键复位电路 9
3.3 测量温度模块 10
3.3.1 1-Wire总线简介 11
3.3.2 DS18B20简介 12
3.4 显示电路模块 18
3.4.1 LCD1602显示电路 19
3.5 按键电路模块 21
3.6 控制模块 21 基于DS18B20的水温控制系统设计+电路图+源程序:http://www.youerw.com/jisuanji/lunwen_14684.html