摘要
本文首先介绍了智能家居的基本知识及其应用前景,进而阐明了开发作为智能家居中的一个很重要部分——线控(固定开关)自动窗帘的意义。然后采用STC89C52单片机控制系统,利用P3口的特殊功能,根据其不同控制模式,实现半自动控制、自动控制。随后着重介绍了开发单片机控制的线控窗帘系统所用到的集成芯片STC89C52、ULN2003等硬件的结构原理。本文采用分块模式,对整个系统的硬件电路设计进行分析,分别给出了系统的总体框图、电源电路、电机控制电路、显示电路、并对相应的电路设计进行了相关的阐述。随后讲述了软件的编写思路,也就是采用分块模式。每一块模式都画出了其方块图,看起来一目了然。
最后通过仿真调试,手动开关窗帘控制方面的设计上基本达到了一起的目的。当然,该系统在一些细节的设计上还需要不断的完善和改进。
关键词:单片机 步进电机 窗帘
Abstract
This paper first introduced the basic knowledge of the intelligent household and its application prospect, thus illustrating the development as intelligence lives in a very important wire (fixed part - the significance of automatic curtain switch). Then STC89C52 single chip control system, the use of special function port P3, According to their different modes, to achieve semi-automatic control, automatic control.Then introduces development single chip microcomputer control system used by wire curtain of integrated chips STC89C52, ULN2003 etc hardware structure and principle. This paper adopts block mode, the whole system hardware circuit design, analysis are given respectively of the whole system frame, power supply circuit, motor control circuit, display circuit, and the corresponding circuit design related elaboration. Then write about software, namely the separate block thinking mode. Each piece had painted mode is the block diagram,looks at a glance.
Finally, the simulation debugging, manual switching curtain control design basic achieved the purpose of together. Of course, this system in some detail design needs to continue improvement.
Keyword: SCM step-motor curtains