基于atc89c51单片机的温度控制系统设计(lcd显示)大学毕设论文 下载本文

内容发布更新时间 : 2024/5/31 3:35:02星期一 下面是文章的全部内容请认真阅读。

基于ATC89C51单片机的温度控制系统设计(LCD显示)

摘 要

温度的控制是个恒久的课题。从古至今,人类生活的许多方面都和温度控制有关,其中尤其是对水温的控制最多。现代社会,随着科技的发展,对水温控制也越来越精细。有鉴于此,结合本课题,我选取的控制对象是浴室用水的温度控制。电热水锅炉是将电能转化为热能的能量转换装置,具有结构简单、无污染和自动化程度高等优点,近年来已成为供热采暖的主要设备。电热水锅炉,用数学方法建立它的精确的数学模型显然十分困难,因而用传统的控制理论和方法对本系统实施控制有其局限性,而智能控制正是吸收了人们的生活经验、逻辑推理规则和记忆学习的优点,在工程实际中已经取得了很多价值性的成果。本文最终选择了简单易行的位式控制算法。在研究电锅炉控制算法的同时,本文还选用了ATC89C51单片机,设计了锅炉温度的硬件电路,包括传感器电路、继电器控制电路、温度显示电路、键盘输入电路,其中传感器分别选用了DS18B20温度传感器和电接点液位传感器,控制电路就是通过继电器来控制加热器,进而控制温度。显示部分采用了LCD显示屏。基于硬件电路,又编写了C语言程序,并通过C51和Protues软件联调,进行了仿真调试,获得较为理想的效果。

关键词:温度控制;AT89C51单片机;DS18B20; LCD

Abstract

Temperature control is a permanent topic.Historically, many aspects of human life and temperature control is concerned, most especially to the water temperature control.Modern society, with the development of science and technology, the water temperature control is becoming more and more delicate.Because of this, collection of thistopic,Iselect the control object is the bathroomwateremperaturecontrol.Electric boiler is the device that convert electricity into heat, it has the advantages of simple structure, no pollution and has high automatically degree, which has become the main equipment for heating. For the electric boiler, because it is a nonlinear, time-varying, long time-delayed, large inertia and unidirectional rising system, it is very difficult to use mathematical method to establish mathematical model and to control this system by using the classical control theory and method. Intelligent control has produced something valuable in engineering practice, because it brings in the good things such as the experience, logical reasoning and memory from people.This paper finally chose a simple type control algorithm.At the same time, we choose the ATC89C51 SCM, and design the hardware circuit of temperature and water level control of electric boiler, which includes the sensor circuit, the relay control circuit, temperature and water level display circuit, keyboard circuit, water level alarm circuit. We choose DS18B20 temperature sensor and the electric contact water level sensor, control circuit can control water level and temperature through the relay controlling solenoid valve and heater.The displaypartadoptsLCD. Based on hardware circuit, we write C language program, and get more ideal control effect through C51 and debugging.

Keyword: Temperature control ;AT89C51 SCM; DS18B20 ;LCD

目录

第一章 绪论…………………………………………………………………………错

!未定义书签。

1.1课程的背景及意义…………………………………………………………………1 1.2国内外的研究状况……………………………………………………………………1 1.3.单片机技术的发展及应用……………………………………………………………2 1.4 电热锅炉的简单介绍……………………………………………………………………3

1.5本文的主要工作………………………………………………………………………3

第二章 系统总体设计方案的论证…………………………………………………………4

2.12.22.32.42.53.13.23.3误3.43.5误

4.14.24.34.44.54.6

设计的内容及要求………………………………………………………………4 显示部分的方案………………………………………………………………………4 测量部分方案………………………………………………………………………4 主控部分方案…………………………………………………………………………5 系统总体方案…………………………………………………………………………5 单片机的最小系统……………………………………………………………………6 温度采集电路设计…………………………………………………………………8 显示电路设计…………………………………………………………………………错

!未定义书签。

温度控制电路和报警电路的设计……………………………………………………10 键盘电路的设计……………………………………………………………………11 !未定义书签。 设计思路、流程图……………………………………………………………………13 温度采集子程序………………………………………………………………………14 数据处理子程序……………………………………………………………………17 人机交互子程序………………………………………………………………………18 执行子程序……………………………………………………………………………20 仿真图…………………………………………………………………………………22

第三章 温度控制系统的硬件电路设计……………………………………………………6

第四章 温度控制系统的软件设计与仿真………………………………………………错

结论………………………………………………………………………………………………25 致谢………………………………………………………………………………………………25

参考文献…………………………………………………………………………………………26