设计说明书
总字数:18000+
随着智能家居理念的普及与健康生活需求的提升,室内温湿度、光照、CO₂浓度等环境参数的精准监测与管控愈发重要。室内环境参数的异常波动不仅影响居住舒适度,长期过高的 CO₂浓度还可能引发头晕、乏力等健康问题,而传统人工监测方式效率低下且无法实现实时预警。因此,研发一种无线化、智能化的室温环境监控系统十分必要。
本设计提出一种基于 STM32F103C8T6 单片机的 Zigbee 室温环境监控系统,采用主从机架构。从机功能包括:通过 DHT11 检测模块采集温度与湿度数据,借助 5516 光敏电阻获取光照值,通过 SGP30 检测模块监测 CO₂浓度,并通过 Zigbee 模块将各类环境数据传输至主机端;主机功能包括:通过 Zigbee 模块接收从机数据,当检测数据超出设定阈值时启动声光报警,通过 3 个 KEY 按键完成各参数阈值设置,经 OLED 显示屏以 1 位小数精度显示测量数据,同时通过 ESP8266 WIFI 模块将数据远程发送至手机端,支持手机端远程修改各参数阈值。
该室温环境监控系统的作用在于,为室内环境管理提供了无线化、一体化的解决方案。通过主从机协同实现多参数实时监测与远程管控,既能及时预警环境异常,又能灵活适配不同场景的环境需求,为打造舒适、健康的室内环境提供有力支撑。
关键词:Zigbee;STM32F103C8T6;室温监控;多参数检测;远程管控
Zigbee-Based Room Temperature Environment Monitoring System
Abstract
With the popularization of the smart home concept and the improvement of demand for healthy living, the accurate monitoring and control of indoor environmental parameters such as temperature, humidity, light, and CO₂ concentration have become increasingly important. Abnormal fluctuations in indoor environmental parameters not only affect living comfort, but long-term excessive CO₂ concentration may also cause health problems such as dizziness and fatigue. However, the traditional manual monitoring method is inefficient and cannot realize real-time early warning. Therefore, it is very necessary to develop a wireless and intelligent room temperature environment monitoring system.
This design proposes a Zigbee-based room temperature environment monitoring system based on STM32F103C8T6 single-chip microcomputer, adopting a master-slave architecture. The slave functions include: collecting temperature and humidity data through the DHT11 detection module, obtaining light intensity values with the 5516 photoresistor, monitoring CO₂ concentration via the SGP30 detection module, and transmitting various environmental data to the master terminal through the Zigbee module. The master functions include: receiving slave data through the Zigbee module, activating sound and light alarm when the detected data exceeds the set threshold, setting thresholds of various parameters via 3 KEY buttons, displaying measured data with 1 decimal place precision on the OLED display, and remotely sending data to the mobile phone terminal through the ESP8266 WIFI module, supporting remote modification of various parameter thresholds on the mobile phone terminal.
The function of this room temperature environment monitoring system is to provide a wireless and integrated solution for indoor environment management. Through the collaboration of master and slave machines, it realizes real-time monitoring of multiple parameters and remote control, which can not only timely warn of environmental abnormalities but also flexibly adapt to environmental needs of different scenarios, providing strong support for creating a comfortable and healthy indoor environment.
Key words: Zigbee; STM32F103C8T6; Room Temperature Monitoring; Multi-parameter Detection; Remote Control
目 录
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 电源模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 主机系统主流程设计
4.3 从机系统主流程设计
4.4 温湿度检测模块子流程设计
4.55 光照检测模块子流程设计
4.6 SGP30模块子流程设计
4.7 zigbee模块子流程设计
4.8 WiFi模块子流程设计
4.9 OLED显示屏子流程设计
4.10 独立按键子流程设计
4.11 声光报警模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 从机传感器数据采集功能测试
5.3 主从机 Zigbee 无线通信功能测试
5.4 主机显示与阈值设置功能测试
5.5 声光报警功能测试
5.6 WIFI 远程通信与控制功能测试
5.7 系统综合功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!