摘要:智能家居(SmartHome)这个词汇越来越多的出现在我们的视线中。它利用先进的计算机、无线通信技术,融合人们个性化定制的需求,将与家居生活相关的各个子模块控制等完美地结合在一起。随着工业的发展和城市化进程的加快,生活环境尤其是空气质量越来越受到人们的重视。因此空气中有害气体含量的监控,成为智能家居系统的重要组成部分。
本课题旨在帮助人们开发一款性价比高的智能家庭空气监控工具。为了使用和设计上的方便,本课题的各项智能功能实现以STM32F103RBT6单片机为核心处理器,通过硬件与软件设计两部分,实现家庭中的温湿度、PM2.5浓度、一氧化碳、煤气、甲醛等有害气体浓度的检测功能。通过无线通信上传数据至云端存储,让手机APP可以远程实时查看,并实现浓度数据的实时记录、提醒和报警。相关气体的浓度的检测通过传感器来实现。本设计将传感器的输出通过A/D转换电路调整,经单片机的数据处理,传送至液晶显示器显示浓度值。当室内空气状态不健康时,通过LED灯提示报警,并开启风扇模拟改善空气状态。
文章自智能家居的科研成果及现状展开,继而阐述设备系统设计框架、流程及硬件软件设计方案。进而对单片机和各模块原理、设计过程进行展开说明。最后对成品进行调试运行,总结整个设计过程。
关键词:智能家居;STM32单片机;空气监控
Abstract:Smart Home has now become familiar vocabulary. It uses advanced computer and wireless communication technology to fuse the needs of people's personal customization. The family life related to the sub modules, control and so perfect combination. With the development of industry and the acceleration of urbanization, the living environment, especially the air quality, has been paid more and more attention. Therefore, the monitoring of harmful gas content in air has become an important part of smart home system.
The purpose of this project is to help people develop a smart home air monitoring equipment. In order to use the convenience, the intelligent function of this subject is realized by using STM32F103RBT6 micro-controller as the core processor Through hardware and software design two parts, to achieve the family temperature, humidity, PM2.5 concentration, carbon monoxide, gas, formaldehyde and other harmful gas concentration detection function. Upload data to the cloud storage via wireless communications, so that mobile APP can remotely real-time view.he concentration of the gas is passed through the sensor. This design adjusts the output of the sensor through the A/D conversion circuit. After single chip data analysis, LCD
display concentration value。When the indoor air condition is not healthy, the alarm is
prompted by the LED lamp and the fan is turned on to simulate the air condition.
The article starts with the research achievements and status of smart home. Then, the design frame, process and hardware and software design of the equipment system are expounded. Then proceed to explain the principle and the design process of the single chip and each module. Finally, debugging and operation of the finished products. Summarize the whole design process.
Keywords: smart home, STM32 micro-controller, air monitor
目 录
第一章绪论 1
1.1课题背景 1
1.2课题意义 2
1.4课题研究内容与开发流程 4
第二章系统总体方案设计 5
2.1系统需求分析