1、 毕业设计(论文)毕业设计(论文) 题目:题目:基于单片机的浴室温度控制系统基于单片机的浴室温度控制系统 目 录 摘要 关键字 1 绪论 1.1 课题研究的目的及意义 1.2 设计的任务及功能实现 1.3 研究的关键 2 系统分析 2.1 单片机简介 2.1.1 单片机的由来 2.1.2 引脚分析 2.2AD590 温度传感器简介 2.3ADC0809 简介 2.4 蜂鸣器简介 2.5 电炉简介 2.6 电动调节阀简介 2.7 辅助器件 2.7.1AD581 2.7.2LF355 2.7.3MOC3041 2.7.47407 2.7.574LS164 2.8数码显示管 LED 3 系统整体设计
2、. 3.1 设计要求. 3.2 总体设计方案. 3.2.1 硬件电路总体设计. 3.2.2 软件电路总体设计. 4 系统硬件设计. 4.1 传感器的选择. 4.2 温度调节器的选择. 4.3 硬件电路设计 4.3.1 AD590 外围电路设计 4.3.2 电动单座调节阀的外围电路设计 4.3.3 键盘及显示的设计. 5 系统软件设计. 5.1 系统定义. 5.2 程序框图及主要程序功能 5.2.1 主程序模块. 5.2.2 温度测量子程序框图 5.2.3 调整设定温度子程序框图 6 仿真. 7 设计总结 8 附录(一、二) 9 致谢 10 参考文献 摘 要 近年来随着计算机在社会领域的渗透,
3、单片机的应用正在不断地走向深入, 同时带动传统控制检测日新月益更新。 在实时检测和自动控制的单片机应用系统 中,单片机往往是作为一个核心部件来使用,仅单片机方面知识是不够的,还应 根据具体硬件结构,以及具体应用对象特点的软件结合,以作完善。 本文从硬件和软件两方面来讲述浴室温度自动控制过程,在控制过程中主要 应用 8051、ADC0809、LED 显示器、LM355 比较器,而主要是通过 AD590 温度传 感器采集环境温度,以单片机为核心控制部件,并通过三位数码管显示的一种浴 室温度调节系统。 软件方面采用汇编语言来进行程序设计, 使指令的执行速度快, 节省存储空间。为了便于扩展和更改,软件
4、的设计采用模块化结构,使程序设计 的逻辑关系更加简洁明了,使硬件在软件的控制下协调运作。 而系统的过程则是:首先,通过设置按键,设定恒温运行时的温度值,并且用 数码管显示这个温度值.然后,在运行过程中将采样的温度模拟量送入 A/D 转换器 中进行模拟-数字转换,再将转换后的数字量用数码管进行显示,最后用单片机 来控制加热器,进行加热或停止加热,直到能在规定的温度下恒温加热。 关键词:关键词:单片机系统;传感器;数据采集;模数转换器;温度 Abstract In recent years, with the penetration of computers in the social field
5、, the application of the SCM is constantly deepening, while driven by the traditional control tests day crescent beneficial update. In real-time detection and automatic control of microcomputer application system, the microcontroller is often a core component to use only SCM knowledge is not enough,
6、 should be combined according to the specific hardware architecture, as well as the specific application of object characteristics of software to make perfect. From both hardware and software to tell the story of the bathroom automatic temperature control process, the application of 8051, ADC 0809, LED display, LM355 comparator in the control process, but mainly collected through AD590 temperature sensor ambient temperature, the microcontroller as the core control componentsand