水温水位控制系统毕业论文

  • 格式:doc
  • 大小:474.00 KB
  • 文档页数:23

摘 要

为了实现高精度的水温水位控制,本文介绍了一种以AT89C51单片机为控制核心、以一种新型的可编程温度传感器(DS18B20)为温度采集器件来实现水温水位控制系统。文章着重介绍核心器件的选择、各部分电路及软件的设计。AT89C51单片机完善的内部结构、优良的性能和强大的中断处理能力,决定了该控制系统的特点:电路结构简单、程序简短、系统可靠性高等。水位以AT89C51单片机检测缺水溢流,实现自动控制,温度检测采用新型的可编程温度传感器(DS18B20),不需要复杂的信号调理电路和A/D转换电路,能直接与单片机完成数据的采集和处理,采用LCD1602液晶实时显示温度值,实现方便、简单。本系统根据不同需要可用于各种场合。

【关键词】单片机 DS18B20 LCD1602 控制

Abstract

In order to realize high precision temperature level control, this paper

introduces an AT89C51 as control core, with a new type of programmable temperature

sensor (DS18B20) for temperature gathering device to achieve water level control

system. This article mainly introduces the selection, the core component parts

circuit and software design. AT89C51 perfect internal structure, excellent

performance and powerful interrupt handling ability, decided the control system

has the characteristic of simple structure, procedures, circuit short, system

reliability higher. Water shortage by AT89C51 detection, the realization of

automatic control, overflow temperature detection using new programmable

temperature sensor (DS18B20), not in need of sophisticated signal regulate circuit

and A/D circuit, can work directly with the single-chip commputer completes data

collection and processing, the temperature LCD1602 LCD display, realize the

convenient and simple. This system can be used according to different requirements

on various occasions.

【Keywords】microcontroller DS18B20 LCD1602 control

目 录

目 录 ......................................................................................................................................... 3

引 言 ......................................................................................................................................... 4

第一章.系统方案设计 ................................................................................................................... 5

1.1水温水位控制系统的设计任务和要求 ........................................................................... 5

1.2系统总体方案的选择 ....................................................................................................... 5

1.3温度传感器的选择 ........................................................................................................... 6

第二章.元器件介绍及硬件电路设计 ........................................................................................... 6

2.1元器件介绍 ....................................................................................................................... 6

2.1.1温度传感器 ............................................................................................................ 6

2.1.2 AT89C51的特性 .................................................................................................... 9

2.1.3 LCD1602液晶 ........................................................................................................ 9

2.1.4继电器 .................................................................................................................. 10

2.1.5键盘 ...................................................................................................................... 10

2.2硬件电路设计 ................................................................................................................. 10

2.2.1温度采集电路 ...................................................................................................... 11

2.2.2 LCD1602液晶显示电路 ...................................................................................... 11

2.2.3水位监测电路 ...................................................................................................... 11

2.2.4输出驱动电路 ...................................................................................................... 12

2.2.5键盘电路 .............................................................................................................. 13

2.2.6蜂鸣报警电路 ...................................................................................................... 13

第三章 系统软件设计 ................................................................................................................. 14

3.1程序结构说明 ................................................................................................................. 14

3.2程序流程图 ..................................................................................................................... 14

3.2.1主程序 .................................................................................................................. 14

3.2.2 LCD1602显示程序流程图 .................................................................................. 15

3.2.3温度采集处理程序 .............................................................................................. 16