- 1、本文档共37页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于STC89C52单片机自动窗帘控制系统
摘 要
随着社会发展的越来越快,人们生活的越来越好,人们对于自己生活环境的要求越来越高,特别是我们的居住环境,随着生活节奏越来越快,人们想要舒适、快捷、方便的居住环境。现在的房屋多是有很大的落地窗,所以对于窗帘要求也是越来越高。因此,自动窗帘控制系统应运而生。自动窗帘控制系统多种多样。如有声控的、光控的、遥控的。现在的自动窗帘控制系统的核心器件多为单片机,动力部分多种多样,有直流电机和步进电机等。
本次设计也是采用单片机控制步进电机来达到窗帘的关闭和打开,采用步进电机是因为步进电机能够精确速度及转动距离。单片机使用STC89C52,编写程序来控制步进电机的转动方向和速度。本次设计我准备采用两种方式来控制步进电机,第一种是用按钮来控制,这种方式方便。第二种是使用定时来控制电机的转动。
关键词:单片机,步进电机,自动窗帘
BASED ON STC89C52 MICROCONTROLLERS AUTOMATIC CURTAIN CONTROL SYSTEM
ABSTRACT
With the rapid development of society,peoples lives getting better,People for life environmental requirements will be more and more highspecially living environment. The rhythm of peoples 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 motors 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章 单片机智能控制概述 4
1.1单片机智能控制发展 4
1.2自动窗帘控制系统概述 6
1.3自动窗帘控制系统设计概述 7
第2章 自动窗帘控制系统 10
2.1控制系统概述 10
2.2控制模块 10
2.3显示模块 11
2.4执行模块 13
第3章 自动窗帘控制系统硬件 16
3.1单片机概述 16
3.1.1 STC89C52 单片机概述 17
3.1.2 STC89C52 系列单片机的内部结构 17
3.1.3单片机复位电路 19
3.1.4单片机最小系统 20
3.2步进电机 21
3.2.1步进电机工作原理 21
3.2.2步进电机驱动电路 21
3.3 LED显示器 22
3.3.1 LED显示原理 22
3.3.2数码管的驱动方式 24
第4章 自动窗帘控制系统仿真与调
文档评论(0)