设计说明书
总字数:19000+
摘 要
无线网络凭借其分布范围广、灵活性强、布置方便等特点被广泛应用于各种环境监测场合,实现了简单数据的及时获取。本文以单片机和传感器技术为基础,实现多个环境参数信号的采集、处理以及无线传输,为环境参数监测与无线网络的结合提供了一种新的硬件实现方式。本文以环境参数作为研究对象,采用单片机技术对其进行设计,分为软件设计和硬件设计,硬件设计:采用STM32单片机作为主控芯片,采用DHT11检测环境中的温湿度,采用GP2Y10检测环境中的灰尘浓度,采用MQ-5检测可燃气体值,采用MS1100检测甲醛值,采用OLED显示屏进行相关数据的显示,采用NB模块将检测到的数据传输到用户的手机上,用户可以通过按键对其参数值进行设置,也可以通过手机对相关阈值进行设置;软件设计:采用Keil5作为此次设计程序编程软件,采用AD作为此次设计的原理图和PCB的绘制软件,采用stc-isp作为此次设计程序的烧录软件,采用Visio作为此次设计的流程图绘制软件;通过软硬件配合进行设计,实现对自然环境中的相关参数进行监测和控制,使环境处于优良状态。
关键词:环境控制;温湿度;传感器;Keil5;单片机
Abstract
Wireless network has been widely used in various environmental monitoring occasions by virtue of its wide distribution range, strong flexibility and convenient layout, which realizes the timely acquisition of simple data. Based on single chip microcomputer and sensor technology, this paper realizes the acquisition, processing and wireless transmission of multiple environmental parameter signals, which provides a new hardware realization method for the combination of environmental parameter monitoring and wireless network.In this paper, environmental parameters as the research object, the use of single-chip microcomputer technology to design it, divided into software design and hardware design, hardware design: STM32 single chip microcomputer is used as the main control chip, DHT11 is used to detect temperature and humidity in the environment, GP2Y10 is used to detect dust concentration in the environment, MQ-5 is used to detect combustible gas value, MS1100 is used to detect formaldehyde value, and OLED display is used to display relevant data. The NB module is used to transmit the detected data to the user’s mobile phone, and the user can set the parameter value by pressing the button, or set the related threshold through the mobile phone. Software design: Keil5 is used as the programming software of this design program, AD is used as the drawing software of this design schematic and PCB, stc-isp is used as the burning software of this design program, and Visio is used as the flowchart drawing software of this design. Through the design of hardware and software cooperation, the relevant parameters in the natural environment can be monitored and controlled, so that the environment is in a good state.
Key words: environmental control; Temperature and humidity; Sensor; Keil5; Single chip microcomputer.
目 录
摘 要
Abstract
第1章 绪论
1.1 选题背景及实际意义
1.2 国内外研究现状
1.3 本论文研究目标
第2章 系统设计方案
2.1 主要元器件选择
2.1.1 主控芯片方案选择
2.1.2 显示模块方案选择
2.1.3 温湿度检测模块方案选择
2.2 整体设计方案
第3章 硬件设计
3.1 单片机最小系统
3.1.1 主控模块电路
3.1.2 晶振电路
3.1.3 复位电路
3.1.4 电源电路
3.1.5 下载电路
3.2 显示模块电路
3.3 温湿度检测模块电路
3.4 灰尘浓度检测模块电路
3.5 MS1100甲醛检测模块电路
3.6 天然气浓度模块电路
3.7 声光报警报警提醒电路模块
3.8 继电器模块电路
3.9 独立按键电路
3.10 NB通信模块
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 GP2Y10模块子流通
4.5 OLED显示流程设计
第5章 实物测试
5.1 实物调试部分
5.2 整体焊接实物
5.3 上电实物测试
5.4温度检测实物测试
5.5 PM2.5检测实物测试
5.6可燃气检测实物测试
5.7 甲醛浓度检测实物测试
5.8 NB模块实物测试
结论
参 考 文 献
致谢
附录
附录1:原理图
附录2:PCB
附录3:主程序
购买后可查看具体内容!