鉴于大家对自动化PLC相关毕业设计十分关注,我们编辑小组在此为大家搜集整理了“基于单片机的酒精浓度检测仪”一文,供大家参考学习
论文编号:DQ088 论文字数:14006,页数:37
摘 要
酒精浓度监测在人民的生活中有着重要的意义。使用单片机对酒精浓度进行监测是最常用的方法之一。
本课题研究的是一种以气敏传感器和单片机为主,并具有声音报警功能及LED显示功能的空气酒精浓度监测仪。其可监测出空气环境中酒精浓度值,并根据不同的环境设定不同的阈值,对超过阈值进行声光报警,来提示危害。当酒精浓度超过设定浓度值时,SPCE061A控制蜂鸣器以及发光二极管报警,LED显示实时酒精浓度。系统分五个模块:测量酒精浓度检测模块、数据采集、处理模块、键盘输入模块、显示模块和报警模块。测量酒精浓度模块是由MQ-3型气敏传感器构成;数据采集、处理模块主要由SPCE061A单片机构成,完成酒精浓度数据的读取和处理;键盘输入模块主要由4*3矩阵式键盘构成;显示模块主要由LED构成。
关键词:单片机、气敏传感器、酒精浓度
Abstract
Alcohol concentration measurement plays an important role in the production process. It is most commonly to use single chip microcomputer to monitor the alcohol concentration in the industrial control fields.
This paper introduces an alcohol concentration monitoring system based on the SPCE061A, realizing monitoring the alcohol concentration. The principle of the system is : System measures the alcohol concentration of the alcohol manufacture workshop through MQ-2 gas sensor,the output of MQ-2 is magnified and sieved. Then the output is processed by the SPCE061A’s AD transition. Set the alcohol concentration parameter by the keyboard. When the alcohol concentration parameter preponderate over that we set, SPCE061A drive the loudhailer give an alarm and LED immediately shows the alcohol concentration. System is made up of five parts: measure alcohol concentration module, data acquisition module, keyboard input module, display module and alarm module. Measure alcohol concentration module is made up of MQ-2 which is a gas sensor. Data collection, processing modules mainly is made up of SPCE061A single chip microcomputer which can complete collecting and processing the alcohol concentration data. Keyboard input module is made up of 4*4 matrix keyboard. Show module is made up of LED.
The system analyses a series of anti-jamming measures aimed at the reliability and stability of the system.
Keywords:Alcohol concentration ; Gassensor ; Singlechipmicrocomputer
目录
摘要 I
Abstract II
目录 IV
1 绪论 1
1.1 研究背景 1
1.2 选题意义 2
1.3 论文的结构 2
2 整体方案设计 4
2.1 设计规划 4
2.1.1 要需分析 4
2.1.2 方案的确定 4
2.2 模块设计规划 4
2.2.1 控制模块 4
2.2.2 人机接口模块 5
2.2.4 报警模块 6
2.2.5 检测模块 6
2.2.6 通信模块 7
3 硬件方案 7
3.1 控制器SPCE061A基本电路 7
3.1.1 SPCE061A的系统电路 7
3.1.2 电源电路设计 10
3.1.3 复位电路 11
3.2 外围接口电路设计 12
3.2.1 显示模块电路 12
3.2.2 键盘输入模块电路 14
3.2.3 检测模块电路 17
3.2.4 报警模块电路 21
3.2.5 通信模块电路 21
4 软件方案 25
4.1 系统整体软件设计 25
4.2 显示模块软件设计 27
4.3 键盘软件模块设计 28
4.4 检测与报警模块软件设计 30
5 系统的抗干扰措施 33
6 结论 34
致谢 35
参考文献 36
附录 37