采用STC89C52单片机作为智能晾衣架的运算和控制中心,通过温湿度传感器、光线传感器和雨滴传感器组成的检测电路检测外界环境的变化;通过发光二极管和LCD1602液晶组成的显示电路
摘 要:智能晾衣架可以根据外界环境情况实现自动收放操作,与传统的晾衣架相比,智能晾衣架具有更高效和更便捷等优势,随着科技和生活水平的日益提高,智能晾衣架将逐渐成为智能家居的主导产品之一。
本设计采用STC89C52RC单片机作为智能晾衣架的运算和控制中心,分为智能模式和遥控模式。在智能模式下,单片机通过检测分析光照传感器、湿度传感器和雨滴传感器的信号,进而控制继电器和直流电机来实现晾衣架的收放。在遥控模式下,用户通过按下相应的按键遥控晾衣架进行收放操作。
软件部分使用模块化设计理念,实现了对晾衣架的收放控制,利用发光二极管显示工作模式,LCD1602显示当前环境的温湿度。本设计顺应智能家居发展潮流,具有操作方便、功能多样的特点。
该论文有图14幅,表1个,参考文献10篇。
关键词:STC89C52RC 智能 传感器 LCD1602 遥控
Design of Intelligent Drying Hanger Based on Single Chip Microcomputer
Abstract: Intelligent drying racks can be used according to the external environment to achieve automatic retracting operation, compared with the traditional drying racks, intelligent drying racks with more efficient and more convenient and other advantages, with the technology and living standards are increasing, intelligent drying racks will gradually become Smart home one of the leading products.
The design uses STC89C52RC microcontroller as an intelligent drying rack computing and control center, pided into intelligent mode and remote control mode. In the intelligent mode, the microcontroller through the detection of light sensors, humidity sensors and raindrop sensor signal, and then control the relay and DC motor to achieve the drying racks retractable. In the remote control mode, the user by pressing the corresponding button remote control rack for retracting operation.
Software part of the use of modular design concept, to achieve the drying rack of the retractable control, the use of light-emitting diode display mode of operation, LCD1602 show the current environment temperature and humidity. The design conforms to the trend of intelligent home development, with easy operation, versatile features.
The paper has Figure 14, Table 1, reference 10 articles.
Key Words: STC89C52RC Intelligent Sensor LCD1602 Remote control
目 录
摘要Ⅰ
Abstract-Ⅱ
目录Ⅲ
1 绪论1
1.1选题背景与意义1
1.2主要任务-2
2 系统总体方案3
2.1设计思路-3
2.2工作原理-3
3 系统硬件设计4
3.1主控芯片-4
3.2单片机最小系统4
3.3遥控模块-5
3.4光线检测模块-7
3.5电机控制模块-7
3.6模式显示与温湿度显示模块-8
3.7雨滴检测模块-9
3.8温湿度检测模块-10
4 系统软件设计-10
4.1软件介绍11
4.2程序设计13
4.3系统程序流程图-13
5 结论-14
6 毕业设计体会-15
参考文献16
致谢17
1 绪论
随着社会生产力的不断进步,人们的生活水平也在不断提高,现如今,越来越多的人追求更高的生活质量。每个家庭都用到晾衣架,所以晾衣架当然也需要满足用户更多样化的需求。晾衣架的作用显而易见,就是用来晾晒衣物的,不过传统的晾衣架需要手动才能收放,对于生活节奏越来越快的人们而言会浪费不少时间;于是电动晾衣架在最近一段时间内迅速发展,并普遍应用于高档小区、星级酒店等场所,只要用户按下相应的按键,晾衣架就会自动收放,在节省了时间的同时也带来了更方便的操作体验。在此次设计中,我主要的研究目的是使用单片机根据环境湿度、光线强度以及是否下雨来智能控制晾衣架的收放,同时该晾衣架还具有无线遥控的功能。