登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 机械机电类 > 测控技术与仪器 > 正文

基于单片机的气体识别系统设计毕业论文

 2021-03-13 10:03  

摘 要

能源是人类活动的物质基础,其中化石能源又是我国的主要能源,在开采矿井过程中,一些有害气体会被释放到环境中,当气体浓度过高时将对人体产生一定的副作用。实时识别有害气体,检测气体浓度并做出气体超标预警,对减少矿井安全事故的发生尤为重要。在此研究背景下,本文设计出一种能够实时检测识别甲烷、硫化氢和一氧化碳浓度的气体识别系统。

本文先根据设计要求做出了系统设计方案,然后再设计硬件电路的实现方案,最后完成系统软件的设计和调试,做出系统实物。本系统设计采用基于ARM Cortex-M3内核的STM32微控制器STM32F103C8T6作为主控芯片,用于系统控制传感器识别气体,采用MQ-4传感器模块采集甲烷浓度值,采用MQ-135传感器模块采集硫化氢浓度值,采用MQ-7传感器模块采集一氧化碳浓度值,数据经单片机的AD转换显示在0.96寸OLED液晶屏上,为了使系统使用更加人性化,设计3个按键来设置三种不同气体的报警阈值,当超过阈值时启动声光报警。

研究结果表明:系统能够实现实时检测识别甲烷、硫化氢和一氧化碳三种气体的浓度,并显示在OLED液晶屏上,气体浓度超过报警阈值启动声光报警的功能。最后本文指出了系统目前存在的不足,并指明了进一步完善系统的研究方向。

关键词:气体识别;嵌入式;AD转换;声光报警

Abstract

Energy is the material basis of human activities, in which fossil energy is China's main energy, in the mining process, some harmful gases will be released into the environment, when the gas concentration is too high will have some side effects on the human body. Real-time identification of harmful gases, detection of gas concentration and make gas warning, to reduce the occurrence of mine safety accidents is particularly important. In this research background, this paper designed a real-time detection of methane, hydrogen sulfide and carbon monoxide concentration of gas identification system.

This paper first made a system design according to the design requirements, and then design the hardware circuit to achieve the program, and finally complete the system software design and debugging, make the system in kind. The system is designed based on ARM Cortex-M3 core STM32 microcontroller STM32F103C8T6 as the master chip, used for system control sensor to identify the gas, adopt the MQ-4 sensor module to collect the methane concentration value, adopt the MQ-135 sensor module to collect the hydrogen sulfide concentration value, adopt the MQ-7 sensor module to collect carbon monoxide concentration value, the data by the micrcontroller AD conversion display in the 0.96-inch OLED LCD screen, in order to make the system more user-friendly, the design of three buttons to set the alarm threshold of three different gases, when the threshold is exceeded, the sound and light alarm is activated.

The results show that the system can realize the real-time detection of methane, hydrogen sulfide and carbon monoxide three kinds of gas concentration, and display in the OLED LCD screen, the gas concentration exceeds the alarm threshold to start the sound and light alarm function. Finally, this paper points out the shortcomings of the system and points out the research direction of the system.

Key Words: gas identification; embedded; AD conversion;audible alarm

目 录

第1章 绪论 1

1.1 课题研究背景以及研究意义 1

1.2 国内外研究现状 1

1.3 论文主要内容和章节安排 2

1.3.1 论文主要内容 2

1.3.2 论文章节安排 2

第2章 系统方案设计 4

2.1 设计要求 4

2.2 设计方案选择 4

2.2.1 主控制器 4

2.2.2 气体采集方案 5

2.2.3 液晶显示方案 5

第3章 硬件系统设计 7

3.1 硬件系统框图 7

3.2 最小系统电路设计 7

3.2.1 STM32F103C8T6介绍 7

3.2.2 复位电路设计 9

3.2.3 稳压电路设计 9

3.2.4 JTAG调试接口电路设计 10

3.2.5 时钟电路设计 11

3.2.6 USB接口电路设计 12

3.3 电源电路设计 12

3.4 气体检测传感器模块 13

3.5 OLED液晶显示模块 15

3.6 蜂鸣器报警电路 16

3.7 LED报警电路 16

第4章 软件系统设计 18

4.1 RealView MDK5集成开发环境简介 18

4.2 软件系统主流程图 18

4.3 AD软件实现算法研究 21

4.4 按键程序设计 24

4.4.1 按键检测扫描方案 24

4.4.2 按键功能设计 24

4.5 OLED液晶显示软件实现 25

第5章 系统调试及结果 29

5.1 硬件系统调试 29

5.2 软件系统调试 29

5.3 系统展示 31

5.3.1 系统实物图 31

5.3.2 系统测试结果 32

第6章 结论 36

参考文献 38

附 录 39

致 谢 40

第1章 绪论

1.1 课题研究背景以及研究意义

化石能源是目前世界各国最主要的能源之一,主要包括石油、煤炭、天然气,它们支撑着世界经济的高速发展。化石能源作为经济支撑的同时,也造成了环境的不断恶化,带来许多安全隐患,威胁着人们的健康。

煤炭是主要的化石能源之一,它是远古时代的繁盛的植物及其堆积物在地壳变迁中被埋入地下,经过长期高温高压的碳化反应而形成的[1]。在开采煤炭的过程中,会释放出甲烷气体,当开采密闭环境中甲烷的浓度过高时,容易使人窒息或者发生爆炸,危害工作人员的生命安全[2],据调查,瓦斯爆炸是矿井事故中最常出现的事故之一[3],所以对矿井开采密闭环境中的气体进行分析,实时掌握气体环境中甲烷气体的浓度,并作出超限报警提示,这样作业人员可以及时采取措施以保障自身的生命安全。

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

企业微信

Copyright © 2010-2022 毕业论文网 站点地图