文档介绍:基于单片机的水位控制系统的设计
摘要: 本设计是利用STC89C52单片机设计一种水位控制系统。主要是基于单片机的硬件设计以及程序设计。该系统实现了水位监测,水位控制,水位显示,故障报警功能。在设计中主要采用了传感技术、单片机技术、弱电控制强电技术、C语言编程等技术。本文还讲述了水位控制系统工作的基本原理,介绍了电路接口原理图,给出了相应了设计流程图和C语言程序。
本文主要是为了更多得了解单片机,掌握单片机的组成部分和控制原理,最终达到设计出“单片机水位控制系统的”的目的。实验证明,单片机控制的水位控制系统的硬件电路简单,软件功能完善,控制系统可靠,充分发挥了单片机的性能,可以大大的提高单片机的开发效率。
关键词:单片机,水位,控制,
ABSTRACT
This design is STC89C52 SCM design using a water level control system. Mainly based on single chip puter hardware design and programming. This system realizes the water level, water level control, monitoring the alarming function, according to water. In design mainly adopts sensing technology and single-chip puter technology, low &high technology, control technology such as the C programming language. This paper also tells the water level control system, this paper introduces the basic principle of schematic interface circuit and presents the corresponding the design flow chart and C language program.
This paper is mainly to more understanding of single chip microcontroller, grasps achieve finally designed "one-puter water level control system" purposes. Experiments show that single chip puter control water level control system hardware circuit is simple, software function consummation, the control system is reliable, give full play to the performance of the single-chip microcontroller, can greatly improve the efficiency of the development.
Keywords: SCM Level Control
4
2. STC89C52单片机介绍 5
STC89C52介绍 5
3 硬件的设计 11
11
11
11
13
15
17
18
19
20
21
4. 软件程序设计以及仿真 22
程序流程图 22
: 22
: 23
24
24
C语言程序设计 25
35
参考文献 36
答谢 37
当今社会,科技以迅雷不及掩耳之势的速度发展着,人民生活水平也在不断的提高。自动水位控制将给人们生活带来巨大的方便。由于单片机有极高的可靠性,微型性和智能性,单片机已经广泛应用于我们生活和学习中,我们可以在许多领域见到单片机的身影,,小到玩具家电行业,大到车载、舰船电子系统,遍及计量测试、工业过程控制、机械电子、办公自动化、工业机器人、军事和航空航天等领域都可以见到单片