基于单片机的智能型家居窗帘控制电路的设计--139187758.doc
文本预览下载声明
基于单片机的智能型家居窗帘控制电路的设计
摘 要
本文首先介绍了智能家居的基本知识及其应用前景,接着着重介绍了开发单片机控制的红外线遥控窗帘系统所用到的集成芯片STC89C52、L7805稳压芯片、LCD1602液晶显示屏、DS1302时钟芯片、AT24C02存储芯片、28BYJ_48步进电机、HS0038红外线接收电路等硬件的结构原理。本文采用分块的模式,对整个系统的硬件电路设计进行分析,分别给出了系统方案原理框图、电源电路、显示电路、时钟DS1302电路、外扩存储电路、电机控制电路、红外线接收电路,并对相应电路设计进行了相关的阐述。软件的编写思路也是采用分块的模式,分别写出了LCD1602液晶显示程序、DS1302时钟芯片控制程序、时间调整与定时程序、步进电机控制程序、HS0038红外线解码程序、AT24C02控制程序、光控程序的编写思路,每一模块都画出了其方框图,一目了然。
最后通过仿真调试,时钟,手动开关窗帘等控制方面的设计上基本达到了预期目的。当然,该系统在一些细节的设计上还需要不断的完善和改进。
关键词:STC89C52RC单片机;DS1302时钟芯片;红外遥控;LCD1602;窗帘
Abstract
At first, this paper introduces the basic knowledge of the smart home and its application prospect, and then introduces the development of single-chip microcomputer control of infrared remote control curtain system used by the integrated chip STC89C52, L7805 voltage chip, LCD1602 LCD display, DS1302 clock chip, 28 byj_48 stepper motor,AT24C02 storage chip, HS0038 infrared receiving circuit, etc. hardware structure principle,based on the block model, this paper give an analysis to the hardware circuit design of the whole system.It respectively presents the system principle block diagram, power supply circuit, display circuit, clock DS1302 circuit , outside enlarge storage circuit , motor control circuit, infrared receiving circuit and gives a corresponding explanation of the related circuit design. Writing ideas of software adopt the block pattern too . They write down the compile thoughts of the LCD1602 LCD display program, DS1302 clock chip control procedures, time adjustment and timing, stepper motor control procedures, HS0038 infrared decoding procedures, AT24C02 control procedures . Every module draws the very block diagram ,which is clear at a glance .
Finally,via simulation and debugging ,the design of the control aspects such as the clock , the manual switch curtain has basically reached the expected purpose . Of course , the system requires constant perfection and improvement on some detail designs .
Key words:stc89c52rc singlechi
显示全部