基于单片机的塔水位控制系统.docVIP

  • 4
  • 0
  • 约2.35万字
  • 约 39页
  • 2016-06-07 发布于贵州
  • 举报
摘 要 水塔是在日常生活和工业应用中经常见到的蓄水装置,基于单片机的水塔水位控制系统使水塔水位保持在一定的位置,系统水位检测报警警戒水位处理报警Pulse Width Modulation)电机调速等功能。。关键词:单片机;水位检测;; ABSTRACT The water tower is commonly seen in daily life and industrial as application of storage device. The system is based on single-chip microcomputer control system help to keep water towers in certain water level and according to the automatic level of control to supply the needs of water. Water level sensor is used for towers on the examination detect signal and transfer the signal to STC89C52 , through the adjustment of the time to increase or narrow the duty ratio, and using C language program, so as to realize the compilation control of motor speed. Finally, current levels and motor speed are shown with 1602 LCD screen in this system. This system realizes the buzzer low level alarm, low whistle warning level automatic processing, normal level alarm or normal water buzzer sirens and manual buttons Pulse Width Modulation. This system realizes the automatic control in different water situation of water to save the working time, speed, and also improves the overall efficiency of water towers. Key Words:SCM control Water detection; LCD1602 display; PWM motor speed; 目 录1 引 言 1 1.1 课题简介 1 2 系统的整体方案设计 3 2.1 功能要求 3 2.2 设计要求 3 2.3 系统基本方案选择和论证 3 2.3.1 单片机芯片的选择方案论证 4 2.3.2 显示模块选择方案论证 4 3 系统的硬件设计 5 3.1 电路设计框图 5 3.2 MCU主控芯片简介 5 3.2.1 主控制器芯片STC89C52概述 5 3.2.2 芯片下载程序 7 3.3 液晶屏1602的简单介绍 7 3.3.1 液晶屏1602的简要概述 7 3.3.2 液晶屏1602的使用具体 8 3.4 系统功能电路 12 3.4.1 最小工作系统原理 12 3.4.2 蜂鸣器报警电路原理 14 3.4.3 电机驱动电路原理 14 3.4.4 按键功能电路原理 15 3.4.5 液晶1602显示功能电路图 15 3.5 系统总体原理图设计 16 4 系统的软件设计 17 4.1 编程语言介绍 17 4.1.1 C语言简介 17 4.1.2 C语言的特点 17 4.1.3 C源程序的结构特点 18 4.2 PWM调速控制概述 19 4.2.1 PWM脉宽调制简介 19 4.2.2 PWM调节的具体过程 19 4.3 系统程序的设计 20 4.3.1 程序设计步骤 20 4.3.2 软件的安全冗余设置 21 4.3.3 程序流程图 21 4.4 程序源代码 23 5 调试 24 5.1 调试过程 24 5.2 电路检测 24 5.2.1 调试步骤 24 5.2.2 调试遇到的问题及解决方案 24 5.3 功能实现 25 结 论 26 参考文献 27 附录一 系统原理图 28 附录二 程序源代码 29 致 谢 35 引 言 课题简介 水塔是在日常生活和工业应用中经常见到的蓄水装置,通过对其水位的控制对外供水以满足需要,其水位控制具有普遍性。

文档评论(0)

1亿VIP精品文档

相关文档