燕京理工学院毕业设计(论文)
基于单片机的智能晾衣架控制系统的设计与实现
董阳
通信工程专业 通信1301班 学号130250004
指导教师 李丽芬副教授
摘 要
现在都市的生活越来越忙,很多人都没有时间和精力来管理一些细节上的东西,比如,在合适的阳光温度时间内晾晒衣服。针对这来问题我们开始了研究,通过对智能晾衣架控制系统的设计与实现的不断探究,得到了比较好的设计思路。通过使用DHT11温湿度传感器、光敏电阻等元件,对环境的变化进行检测,然后再将测量数据传递给STC89C51单片机,单片机的核心板再对所测量的温湿度和光线的强弱进行判别,驱使电机进行正转或者反转,达到智能晾晒衣物的目的。在温湿度检测方面使用的是DHT11传感器模块,该模块将测量得到的数据与设定值进行对比,如果湿度超越过设定值,系统会默认回收晾衣架,发送脉冲信号来控制电机收回晾衣架。针对光照强度方面的检测我们选择使用光敏电阻,光照强度的改变会使电阻阻值产生相应的变化,单片机将变化后的阻值与设定值进行对比,如果超过设定值,则控制电机进行转动,使衣架收回,从而实现智能晾衣服的目的。
关键词:智能 STC89C51 DHT11
I
燕京理工学院毕业设计(论文)
Design and Implementation of Intelligent Clothes Hanger Control System Based on Single Chip Microcomputer
Abstract
Now the city life more and more busy, a lot of people do not have the time and energy to manage some of the details, for example, in the appropriate temperature of the sun drying clothes. In order to solve this problem, we started the research, through the intelligent clothes hanger control system design and implementation of continuous research, get a better design ideas. By using the DHT11 temperature and humidity sensor, photosensitive resistance and other components, the change of environment were detected, and then the measurement data are transmitted to the STC89C51 microcontroller core board microcontroller to measure the temperature and humidity and light intensity discrimination, motor driven forward or reverse, achieves the intelligent clothes drying purpose. Used in the detection of the temperature and humidity DHT11 sensor module, the module will be measured data are compared with the set value, if the humidity is beyond the set value, the system will default recovery racks, send pulse signal to control the motor back racks. Similarly, the photosensitive resistor for detecting the light intensity of the light intensity, the changes will cause the resistance change, will change the resistance compared with the set value, if it exceeds the set value, then control the motor to rotate, the clothes hanger to recover, so as to achieve the purpose of intelligent clothes.
Key words: intelligent STC89C51 DHT11
II
燕京理工学院毕业设计(论文)
目 录
前 言 ..................................................... 1 第1章 绪论 ................................................. 2 第1.1节 选题背景 ........................................ 2 第1.2节 研究方法及目的 .................................. 2 第1.3节 研究意义 ........................................ 3 第2章 系统总体设计 ......................................... 4
第2.1节 总系统设计框图 .................................. 4 第2.2节 系统组成概述 .................................... 4 第2.3节 控制系统核心选择 ................................ 4 第2.4节 湿度检测模块选择 ................................ 5 第2.5节 遥控电路设计 .................................... 5 第2.6节 遥控发射模块参数 ................................ 6 第2.7节 光强检测模块选择 ................................ 7 第2.8节 电机模块选择 .................................... 7 第2.9节 系统设计要求 ................................... 8 第3章 控制系统硬件设计 ..................................... 9 第3.1节 单片机的介绍及其工作系统设计 .................... 9 第3.2节 温湿度传感器电路 ............................... 14
III
燕京理工学院毕业设计(论文)
第3.3节 光敏检测电路 ................................... 17 第3.4节 直流电机驱动电路 ............................... 19 第4章 控制系统设计 ........................................ 21 第4.1节 程序流程图 ..................................... 21 第4.2节 程序设计 ....................................... 22 第4.3节 系统初始化 ..................................... 22 第4.4节 温湿度检测 ..................................... 25 第5章 系统整体调试 ........................................ 27 第5.1节 系统仿真演示 ................................... 28 第5.2节 硬件实物的焊接 ................................. 33 结 论 .................................................... 37 附 录 .................................................... 39 参考文献 .................................................... 41 致 谢 .................................................... 42
IV
燕京理工学院毕业设计(论文)
前 言
科技是第一生产力科技的进步推动着人类生活的进步,人们对生活也开始不断的追求智能化,这种形式促使各国也在家具智能方面开始了深入的研究。人工智能化的产生以及运用使人们对家电、照明、窗帘管理控制和防盗报警等智能化方面的研究更进了一步,促使人们生活向全面人工智能化也更近了一步。但是,在各项人工智能的家具中针对晾衣工具这个方面的研究我国并没有得到很大中的重视和研究,甚至可以用没有什么改变来形容,所以其市场研究价值很高,十分利于我们开发研究。
现在在我国大多数普通用户生活中,很少会存在能够随着外界环境改变而硬件自身够功进行变化的智能晾衣架,从而达到自动收缩或者伸展晾衣架的目的。常见的普通晾衣架在实际生活活中并不是很人性化帮助人们生活便利,并且很多常见的问题不能够解决。例如,我们工作不在家时,突然下起雨,在外面晾洗的衣服不能够及时回收而导致重洗;晚上因为加班不能够回家,晾晒的衣服也不能够及时回收造成损失,并且在酷热夏日,我们因为工作繁忙的原因通常会导致把洗好的衣物晾晒在室外一整天,而不能及时收回。假设我们不在家,但是在夏天的正午时候不能够把衣物回收到屋子里,导致衣物暴晒,这样的现象在我们平时的生活中最为常见,所以普通的晾衣架对我们的衣物伤害极大。
虽然在国际上有很多大的厂家对智能晾衣架有一定的研究,但是他们所研究量产的智能晾衣架大都是半智能化的,用户只能经过电路按键等控制方式使衣物达到垂直升降晾晒衣服的目的。基于这一现状我的设计思路是使用DHT11温湿度传感器和光传感器来检测室外的天气温度和光照的情况,然后得到当下天气信息,这些信息再由传感器传输到单片机,单片机再通过脉冲信号使电机进行转动,进而达到智能晒衣物的目的。
1