请下载论文,论文为word格式,只上传部分查看,如果需要此参考论文,请点击-下载论文,下载资料。
基于STC89C52单片机自动窗帘控制系统摘 要随着社会发展的越来越快,人们生活的越来越好,人们对于自己生活环境的要求越来越高,特别是我们的居住环境,随着生活节奏越来越快,人们想要舒适、快捷、方便的居住环境。现在的房屋多是有很大的落地窗,所以对于窗帘要求也是越来越高。因此,自动窗帘控制系统应运而生。自动窗帘控制系统多种多样。如有声控的、光控的、遥控的。现在的自动窗帘控制系统的核心器件多为单片机,动力部分多种多样,有直流电机和步进电机等。
本次设计也是采用单片机控制步进电机来达到窗帘的关闭和打开,采用步进电机是因为步进电机能够精确速度及转动距离。单片机使用STC89C52,编写程序来控制步进电机的转动方向和速度。本次设计我准备采用两种方式来控制步进电机,第一种是用按钮来控制,这种方式方便。第二种是使用定时来控制电机的转动。
关键词:单片机,步进电机,自动窗帘 BASED ON STC89C52 MICROCONTROLLER'S AUTOMATIC CURTAIN CONTROL SYSTEMABSTRACTWith the rapid development of society,people's lives getting better,People for life environmental requirements will be more and more high especially living environment. The rhythm of people's living is becoming more and more quickly,so people want to comfortable,fast and convenient living environment. Now our houses have large French window,so our requirements of the curtain is becoming more and more high. So automatic curtain arises at the historic moment . Automatic curtain control system is varied,such as voice controlling、light controlling、Remote control. Now the automatic curtain controlling system as the core component is generally Microcontroller ,the motor is varied,such as Stepping motor、DC motor.
The design also used Microcontroller control stepping motor to open curtain or close curtain. Using Stepping motor is because that Stepping motor can exactly control working time and distance. Microcontroller is STC89C52. Programming controls Stepping motor's direction and instance. The design used two ways to control stepping motor working,one controls uses button,another uses timing controlled.
KEY WORDS: Microcontroller,Automatic curtain,Stepping motor目 录前 言1第1章 单片机智能控制概述41.1单片机智能控制发展41.2自动窗帘控制系统概述61.3自动窗帘控制系统设计概述7第2章 自动窗帘控制系统102.1控制系统概述102.2控制模块102.3显示模块112.4执行模块13第3章 自动窗帘控制系统硬件163.1单片机概述163.1.1 STC89C52 单片机概述173.1.2 STC89C52 系列单片机的内部结构173.1.3单片机复位电路193.1.4单片机最小系统203.2步进电机213.2.1步进电机工作原理213.2.2步进电机驱动电路213.3 LED显示器223.3.1 LED显示原理223.3.2数码管的驱动方式24第4章 自动窗帘控制系统仿真与调试254.1 Proteus及其功能概述254.2 Keil概述264.3自动窗帘控制系统仿真与调试274.4流程图28结 论31谢 辞32参考文献33