基于单片机的酒精浓度测试的设计与研究

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

毕业设计设计题目:基于单片机的酒精浓度测试的设计与研究系别:信息工程系班级:电子信息工程姓名:指导教师:年6月10日基于单片机的酒精浓度测试的设计与研究摘要对于人体内酒精浓度的高低的判断主要依据于人酒后所呼出的气体中酒精浓度的高低做出适当的判断。随着经济的发展,人民生活水平的提高,酒后驾驶所造成的交通事故频频发生。为防止此类事故的发生,交通执法者检测驾驶员是否酒后驾驶尤为重要。本文设计了一个基于单片机的酒精浓度检测报警系统,单片机作为主控芯片。MQK2酒精传感器将检测到的信息发送至芯片和设定的阈值比较后判断是否报警,若报警GSM模块实现了将报警信号发送至手机端,同时在液晶显示屏上显示测量结果。本次设计的检测装置将89c51作为主要控制芯片、MQ302A酒精传感器、AD0804转换器、AT89C51单片机控制器、声光报警、LCD1602显示器、GSM模块等构成。文中对酒精浓度检测的原理做出具体的分析和设计方案,对各个子模块进行了论证和比较。硬件设计采用ProtelDXP软件,完成了各个模块的原理图设计。软件设计采用KeilB编程软件,实现了对酒精浓度信号处理过程的编程和调试。关键字:单片机酒精浓度传感器LCD1602GSM模块声光报警DesignAndResearchOfTheAlcoholConcentrationTestBasedOnMCUAbstractMakeaproperjudgmentonthealcoholconcentrationofalcoholconcentrationtodeterminethemainbasistodrunktheexhaledgasinthelevelof.Withthedevelopmentofeconomy,people'slivingstandardsimprove,drunkendrivingcausedbytrafficaccidentshappenfrequently.Topreventthiskindofaccident,trafficlawenforcementdetectwhetherthedriverdrunkdrivingisparticularlyimportant.Thispaperdescribesthedesignofanalarmsystemfordetectingalcoholconcentrationbasedonsingle-chipmicrocomputer,microcontrollerasthemaincontrolchip.MQK2alcoholsensorwilldetecttheinformationsenttothechipandthesetthresholdcomparisontodeterminewhetherthealarm,thealarmGSMmoduletoachievethealarmsignalwillbesenttothemobilephoneterminal,atthesametime,themeasuredresultsaredisplayedontheLCDscreen.Thedetectiondevicedesignwillformthe89C51asthemaincontrolchip,MQ302Aalcoholsensor,AD0804converter,AT89C51controller,alarm,LCD1602display,GSMmoduleetc..Principleofalcoholconcentrationdetectioninthispapermakestheanalysisandthespecificdesignofeachmodule,arediscussedandcompared.ThehardwaredesignusingProtelDXPsoftware,completedthedesignofeachmoduleprinciplediagram.SoftwaredesignusingKeiluVision2,therealizationofsignalprocessingofalcoholconcentrationduringprogramminganddebugging.Keywords:SCMalcoholconcentrationsensorLCD1602GSMmodulesound-lightalarm目录1引言............................................................................................................................12系统总体方案设计....................................................................................................22.1总体设计思路分析..........................................................................................22.2总体设计框图分析..........................................................................................23系统硬件设计............................................................................................................43.1.STC89C5A60S2单片机电路设计...............................................................43.1.1.STC89C5A60S2单片机特性概述........................................................43.1.2STC89C5A60S2引脚功能....................................................................43.1.3晶振电路................................................................................................63.1.4复位电路................................................................................................63.2酒精浓度模块设计..........................................................................................73.2.1酒精浓度传感器MQ3的特点.............................................................73.2.2A/D转换电路...............................................................................................93.2.3MAX3232电路.............................................................................................93.3液晶显示器LCD1602...................................................................................103.3.1LCD1602介绍......................................................................................103.3.2系统LCD1602显示说明....................................................................103.4通信模块设计.................................................................................................123.4.1GSM模块介绍.....................................................................................123.5按键键盘设计................................................................................................123.5.1按键键盘说明.......................................................................................123.5.2按键电路设计......................................................................................123.6报警电路设计................................................................................................133.6.1蜂鸣器说明...........................................................................................133.6.2发光二极管说明...................................................................................133.6.3声光报警电路.......................................................................................144系统软件设计..........................................................................................................154.1软件设计概述................................................................................................154.1.1Keil软件介绍.......................................................................................154.2系统软件设计................................................................................................154.2.1主程序流程图........................................................

1 / 42
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功