设计说明书
总字数:16000+
摘要
随着人们对生活环境舒适度与卫生安全要求的提升,温湿度调节与空间消毒成为日常环境管理的重要需求。无论是家庭、办公场所还是小型公共空间,温湿度过高易滋生细菌,而人工消毒存在操作繁琐、易遗漏、无法实时响应等问题,若不能及时处理,可能影响居住或使用体验,甚至威胁健康。因此,研发一种能自动监测温湿度、智能调节并实现无人时自动消毒的系统具有重要现实意义。
本设计提出了一种基于 STM32F103C8T6 单片机的温湿度自动消毒系统。系统主要功能包括:通过 DHT11 温湿度传感器检测环境温度与湿度,当温度高于设置最大值时,单片机控制继电器驱动风扇进行降温;当湿度高于设置最大值时,同样通过继电器控制风扇进行除湿;借助 D203S 人体热释电感应模块检测环境是否有人,无人时继电器控制消毒灯自动打开,有人时消毒灯自动熄灭;用户可通过按键设置温度、湿度的最大值;通过 OLED 显示屏实时显示测量得到的温湿度数据及系统运行状态;同时,系统通过 ESP8266-12F WIFI 模块将温湿度数据发送到手机端,手机端也可远程设置温度、湿度最大值,并能远程控制风扇与紫外线消毒灯的开关。
该温湿度自动消毒系统的作用在于,为用户提供了一种集环境监测、自动调节、智能消毒于一体的便捷解决方案。通过实时监测与自动响应,既能维持环境温湿度在适宜范围,又能在无人时高效消毒,减少人工操作成本,保障环境舒适度与卫生安全,提升生活与工作质量。
关键词:STM32F103C8T6;温湿度;DHT11;D203S;WIFI通信
Design of Automatic Disinfection System Based on Single Chip Microcomputer Control of Temperature and Humidity
Abstract
With the increasing demand for comfortable living environment and hygiene safety, temperature and humidity regulation and space disinfection have become important requirements for daily environmental management. Whether it is a home, office, or small public space, high temperature and humidity can easily breed bacteria, while manual disinfection has problems such as cumbersome operation, easy omission, and inability to respond in real time. If not handled in a timely manner, it may affect the living or use experience, and even threaten health. Therefore, developing a system that can automatically monitor temperature and humidity, intelligently adjust, and achieve automatic disinfection when unmanned is of great practical significance.
This design proposes a temperature and humidity automatic disinfection system based on STM32F103C8T6 microcontroller. The main functions of the system include: detecting the ambient temperature and humidity through the DHT11 temperature and humidity sensor. When the temperature exceeds the set maximum value, the microcontroller controls the relay to drive the fan for cooling; When the humidity is higher than the set maximum value, the fan is also controlled by a relay for dehumidification; Using the D203S human body pyroelectric induction module to detect whether there are people in the environment, the relay controls the disinfection lamp to automatically turn on when there are no people, and automatically turns off when there are people; Users can set the maximum values of temperature and humidity through buttons; Real time display of temperature and humidity data and system operation status obtained through OLED display screen; At the same time, the system sends temperature and humidity data to the mobile phone through the ESP8266-12F WIFI module. The mobile phone can also remotely set the maximum temperature and humidity values, and remotely control the switch of the fan and ultraviolet disinfection lamp.
The function of this temperature and humidity automatic disinfection system is to provide users with a convenient solution that integrates environmental monitoring, automatic adjustment, and intelligent disinfection. Through real-time monitoring and automatic response, the environment temperature and humidity can be maintained within an appropriate range, and efficient disinfection can be carried out when no one is present, reducing manual operation costs, ensuring environmental comfort and hygiene safety, and improving the quality of life and work.
Keywords:STM32F103C8T6; Temperature and humidity; DHT11; D203S; WIFI communication
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 温湿度检测模块电路设计
3.4 人体感应模块电路设计
3.5 继电器控制模块电路设计
3.6 按键模块电路设计
3.7 OLED 显示模块电路设计
3.8 WIFI 通信模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 人体热释电感应模块子流程设计
4.6 OLED显示流程设计
4.7 WiFi模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 温湿度检测与自动调节功能测试
5.3 人体感应与消毒灯自动控制功能测试
5.4 按键设置与 OLED 显示功能测试
5.5 WIFI 通信与远程控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!