设计说明书
总字数:14000+
摘 要
本论文设计了一种基于STM32F103C8T6单片机的智能室内外晾衣架控制系统。该系统通过多种传感器和功能模块实现了对室内外环境的智能监测和控制。主要功能包括按键切换室内室外模式、人体热释电感应消毒、湿度检测与烘干控制、晾衣架角度自动调整以及雨滴检测与报警。系统还提供了按键设置湿度最大值和OLED显示测量数据的功能。在室内模式下,通过人体热释电感应模块检测周围是否有人。当没有人时,系统自动启动紫外线消毒功能,对衣物进行消毒;当有人进入时,系统自动关闭消毒功能。在室外模式下,消毒功能也自动关闭。此外,系统通过DHT11传感器检测室内湿度值,若湿度超过设定的最大值,系统启动烘干功能。在室外模式下,通过两个光敏电阻检测太阳光最强的方位,并根据光强自动调整晾衣架的角度,通过控制舵机实现。同时,系统配备触发式雨滴检测模块,检测是否下雨。如果下雨,系统每隔1分钟进行声光报警,直到按键切换成室内模式。用户可以通过按键设置湿度最大值,以满足不同需求。系统使用OLED显示各项测量数据,方便用户实时监测环境参数。
通过实验验证,本设计的智能室内外控制系统具有稳定可靠的性能,能够智能化地控制室内外环境,并提供方便的操作界面和数据显示。未来的工作可以进一步优化系统的功能和性能,扩展更多的智能化控制选项,以满足不断变化的用户需求。。
关键词:智能控制系统;室内外模式切换;人体热释电感应;湿度检测与控制;晾衣架
ABSTRACT
This paper presents the design of an intelligent indoor-outdoor control system based on the STM32F103C8T6 microcontroller. The system employs various sensors and functional modules to enable intelligent monitoring and control of indoor and outdoor environments. The key functionalities include mode switching between indoor and outdoor, human body pyroelectric sensing for disinfection, humidity detection and drying control, automatic adjustment of clothesline angle, and raindrop detection with alarm. The system also incorporates features such as setting maximum humidity value through buttons and displaying measurement data on an OLED screen.In the indoor mode, the system utilizes a human body pyroelectric sensor to detect the presence of individuals. When no one is detected, the system automatically activates the ultraviolet disinfection function for clothes. Conversely, when someone enters, the disinfection function is automatically disabled. In the outdoor mode, the disinfection function remains inactive. Additionally, the system employs a DHT11 sensor to monitor indoor humidity. If the humidity exceeds the set maximum value, the system initiates the drying function. In the outdoor mode, two photosensitive resistors are used to detect the strongest sunlight direction, and the clothesline angle is adjusted accordingly using a servo motor. Moreover, the system is equipped with a raindrop detection module to determine rainfall. If rain is detected, the system triggers an audio-visual alarm every minute until the mode is switched to indoor.Users can conveniently set the maximum humidity value using buttons to cater to their specific requirements. The system provides real-time monitoring of environmental parameters by displaying measurement data on an OLED screen.
Experimental results demonstrate that the designed intelligent indoor-outdoor control system exhibits stable and reliable performance, enabling intelligent control of indoor and outdoor environments. Future work involves further optimizing the system’s functionalities and performance while expanding the range of intelligent control options to meet evolving user demands.
Keywords: intelligent control system, indoor-outdoor mode switching, human body pyroelectric sensing, humidity detection and control, clothesline angle adjustment
目 录
第1章 引 言
1.1 选题背景及实际意义
1.2 国内外研究现状
1.3 本论文研究目标
第2章 系统设计方案
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 温湿度检测模块方案选择
2.1.3显示模块方案选择
2.2 整体设计方案
第3章 系统硬件电路设计
3.1 主控电路模块
3.1.1 主控芯片介绍
3.1.2 单片机最小系统
3.2 温湿度检测模块
3.3 人体热释电红外感应模块
3.4 光照采集模块
3.5 雨量检测模块
3.6 舵机模块
3.7 OLED显示模块
3.8 继电器模块
3.9 独立按键模块
3.10 声光报警模块
第4章 系统软件程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 舵机模块子流通
4.6 OLED显示流程设计
第五章 实物制作与调试
5.1 实物制作
5.2 整体模块测试
5.3 消毒检测模块测试
5.4 湿度检测模块测试
5.5 光照强度检测实物测试
5.6 雨量检测实物测试
结 论
参考文献
致 谢
附录
附录一: 原理图
附录二:PCB
附录三:程序
购买后可查看具体内容!