设计说明书
总字数:15000+
摘要
随着人们生活品质的提升,室内环境湿度的适宜性对人体健康和生活舒适度的影响愈发显著。传统的加湿器多为手动控制,不仅依赖人为判断湿度是否适宜,存在响应滞后的问题,而且无法自动监测自身水位和水质状况,容易出现干烧或使用浑浊水源加湿的情况,难以满足智能化生活的需求。
基于 STM32F103C8T6 单片机的智能加湿器,整合了 DHT11 温湿度检测模块、YW-J 水位监测模块、TSW-30 浑浊度监测模块、3 个独立按键、OLED 显示屏及声光报警装置,实现了室内湿度的自动调节与加湿器自身状态的智能监控。系统核心功能包括:通过 DHT11 实时监测环境温湿度,当湿度小于最小值,且水位大于最小值、浑浊度小于最大值时,自动开启加湿功能,当湿度大于最大值时停止加湿;借助 YW-J 水位监测模块监测加湿器水位,当水位小于最小值时,停止加湿并进行声光报警;利用 TSW-30 浑浊度监测模块检测水质,当浑浊度大于最大值时,进行声光报警提醒;支持通过 3 个独立按键设置湿度的最小值和最大值、浑浊度的最大值;通过 OLED 显示屏实时显示温湿度、水位、浑浊度等测量数据及设备运行状态。
该系统的实现,有效提升了加湿器的智能化水平,实现了湿度的自动调节与设备安全运行的双重保障,为用户营造了舒适健康的室内环境,同时为同类智能家电设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;智能加湿器;温湿度检测;水位监测;浑浊度监测
ABSTRACT
With the improvement of people’s living quality, the suitability of indoor environmental humidity has an increasingly significant impact on human health and living comfort. Traditional humidifiers are mostly manually controlled, which not only rely on human judgment to determine whether the humidity is appropriate, with the problem of delayed response, but also cannot automatically monitor their own water level and water quality, easily leading to dry burning or humidification with turbid water sources, which is difficult to meet the needs of intelligent life.
The intelligent humidifier based on STM32F103C8T6 microcontroller integrates DHT11 temperature and humidity detection module, YW-J water level monitoring module, TSW-30 turbidity monitoring module, 3 independent buttons, OLED display and acousto-optic alarm device, realizing automatic adjustment of indoor humidity and intelligent monitoring of the humidifier’s own state. The core functions of the system include: real-time monitoring of environmental temperature and humidity through DHT11, when the humidity is less than the minimum value, and the water level is greater than the minimum value and the turbidity is less than the maximum value, the humidification function is automatically turned on, and when the humidity is greater than the maximum value, the humidification is stopped; monitoring the water level of the humidifier through YW-J water level monitoring module, when the water level is less than the minimum value, the humidification is stopped and acousto-optic alarm is given; using TSW-30 turbidity monitoring module to detect water quality, when the turbidity is greater than the maximum value, acousto-optic alarm is given; supporting the setting of the minimum and maximum humidity values and the maximum turbidity value through 3 independent buttons; real-time display of temperature, humidity, water level, turbidity and other measurement data and equipment operation status through OLED display.
The implementation of this system effectively improves the intelligence level of the humidifier, realizes the dual guarantee of automatic humidity adjustment and safe operation of the equipment, creates a comfortable and healthy indoor environment for users, and also provides a reference for the research and development of similar intelligent household appliances, with high practical application value.
Keywords:STM32F103C8T6; Intelligent humidifier; Temperature and humidity detection; Water level monitoring; Turbidity monitoring
目录
第 1 章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 温湿度检测模块选择
2.1.3 水位监测模块选择
2.1.4 浑浊度监测模块选择
2.1.5 显示模块选择
2.1.6 按键模块选择
2.1.7 声光报警模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 DHT11 温湿度检测模块电路
3.3 YW-J 水位监测模块电路
3.4 TSW-30 浑浊度监测模块电路
3.5 OLED 显示模块电路
3.6 按键模块电路
3.7 加湿执行与报警电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 温湿度检测模块子流程设计
4.6 ADC模数转换子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 DHT11 温湿度检测模块功能测试
5.3 YW-J 水位监测模块功能测试
5.4 TSW-30 浑浊度监测模块功能测试
5.5 按键设置与显示功能测试
5.6 声光报警模块功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!