摘 要
随着无线局域网技术的快速发展,无线终端已经融入了我们的生活,无论是智能手机还是笔记本,WiFi功能几乎是必不可少的。伴随着电子产品的快速发展,户外环境检测的应用也越来越广泛,不再局限于军事,转向民用发展。更加使得户外环境检测技术的到极大的发展。数字信号有着良好的抗材料本身干扰和环境干扰的能力,所以,现在市面上的模拟信号产品逐渐被数字信号产品代替,并且使得测量产品越来越方便。根据市场调查,虽然市场上有很多关于环境监测系统测试仪,但大多数是应用于空气,湖泊,海洋,河流等大型检测系统,关于检测环境的小型简单方便使用的检测系统。本文开发并实现基于一种嵌入式开发平台的 STM32 的 WiFi 模块,结合以上物联网新型概念,实现用户通过网络对环境的实时监控。该系统可以使用户能够对想要知道的情况进行实时的掌握以及控制。通过各种传感器获取家庭内信息(温湿度信息、光照信息、PM2.5),用户在Android界面上可以对这些信息进行掌控。
关键词:物联网;环境监测;STM32;传感器;WIFI
Abstract
With the rapid development of WLAN technology,the wireless terminal has been integrated into our life,whether it is a smartphone or a notebook,WiFi function is almost essential. With the rapid development of electronic products,the application of outdoor environmental detection is becoming more and more extensive,no longer limited to military,to civilian development. The development of outdoor environment detection technology has been greatly improved. Digital signal has a good ability to resist material itself and environmental interference,so now the analog signal products on the market are gradually replaced by digital signal products,and make the measurement products more and more convenient. According to market research,although the market There are a lot of environmental monitoring systems on the tester,but most of them are used in air,lakes,oceans,rivers and other large detection systems,small and easy to use to detect the environment detection system. This paper develops and implements the WiFi module of STM32 based on an embedded development platform,and combines the above new concept of Internet of things to realize the real-time monitoring of the environment by users through the network. The system enables users to grasp and control what they want to know in real time. Access to in-home information (temperature and humidity information,illumination information,PM2.5) through various sensors,user at Andro This information can be controlled on the id interface.
Keywords: Internet of things; environmental monitoring; STM32; sensors; WiFi
目 录
摘 要1
Abstract2
第1章 绪论4
1.2 选题背景及意义4
1.2 研究现状4
1.3本课题的发展趋势和研究可行性5
1.4研究主要内容5
第2章 基于物联网的户外环境检测装置设计概述和相关原理6
2.1 系统的概述6
2.1.1 总体设计方案6
2.1.2 总体框图6
2.2 相关理论7
2.2.1 STM32平台7
2.2.2 WIFI模块10
第3章 基于物联网的户外环境检测装置硬件电路设计13
3.1 主控电路13
3.2 WIFI通信模块14
3.3报警模块14
3.4温湿度模块15
3.5 光照强度模块16
3.6 PM2.5模块17
3.7 空气质量模块17
3.8液晶模块18
3.9电源模块19
第4章 基于物联网的户外环境检测装置软件设计20
4.1 总体程序流程图20
4.2 WIFI模块21
4.3 LCD5110模块22
4.4 BMP180模块26
4.5 DHT11模块33
4.7 ADC-DMA模块36
第5章 基于物联网的户外环境检测装置Android应用39
5.1 Android系统简述39
5.1.1 Android系统架构39
5.1.2 Android组件模型41
5.2 Android开发环境的搭建42
第6章 户外环境检测装置运行与调试45
结 论47
致 谢48
参考文献49
附录一:总体电路图50
附录二:程序部分代码52