[信息与通信]基于单片机的水塔水位控制系统

上传人:豆浆 文档编号:33989446 上传时间:2018-02-19 格式:DOC 页数:39 大小:1.34MB
返回 下载 相关 举报
[信息与通信]基于单片机的水塔水位控制系统_第1页
第1页 / 共39页
[信息与通信]基于单片机的水塔水位控制系统_第2页
第2页 / 共39页
[信息与通信]基于单片机的水塔水位控制系统_第3页
第3页 / 共39页
[信息与通信]基于单片机的水塔水位控制系统_第4页
第4页 / 共39页
[信息与通信]基于单片机的水塔水位控制系统_第5页
第5页 / 共39页
点击查看更多>>
资源描述

《[信息与通信]基于单片机的水塔水位控制系统》由会员分享,可在线阅读,更多相关《[信息与通信]基于单片机的水塔水位控制系统(39页珍藏版)》请在金锄头文库上搜索。

1、摘 要水塔是在日常生活和工业应用中经常见到的蓄水装置,基于单片机的水塔水位控制系统使水塔水位自动保持在一定的位置,通过对其水位的控制对外供水,以满足需要。该系统使用水位传感器对水塔水位进行检测并将检测到的信号传给单片机STC89C52 进行处理,通过调整定时器的定时时间来增大或者缩小占空比,并采用 C语言编写控制程序,从而实现电机的调速。最后,使用带字库的 LCD1602 液晶屏显示当前水位状态以及电动机的转速。该系统实现了过低水位蜂鸣器鸣笛报警、过低警戒水位自动处理、正常水位蜂鸣器鸣笛报警以及正常水位处理、手动按键调整PWM(Pulse Width Modulation)电机调速等功能。本系

2、统适应在不同的用水场合下的用水速度需要,节省工作时间,提高了整体工作的效率,实现水塔水位的自动控制。关键词:单片机控制;水位检测;LCD1602 显示;PWM 电机调速ABSTRACTThe 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

3、 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

4、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

5、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 引 言 .11.1 课题简介 .12 系统的整体方案设

6、计 .32.1 功能要求 .32.2 设计要求 .32.3 系统基本方案选择和论证 .32.3.1 单片机芯片的选择方案论证 .42.3.2 显示模块选择方案论证 .43 系统的硬件设计 .53.1 电路设计框图 .53.2 MCU 主控芯片简介 .53.2.1 主控制器芯片 STC89C52 概述 .53.2.2 芯片下载程序 .73.3 液晶屏 1602 的简单介绍 .73.3.1 液晶屏 1602 的简要概述 .73.3.2 液晶屏 1602 的使用具体 .83.4 系统功能电路 .123.4.1 最小工作系统原理 .123.4.2 蜂鸣器报警电路原理 .143.4.3 电机驱动电路原理 .143.4.4 按键功能电路原理 .153.4.5 液晶 1602 显示功能电路图 .153.5 系统总体原理图设计 .164 系统的软件设计 .174.1 编程语言介绍 .174.1.1 C 语言简介 .174.1.2 C 语言的特点 .174.1.3 C 源程序的结构特点 .184.2 PWM 调速控制概述 .194.2.1 PWM 脉宽调制简介 .194.2.2 PWM 调节的具体过程 .194.3 系统程序的设计 .204.3.1 程序设计步骤 .204.3.2 软件的安全冗余设置 .214.3.3 程序流程图 .214.4 程序源代码 .

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号