基于单片机的智能窗帘设计(附电路原理图)(任务书,开题报告,外文翻译,论文14000字)
摘 要
自动控制技术是现代电子科学技术的重要组成部分,对现代家居生活有着重要的影响作用,推动了生活水平的提高。目前,人们在家庭使用的窗帘绝大多数都是靠拉动来实现开闭的,这样的窗帘在操作方面也会不那么方便,比较费时费力。而本设计中的智能窗帘采用了STC89C52芯片,加上了外部时钟芯片、步进电机、电机驱动、温度采集芯片、光敏电阻等,将这些电路模块结合在一起,设计了这样一个智能窗帘控制系统,可以实现窗帘的自动开关,同时,还设计了手动按键开关窗帘和遥控按键开关窗帘功能,有效地实现了智能控制的多样化、灵活性。单片机需要通过编程来对各个模块实现有效的控制,所以本系统的设计应用了适量的编程,同时在系统设计前期,需要用到Protiel和Protues来分别绘制原理图和仿真图。
自动窗帘的设计由多个模块构成,其中包括单片机最小系统、LCD1602液晶显示模块、电源模块、步进电机控制模块、DS1302时钟模块、键盘模块、光照检测模块等模块组成。着重区去研究了窗帘自动控制系统需要实现的功能、需要的硬件以及软件编程需求,用户在使用这个系统时,可以方便快捷的控制窗帘开启的幅度大小,有效控制室内光线强弱;同时能够实现光强检测、设置定时来控制窗帘自动开关。具有温度测量和报警功能。
关键字:单片机STC89C52;自动化;智能窗帘;
ABSTRACT
Automatic control technology is an important part of modern electronic science and technology, has an important influence on modern home life, and promotes the improvement of living standard. At present, most of the curtains used by the people in the home are closed by hand. This kind of curtains will be time consuming in terms of production and will be less convenient in terms of operation, and will be time consuming and laborious. The intelligent curtains in the design of the STC89C52 chip, coupled with the external clock chip, stepper motor, motor drive, temperature acquisition chip, photoresistor, etc., these circuit modules are well together, the design of such a smart Curtain control system, you can achieve automatic switching curtains, at the same time, also focused on the design of the manual button switch curtains and remote control button switch curtain function, effectively achieve the intelligent control of the diversification and flexibility. SCM needs to be programmed to achieve effective control of each module, so the system design and application of a large number of programming, and in the early system design, the need to use Protiel and Protues to draw the schematic and simulation map.
The design of the automatic curtain is composed of several modules, including the minimum system of the MCU, the LCD1602 liquid crystal display module, the power module, the stepping motor control module, the DS1302 clock module, the keyboard module and the light detection module. Focusing on the area to study, discussed the curtain automatic control system needs to achieve the function, the need for hardware and software programming needs, users in the use of this system, you can quickly and easily control the size of the curtain opening, effective control of indoor light intensity; Can achieve light intensity detection, set the timing to control the curtain automatic switch. With temperature measurement and alarm function.
Key words: single chip STC89C52; automation; intelligent curtains;
目 录
摘 要 I
ABSTRACT II
目 录 III
第一章 绪论 1
1.1课题研究背景及意义 1
1.2设计思想及基本功能 2
1.3基本内容安排 2
第二章 智能窗帘的方案设计 4
2.1智能窗帘的整体方案 4
2.1.1总体结构设计 4
2.1.2 系统框图 5
2.2 不同模块的方案设计 6
2.2.1单片机芯片设计与论证 6
2.2.2按键控制模块设计与论证 6
2.2.3时钟模块设计与论证 7
2.2.4温度采集模块设计与论证 7
2.2.5显示模块模块设计与论证 7
2.3 本章小结 8
第三章 智能窗帘硬件电路设计 9
3.1 STC89C52单片机最小系统 9
3.1.1 晶振电路 10
3.1.2 复位电路 10
3.2时钟模块电路设计 11
3.3温度检测器模块电路设计 11
3.4键盘模块电路设计 12
3.5液晶显示电路设计 12
3.6光敏传感器电路设计 13
3.7步进电机控制电路设计 14
3.8 蜂鸣器报警电路的设计 14
3.9 电源电路设计 15
3.10 本章小结 15
第四章 智能窗帘软件设计 17
4.1 软件构成框图 17
4.2 主程序流程图 18
4.3 子程序流程图 19
4.3.1初始化程序流程图 19
4.3.2温度检测程序流程图 20
4.3.3 A/D转换流程图 21
4.3.4 显示程序流程图 22
4.3.5 按键程序流程图 22
4.3.6 电机驱动程序流程图 23
4.3.7 时间设置程序流程图 24
4.4 本章小结 25
第五章 仿真与实物调试 26
5.1 PROTUES仿真 26
5.2 实物调试 28
5.3 本章小结 31
结语 32
参 考 文 献 33
致谢 35
附录 电路原理图 36
|