AT89C51的水塔水位控制

目录
引言 1
一 水塔背景及发展趋势 1
(一)水塔水位的产生背景 1
(二)单片机的发展趋势及应用 1
二 总体分析 1
三 硬件方案设计 3
(一)水塔水位的原理图 3
(二)单片机AT89C51 4
(三)继电器开关式 6
(四)继电器输出 6
(五)压力传感器 6
(六)时钟电路 7
(七)A/D转换器TLC0834 8
(八)显示模块 9
(九)LCD显示器 10
(十)报警 11
(十一)稳压电源 12
四 软件方案设计 13
(一)水塔水位控制主程序 14
(二)中断报警程序 15
五 总结 15
参考文献 16
致谢 17
附录 18
Abstract
In recent years, more and more advanced technology, the electronics industry is the integration of a large number of peoples daily life and work, and knowledge of school learning SCM principles also apply to our equipment in order to make the knowledge we have learned can a deeper understanding of the water tower has entered ou *好棒文|www.hbsrm.com +Q: ^3^5`1^9`1^6^0`7^2# 
r daily lives in the use of, but it is quite common, the situation needs to pay attention to the water level in the main tower of the water tower must be within a certain range, so that the water level does not would exceed a specific value and less than the minimum specified value or make empty out all the water towers of the phenomenon. Our current design activity, more so that we learn in school to get a better knowledge of the use and the results of testing the past two years. The graduation of the core technology is based on SCM AT89C51 for control system design with microcontroller functionality and description of the development of the future prospects of making simple situations. After the actual measured water main through chip technology, after A / D conversion, derived data, compare data, draw conclusions. On the level of control can really get to use. The water tower is now for people is simple and convenient, but also help save more water. The home is a water tower, through the control of water to meet the water supply. After the software design, hardware design, after a series of design, form a complete set of system devices, this initiative not only saves time, but also saves water resources, improve work efficiency, to achieve the automatic water water tower control.
【Key words】:SCM AT89C51、Water towers、Software Design、Hardware Design
引言
一水塔背景及发展趋势
(一)水塔水位的产生背景
如今,我国的工业不断的发展,科技水塔也有所提高。水塔在日常发展中,也得到很好的运用。水的资源在我们生活中有着重要的作用,没有水的日子,就如天空中的鸟儿没有了翅膀一样。水多了,就容易发生自然灾害,例如水患,下暴雨容易造成泥石流。相反,水少了,庄家田地没有水就会导致干旱,长不出粮食,人们吃不到粮食,就会被饿死,闹成人类生存的大问题,这些都会给人类的一切造成重大的损失。现在水塔出现人们的日常生活中,建筑、水坝、生产中、包括大小企业各方面都不可缺少。日常的工业中,水塔在一些小区里的作用是蓄水的功能,也在水生产中成了不可或缺的重要部分,对水塔的构造也是储水和配水两个组成部分。水柜和基础跟它的连接成的水塔,在建筑和民用工程上也是常见的和被需要的。通过对水位的控制来提供水资源,满足需要。这样的方法很普通也很寻常被人们所使用,水位的监测也是一个重要的事项。当水塔里贮满水时,上下也有一定的数值,最高不能出那个数值,最低也不能低于那数值,如果高于最高值水将会溢出造成资源的浪费,如果低于那个最低值,则会出现空塔的情况。现在控制水塔使用的也是工业科技上的单片机技术,利用单片机做出控制水位的完整系统来自动掌控水位调节。当水位高于最高值,系统就会自动调节水位,反之亦此,都是使水位一定保持在两值之间,来控制水位的正常恒定,防止水位不在范围内出现重大失误。当出现达到授予的指数水位,就会自动关闭,当出现异常情况的时候,也能够发出报警声和故障,也保持正常供水。
三硬件方案设计
(一)水塔水位的原理图
图2原理图
(二)单片机AT89C51
图3单片机引脚图
1、采样模块
晶振电路我觉得我的毕业设计能够使用到它是一个很好的选择,因为时钟电路需要它,它也适合。而且它的作用也非常的强大,是单片机系统里最实用的。其实它还有另外一个名字,叫它晶体振荡器。只要出现有时钟的频率而且是在单片机的晶振,单片机才会完成所发出的任何指令,反之则不行,然而提供的频率越高,则它的速度就越来越快,亦反之。这些都是需要结合电路产出的的时钟频率的。
图8稳压电源的原理框图

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/1938.html

好棒文