基于单片机控制的智能窗帘设计论文.doc
文本预览下载声明
目录
摘要………………………………………………….…………………………...….1
Abstract………………………………………………………………….2
绪论………………………………………………...................3
课题背景…………………………………………………….3
课题的研究工作…………………………………………….3
系统设计…………………………………………..…………4
2.1 系统方案确定……………………………………………….4
2.2 核心芯片结构原理介绍…………………………………….5
2.2.1 中央控制器——STC89C52RC…………...…………5
2.2.2 红外线接收器HS0038………………………………6
2.2.3 液晶显示LCD1602…………………………………6
2.2.4 DS18B20温度传感器………………………………11
2.3 硬件电路原理设计………………………………...………13
2.3.1 显示电路………………….……………..………….13
2.3.2 DS18B20温度传感器电路….………………………14
2.3.3蜂鸣器电路…………………………….……………14
2.3.4 红外线接收电路………………..………..…………15
2.3.5 电机执行电路……...……………………….………15
2.3.6 窗帘框架构造设计…………………………………15
2.4 软件设计……………………………….…………………16
2.4.1 红外解码……………………………………………16
2.4.2 LCD1602显示程序…………………………………18
2.4.3 DS18B20温度传感器程序…………………………19
2.4.4 步进电机控制程序…………………………………25
调试………………………………………………...………..27
总结……………………………………………………….....28
参考文献……………………………………………………....29
附录:…………………………………………………………30
原理图:……………………………………………………………...30
源程序:……………………………………………………………31
摘要
本文首先介绍了智能家居的基本知识及其应用前景,进而阐明了开发作为智能家居中一个很重要部分——红外线遥控自动窗帘的意义。随后着重介绍了开发单片机控制的红外线遥控窗帘系统所用到的集成芯片STC89C52、1602液晶显示、DS18B20温度传感器、uln2003、红外线发射接收器等硬件的结构原理。本文采用分块的模式,对整个系统的硬件电路设计进行分析,分别给出了系统总体框图、红外线接收电路、步进电机控制电路、蜂鸣电路、LCD液晶显示电路、温度检测电路、遥控控制程序的编写思路,每一个模块都画出了其方框图,看起来一目了然。
最后通过实物调试,时钟显示、温度检测、红外控制窗帘的开合程度、还可以进行定时自动开闭窗帘等方面的设计基本上达到了预期目的。当然,系统在一些细节的设计上还需要不断的完善和改进。
关键词:单片机,红外线,定时控制,温度检测,步进电机,窗帘。
Abstract
This paper first introduces the basic knowledge and its application prospects for the smart home, and then clarify the meaning of development as a smart home is a very important part - infrared remote control, automatic curtain. Subsequently focuses on the integrated chip used in the development of microprocessor controlled infrared remote control curtain system STC89C52, 1602 LCD, the structural principle of DS18B20 temperature sensor, uln2003, infrared transmitter receiver and other hardware. In this paper, the block mode to analyze the entire system of hardware circuit design, gives the overall system
显示全部