1、 课课 程程 设设 计计 说说 明明 书书 课程设计名称:课程设计名称: 计算机控制技术 题题 目:目: 水位自动控制装置的设计 学学 生生 姓姓 名:名: 专专 业:业: 电气工程与自动化 学学 号:号: 指指 导导 教教 师:师: 日期:2013 年 12 月 18 日 成绩 摘要:摘要: 随着微电子技术的快速发展,单片机控制的智能型控制器件广泛应用于电子 产品中,为了达到对单片机控制器进一步层次学习和掌握,经过综合分析系统选 择了由 STC89C51 单片机为处理单元,完成液位智能控制功能。 液位自动控制是 通过控制开关阀的开关来控制液位的高低,当传感器检测得到液位高度设定值, 阀门关闭
2、,防止液体溢出;当检测液位低于设定值时,阀门打开,使液位上升, 从而达到控制液位的目的。通过对系统设计的分析、方案论证和选择、系统模块 设计到最后系统的完善和调试,系统能按照要求能完成液位高度控制功能,运行 情况稳定。 关键词关键词:单片机,智能控制,开关阀,液位高度 Abstract:Abstract: With the rapid development of microelectronics technology and single-chip microcomputer control of intelligent control devices are widely used in
3、electronic products, in order to achieve further level of single chip microcomputer controller to learn and master, after comprehensive analysis system chosen by the STC89C51 microcontroller as the processing unit, complete the level of intelligent control function. Liquid level automatic control is
4、 through the control of switch valve switch to control the liquid level height, when the sensor detects the level of value, the valve closed, to prevent liquid overflow; When testing liquid level is lower than the set value, the valve is opened, the liquid level rise, so as to achieve the goal of co
5、ntrol level. Through the analysis of the system design, scheme comparison and selection, system module design to the final system to improve and debugging, the system can complete liquid level height control function, according to the requirements can run in a stable condition. Key words: single chi
6、p microcomputer, intelligent control, on-off valves, liquid level height 目录:目录: 前言: 1 1.系统方案设计 2 1.1 控制方式选择 2 1.2 微处理器型号选择 . 2 1.3 整体方案设计 . 3 2.硬件设计 4 2.1 单片机最小系统 4 2.2 传感器 5 2.3 信号放大电路 6 2.4 键盘电路 7 2.5 液晶显示电路 7 2.6 A/D 转换电路及控制输出 9 2.7 系统电源电路设计 . 11 3. 软件设计 13 3.1 软件系统设计 . 13 4. 系统设计总结 14 参考文献:. 15 附页:. 16 1. 系统设计总图 16 2. 系统核心程序 16 第 1 页 前言:前言: 系统基于 STC12C5A60S2 单片机为处理器, 完成液位检测、 显示和控制功能