气象环境监测的物联网软件设计(论文13000字)
摘要:本文针对气象环境监测与物联网融合的大形势,探讨了基于物联网的气象环境监测系统的一种设计和实现方案,本系硬件由两部分组成,分为上位机与下位机。上位机是整个系统的监测中心,由微型计算机组成,并且与下位机通过 R32 相连,实现对气象环境中温湿度以及光照强度监测数据的简单分析和处理。下位机的核心部件是 STM32 单片机和温湿度复合传感器DHT22,以及光照传感器BH1750,由它们完成对温湿度参数和光照强度参数的采集、预处理、显示等任务,并且实现与上位机之间的信息通讯。系统软件同样也是两部分组成。上位机部分用C#开发,由串口通信、动态显示和数据接收三个部分组成,每个部分都实现各自的功能,并且相互独立。下位机软件用C语言实现,分别是主程序、接受服务程序、发送服务程序以及数据采集程序部分。本系统仅仅完成了对温湿度以及光照强度的监测,并没有实现对温度以及光照强度的控制,但是系统使用方便、通用性强,具有良好的应用前景。
关键词:气象环境监测;.物联网;C#;上位机;STM32
Software design of Internet of things for meteorological environment monitoring
Abstract:According to the situation of the meteorological environment monitoring and networking integration, discusses the design and implementation of meteorological environment monitoring system based on Internet of things, the system hardware is composed of two parts, divided into upper and lower machine. The host computer is the monitoring center of the whole system. It is composed of a microcomputer and connected with the lower computer through R32. It can realize the simple analysis and processing of the temperature, humidity and light intensity monitoring data in the meteorological environment. The core components of the lower machine is STM32 MCU and DHT22 temperature and humidity sensor complex, and light sensor BH1750, which complete the parameters of temperature and humidity and light intensity parameters of the collection, processing, display and other tasks, and realize the communication between the host computer and information. System software is also composed of two parts. The upper computer part is developed by C#. It consists of three parts, serial communication, dynamic display and data reception. Each part implements their own functions and is independent of each other. The lower computer software is implemented in C language, which are the main program, the receiving service program, the sending service program and the data acquisition program part. The system has only completed the monitoring of temperature, humidity and light intensity, and has not realized the control of temperature and light intensity, but the system is easy to use, versatile, and has a good application prospect.
Key words: meteorological environment monitoring; Internet of things; C#; host computer; STM32
目录
1 绪论 5
1.1 研究背景 5
1.2 研究意义 5
1.3 论文主要工作安排 6
2 系统总体设计方案 6
2.1 系统功能设计 6
2.2 系统设计原则 6
2.3 系统设计方案 7
2.3.1 系统整体模式 7
2.3.2 监测系统总体结构设计 7
2.3.3 R32串行通讯 8
3 系统硬件设计 8
3.1 数据采集系统主控制器的选择 8
3.1.1 STM32最小系统电路设计 9
3.1.2供电电路 10
3.1.3晶振电路 11
3.2 温湿度DHT22传感器设计 11
3.3 光照传感器BH1750设计 13
3.4 液晶显示模块设计 14
4 下位机软件设计 16
4.1 主程序设计 16
4.2 温度采集子程序设计 17
4.3 光照采集子程序设计 18
4.4 LCD液晶显示子程序设计 19
5 上位机监控软件设计 20
5.1 C#的介绍和特点 20
5.2 通信模块设计 20
5.2.1 串行通信原理 21
5.3 单片机与PC串口通信技术 21
5.3.1 数据通信的概念 22
5.3.2 串行通信的传送方式 22
5.3.3 串行通信的通信方式 22
5.4 上位机界面设计 24
5.4.1 实时曲线界面设计 25
6 总结 26
致谢 28
参考文献 29
|