设计说明书
总字数:17000+
摘要
随着人们对健康生活关注度的不断提升和对室内空气质量要求的日益提高,精准、便捷的空气质量检测成为保障居住环境安全的关键环节。传统的空气质量检测方式不仅设备庞大、不便携带,检测参数单一,还依赖人工读取数据,难以实时掌握环境质量变化,难以满足家庭、办公等场景的即时检测需求。
基于 STM32F103C8T6 单片机的便携空气质量检测系统,整合了 DHT11 温湿度检测模块、PM2.5 粉尘检测模块、甲醛检测模块、按键、OLED 液晶显示屏、WiFi 模块等硬件,实现了多项核心功能:通过各类检测模块分别检测环境温湿度、PM2.5 浓度和甲醛浓度;当甲醛或 PM2.5 浓度超过设置的最大值时,自动控制窗户打开;通过按键可设置甲醛和 PM2.5 浓度的最大值;OLED 液晶显示屏实时显示各项检测数据;借助 WiFi 模块,手机端可远程控制窗户开关、设置参数及定时开关窗户的时间。
该系统的实现,有效提升了空气质量检测的便携性和智能化水平,实现了对空气质量的实时监测与自动调控,为家庭、办公等场景提供了高效、可靠的空气质量保障方案,同时也为便携智能检测设备的研发提供了有益参考,具有一定的实际应用价值。
关键词:STM32F103C8T6;便携空气质量检测系统;物联网;多参数检测;远程控制
ABSTRACT
With the increasing attention to healthy living and the growing demand for indoor air quality, accurate and portable air quality detection has become a key link in ensuring the safety of living environments. Traditional air quality detection methods not only involve bulky and inconvenient equipment with single detection parameters, but also rely on manual data reading, making it difficult to grasp changes in environmental quality in real time and meet the immediate detection needs of home, office and other scenarios.
The portable air quality detection system based on STM32F103C8T6 single-chip microcomputer integrates hardware such as DHT11 temperature and humidity detection module, PM2.5 dust detection module, formaldehyde detection module, buttons, OLED liquid crystal display, and WiFi module, and realizes a number of core functions: detecting environmental temperature and humidity, PM2.5 concentration and formaldehyde concentration through various detection modules respectively; automatically controlling the window to open when the formaldehyde or PM2.5 concentration exceeds the set maximum value; setting the maximum value of formaldehyde and PM2.5 concentration through buttons; the OLED liquid crystal display showing all detection data in real time; with the help of the WiFi module, the mobile phone terminal can remotely control the opening and closing of the window, set parameters and set the time for 定时开关窗户.
The realization of this system effectively improves the portability and intelligence level of air quality detection, realizes real-time monitoring and automatic regulation of air quality, provides an efficient and reliable air quality guarantee scheme for home, office and other scenarios, and also provides a useful reference for the research and development of portable intelligent detection equipment, which has certain practical application value.
Keywords:STM32F103C8T6; Portable air quality detection system; Internet of Things; Multi-parameter detection; Remote control
目录
第 1 章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 温湿度检测模块选择
2.1.3 PM2.5 检测模块选择
2.1.4 甲醛检测模块选择
2.1.5 显示模块选择
2.1.6 步进电机及驱动模块选择
2.1.7 WiFi 模块选择
2.1.8 按键模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温湿度检测模块电路
3.3 PM2.5 检测模块电路
3.4 甲醛检测模块电路
3.5 步进电机及驱动模块电路
3.6 显示模块电路
3.7 WiFi 模块电路
3.8 按键模块电路
第4章系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 温湿度检测模块子流程
4.5 OLED显示流程设计
4.6 WiFi模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温湿度检测模块功能测试
5.3 PM2.5 检测模块功能测试
5.4 甲醛检测模块功能测试
5.5 步进电机控制功能测试
5.6 按键与显示功能测试
5.7 无线传输功能测试
5.8 定时控制功能测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!