没有合适的资源?快使用搜索试试~ 我知道了~
毕设论文--于基单片机的酒精浓度测试的设计与研究.doc
0 下载量 123 浏览量
2023-07-02
13:36:29
上传
评论
收藏 488KB DOC 举报
温馨提示
试读
42页
毕设论文--于基单片机的酒精浓度测试的设计与研究.doc
资源推荐
资源详情
资源评论
毕 业 设 计
设计题目:基于单片机的酒精浓度测试的设计与研究
系 别: 信息工程系
班 级: 电子信息工程
基于单片机的酒精浓度测试的设计与研究
摘 要
对于人体内酒精浓度的高低的判断主要依据于人酒后所呼出的气体中酒精
浓度的高低做出适当的判断。随着经济的发展,人民生活水平的提高,酒后驾驶
所造成的交通事故频频发生。为防止此类事故的发生,交通执法者检测驾驶员是
否酒后驾驶尤为重要。
本文设计了一个基于单片机的酒精浓度检测报警系统,单片机作为主控芯片。
MQK2 酒精传感器将检测到的信息发送至芯片和设定的阈值比较后判断是否报
警,若报警 GSM 模块实现了将报警信号发送至手机端,同时在液晶显示屏上显
示测量结果。
本次设计的检测装置将 89c51 作为主要控制芯片、MQ302A 酒精传感器、
AD0804 转换器、AT89C51 单片机控制器、声光报警、LCD1602 显示器、GSM 模块
等构成 。文中对酒精浓度检测的原理做出具体的分析和设计方案,对各个子模
块进行了论证和比较。硬件设计采用 Protel DXP 软件,完成了各个模块的原理
图设计。软件设计采用 KeilB 编程软件,实现了对酒精浓度信号处理过程的编程
和调试。
关键字:单片机 酒精浓度传感器 LCD1602 GSM 模块 声光报警
Design And Research Of The Alcohol
Concentration Test Based On MCU
Abstract
Make a proper judgment on the alcohol concentration of alcohol concentration to
determine the main basis to drunk the exhaled gas in the level of. With the
development of economy, people's living standards improve, drunken driving caused
by traffic accidents happen frequently. To prevent this kind of accident, traffic law
enforcement detect whether the driver drunk driving is particularly important.
This paper describes the design of an alarm system for detecting alcohol
concentration based on single-chip microcomputer, microcontroller as the main
control chip. MQK2 alcohol sensor will detect the information sent to the chip and the
set threshold comparison to determine whether the alarm, the alarm GSM module to
achieve the alarm signal will be sent to the mobile phone terminal, at the same time,
the measured results are displayed on the LCD screen.
The detection device design will form the 89C51 as the main control chip,
MQ302A alcohol sensor, AD0804 converter, AT89C51 controller, alarm, LCD1602
display, GSM module etc.. Principle of alcohol concentration detection in this paper
makes the analysis and the specific design of each module, are discussed and
compared. The hardware design using Protel DXP software, completed the design of
each module principle diagram. Software design using Keil uVision2, the realization
of signal processing of alcohol concentration during programming and debugging.
Keywords: SCM alcohol concentration sensor LCD1602 GSM module
sound-light alarm
目 录
1 引言............................................................................................................................1
2 系统总体方案设计....................................................................................................2
2.1 总体设计思路分析..........................................................................................2
2.2 总体设计框图分析..........................................................................................2
3 系统硬件设计............................................................................................................4
3.1.STC89C5A60S2 单片机电路设计................................................................4
3.1.1.STC89C5A60S2 单片机特性概述.........................................................4
3.1.2 STC89C5A60S2 引脚功能.....................................................................4
3.1.3 晶振电路................................................................................................5
3.1.4 复位电路................................................................................................6
3.2 酒精浓度模块设计..........................................................................................7
3.2.1 酒精浓度传感器 MQ3 的特点 .............................................................7
3.2.2 A/D 转换电路...............................................................................................8
3.2.3 MAX3232 电路 .............................................................................................9
3.3 液晶显示器 LCD1602.....................................................................................9
3.3.1 LCD1602 介绍........................................................................................9
3.3.2 系统 LCD1602 显示说明....................................................................10
3.4 通信模块设计.................................................................................................11
3.4.1 GSM 模块介绍 .....................................................................................12
3.5 按键键盘设计................................................................................................12
3.5.1 按键键盘说明.......................................................................................12
3.5.2 按键电路设计......................................................................................12
3.6 报警电路设计................................................................................................12
3.6.1 蜂鸣器说明...........................................................................................12
3.6.2 发光二极管说明...................................................................................13
3.6.3 声光报警电路.......................................................................................13
4 系统软件设计..........................................................................................................14
4.1 软件设计概述................................................................................................14
4.1.1 Keil 软件介绍.......................................................................................14
4.2 系统软件设计................................................................................................14
4.2.1 主程序流程图......................................................................................14
4.2.2 酒精浓度检测子程序..........................................................................15
4.2.3 LCD 显示子程序..................................................................................15
4.2.4 无线通信子程序..................................................................................16
4.2.5 报警子程序..........................................................................................20
4.2.5 串行口子程序......................................................................................21
5 硬件焊接及调试......................................................................................................23
5.1 概要说明........................................................................................................23
5.1.1 硬件焊接...............................................................................................23
5.1.2 软件调试..............................................................................................23
5.1.3 软硬联调..............................................................................................23
5.2 调试中出现的问题及解决方法....................................................................24
6 结论..........................................................................................................................25
谢辞..............................................................................................................................26
参考文献......................................................................................................................27
附录..............................................................................................................................28
剩余41页未读,继续阅读
资源评论
黑色的迷迭香
- 粉丝: 705
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功