基于STM32的环境监测系统

 2022-01-18 12:01

论文总字数:20549字

目 录

1 绪论.....................................................1

1.1课题研究的目的意义......................................................1

1.2国内外研究进展..........................................................1

1.3本文主要内容............................................................2

2 系统方案与系统设计.......................................3

2.1系统方案分析............................................................3

2.1.1处理器方案分析....................................................3

2.1.2电源管理方案分析..................................................3

2.1.3液晶显示屏方案分析................................................3

2.1.4 DHT11温湿度检测方案分析..........................................3

2.1.5 PM2.5浓度测试方案分析............................................3

2.1.6 蜂鸣器方案分析 ...................................................4

2.2系统设计方案............................................................4

3 硬件电路设计.............................................4

3.1处理器模块..............................................................4

3.1.1 处理器芯片STM32F103C8T6..........................................4

3.1.2晶振模块..........................................................5

3.2温湿度传感模块..........................................................6

3.3 PM2.5传感器模块........................................................6

3.3.1 PM2.5工作原理....................................................6

3.3.2光学灰尘传感器....................................................7

3.4电源传感模块............................................................8

3.5显示电路模块............................................................9

3.5.1显示电路设计......................................................9

3.5.2 LCD1602介绍......................................................9

3.6按键模块...............................................................11

3.7报警模块...............................................................11

4 软件程序设计...........................................13

4.1软件设计方案分析.......................................................13

4.1.1开发环境方案分析.................................................13

4.1.2程序设计方案分析.................................................13

4.2系统总流程图...........................................................14

4.3按键模块程序设计.......................................................15

4.4显示模块程序设计.......................................................15

4.5基于状态机的按键消抖算法...............................................16

4.6报警模块程序设计.......................................................18

4.7温湿度模块程序设计.....................................................19

5 系统调试及分析..........................................19

5.1 硬件的检测............................................................19

5.2 软件硬件整体调试......................................................22

6 总结与展望..............................................22

参考文献..................................................23

附录......................................................25

基于STM32的环境监测系统

孟庆华

Abstract:Environmental monitoring system can simultaneously monitor a variety of environmental parameters which possesses a relatively good market development prospects and high technical value. Based on the fact that most of the traditional environmental monitors are poorly mobile, bulky and inconvenient to operate in harsh environments, this paper designs an environment monitoring system based on STM32. The system consists of SCM processing module, PM2.5 monitoring module, temperature and humidity monitoring module, sound and light alarm module, liquid crystal display module and power module and other components. The system is based on STM32 microcontroller for data processing core and achieves the automatic measurement of environmental variables. The system chooses the PM2.5 concentration of the GJB10 as measurement environment, selects the temperature and humidity as the DHT11 measurement environment, and displays the data in real time on the display LCD1602 for the user to read. The system is debugged to monitor the parameters of the environment in real time, and it’s is easy to use, at the same time,it’s meanful for tourism, agriculture.

Keywords: Temperature and humidity; PM2.5;STM32;Liquid crystal display.

1 绪论

1.1课题研究的目的和意义

随着科技的发展,人们的生活品质得到显著的提高,因此人们已经从当初的温饱问题转移到如何能够更加方便、快捷的生活上来。很显然,本设计能够在很大程度上方便人们的生活,提高人们的生活质量,符合当今人们的要求。

当今的时代,科技的发展极其的迅速,生活中越来越多的地方都能看到科技的身影,而在大学校园的我们则能够更加深刻的体会到这些,这也更加坚定了我们要将一直以来所学的知识更加合适合理的运用到生活当中去,并通过这些去掌握系统设计的具体的操作、流程。本次设计主要由PM2.5检测模块、温湿度模块等部分组成,在具体的实践操作中,我们希望可以提高自己的动手操作能力和团队协作能力。而在这具体的过程当中,我们也可以更好的将理论运用于实践,不再是以往的纸上谈兵,毕竟纸上得来终觉浅。很多的时候我们并不能很好的一次性完成既定的目标,而这则也是我们这次设计的目的之一,那就是培养自己坚持的好习惯。将自己投身于社会主义建设当中去,为祖国的社会主义建设添砖加瓦。

剩余内容已隐藏,请支付后下载全文,论文总字数:20549字

相关图片展示:

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;