邵阳学院毕业设计(论文)
毕业设计(论文)
课 题 名 称 便携式酒精浓度监测仪的设计与仿真
学 生 姓 名 罗 永 如 学 号 0540827048 系、年级专业 05级电子信息工程 指 导 教 师 刘 伟 职 称 讲 师
2009年 5 月 10 日
a
邵阳学院毕业设计(论文)
摘 要
本文研究了一款基于单片机的便携式酒精浓度监测仪的设计过程。该产品可通过声光报警信号来提示驾驶员是否饮酒过度,不适合开车,旨在减少交通事故的发生,具有一定的市场前景和实用价值。设计中选用AT89C51单片机作为系统主控芯片,采用MQ3气敏传感器进行酒精气体浓度的检测,利用ADC0809进行模数转换后并通过12864液晶显示器进行浓度显示。同时,设计了键盘控制部分,用于针对不同人士输入不同阈值,当浓度超过阈值时,给出声光报警信号。软件设计部分采用模块化思想,运用汇编语言进行编程,该检测器的特点在于简洁的硬件结构、高效的软件设计和较高的性价比。
关键字:便携式;酒精浓度;单片机
I
邵阳学院毕业设计(论文)
II
邵阳学院毕业设计(论文)
ABSTRACT
In this paper,a microcontroller-based portable monitor alcohol concentration of the design process. The product can be sound and light alarm signals to prompt the driver whether the excessive drinking,not suitable for driving, aimed at reducing traffic accidents,with a certain degree of market prospects and practical value. AT89C51 single-chip design selected as the system control chip,the use of alcohol MQ3 gas sensors for the detection of gas concentrations using ADC0809 analog-to-digital conversion to and through the concentration of 12864 to show the liquid crystal display. At the same time,part of the design of the keyboard to control for different people for different input threshold,when the concentration exceeds the threshold value, to a silent alarm signal light. Part of modular software design thought,the use of assembly language programming,the characteristics of the detector hardware structure is simple and efficient software design and higher cost performance.
Keywords: Portable; alcohol concentration; single-chip
II
邵阳学院毕业设计(论文)
目 录
摘 要 ................................................................................................................ I ABSTRACT ..................................................................................................... II 目 录 .............................................................................................................. B 前 言 ................................................................................................................. 1 第1章 方案设计与论证 ................................................................................. 2 1.1总体方案设计 ....................................................................................... 2 1.1.1传感器的选择 ................................................................................ 2 1.1.2单片机的选择 ................................................................................ 3 1.1.3总体方案框图 ................................................................................ 4 第2章 硬件电路设计 ..................................................................................... 5 2.1 主控模块设计 ...................................................................................... 5 2.2电源电路的设计 ................................................................................... 7 2.3传感器的筛选 ....................................................................................... 8 2.4 AD转换电路的设计 .......................................................................... 13 2.5键盘电路 ............................................................................................. 15 2.6显示电路 ............................................................................................. 17 2.7声光报警电路 ..................................................................................... 18 第3章 软件设计 ........................................................................................... 20 3. 1数据处理子程序设计 ........................................................................ 21 3.2键盘扫描子程序 ................................................................................. 23 3.3键盘阈值设定子程序 ......................................................................... 24 3.4显示子程序 ......................................................................................... 26 3.5报警子程序 ......................................................................................... 27 第4章 系统仿真及调试 ............................................................................... 31 4.1硬件调试 ............................................................................................. 31 4.2软件调试 ............................................................................................. 31 4.3软、硬件联调 ..................................................................................... 32 4.4调试故障及原因分析 ......................................................................... 32 4.5结论及进一步设想 ............................................................................. 32
B

