基于STM32的小型环境监测系统设计
基于STM32的小型环境监测系统设计(论文10000字)
摘要:纵观当今的整个社会,经济、生产力急剧地发展,人们的生活和生产从各个方面来看,都离开不科学技术的应用了。诸如,温度、湿度、光照度、空气粉尘含量等参数的准确检测成了人们生活质量优的保证。针对上述测量需要,本文研究并制作了一个智能化探测空气中温度、湿度、光照度以及粉尘含量的探测系统,选用STM32单片机为主控芯片,同时选用了DTH11,BH1750与ZPH01-PM2.5传感器分别完成温湿度、光照度与粉尘含量的检测。根据单个模块具体工作原理,研究并制作了硬件电路来实现相关数据的采集;对每个单一的模块完成了软件代码的编写过程;最后,通过研究和制作的采集系统进行了相关数据的采集测试,验证了系统实用性。本文设计的系统价格低廉,实用性强,有很大的应用前景。
关键词:DTH11传感器; ZPH01-PM2.5传感器; BH1750传感器;STM32单片机;
Small environment monitoring system based on STM32
Abstract:Throughout today's society as a whole, the economy and the productive forces develop rapidly, people's lives and production are in all respects, leaving the application of unscientific technology. Such as temperature, humidity, light intensity, air dust content and other parameters of the accurate detection of people's quality of life to ensure that the quality. In view of the above measurement needs, this paper has studied and produced a intelligent detection of air temperature, humidity, light intensity and dust content of the detection system, the choice of STM32 microcontroller for the master chip, while the choice of DTH11, BH1750 and ZPH01-PM2.5 sensors were Complete the temperature and humidity, light intensity and dust content detection. According to the specific working principle of a single module, the hardware circuit is researched and made to realize the collection of relevant data. The preparation of the software code is completed for each single module. Finally, the relevant data collection test is carried out through the research and production acquisition system , Verify the system practicality. The design of this system is cheap, practical, and has great application prospect. [来源:http://www.doc163.com]
Keywords:BH1750 sensor;DTH11 sensor;ZPH01-PM2.5 sensor; STM32 microcomputer;
目 录
1引言 1
1.1研究背景及意义 1
1.2国内外研究现状 2
1.3本论文的主要工作 2
2系统总体方案设计 3
2.1系统的总体功能 3
2.2总体设计方案 3
3系统硬件设计 4
3.1 STM32主控制模块 4
3.2温湿度采集模块 6
3.3光照强度采集模块 9
3.4PM2.5 检测模块 11
3.5 OLED显示屏模块 14
4系统软件设计 15
4.1开发环境介绍 15
4.2系统主程序设计 15
4.3温湿度模块程序设计 16
4.4光照度模块程序设计 17
4.5 pm2.5模块程序设计 18
5系统调试 19
6总结 20
参考文献 22
致谢 23 [资料来源:https://www.doc163.com]