武汉工程大学邮电与信息工程学院毕业设计(论文)基于51单片机的酒精测试仪设计学生姓名学号专业班级指导教师2011年5月武汉工程大学邮电与信息工程学院毕业设计(论文)摘要近年来,随着我国经济的发展,人民的生活水平提高,越来越多的人有了自己的私家车,而酒后驾车造成的交通事故也频频发生。如今国家法律出台道路交通安全法规定,饮酒后或者醉酒驾驶机动车发生重大交通事故,构成犯罪的,依法追究刑事责任,并由公安机关交通管理部门吊销机动车驾驶证,终生不得重新取得机动车驾驶证。鉴于人们对于醉酒驾驶的逐渐重视,酒精测试课题便引起了广泛的关注。酒后驾车引起的交通事故是由于司机的过量饮酒造成人体内酒精浓度过高,麻痹神经,造成大脑反应迟缓,肢体不受控制等症状。为本课题研究的是一种以气敏传感器和单片机为主,监测空气酒精浓度,并具有LCD显示功能的空气酒精浓度监测仪。此需要设计一智能仪器能够监测驾驶员体内酒精含量。本课题研究的是一种以气敏传感器和单片机为主,监测空气酒精浓度,并具有声报警功能及LCD显示功能的空气酒精浓度监测仪。其可监测出空气环境中和呼气中酒精浓度值,并根据不同的环境设定不同的阀值,对超过的阀值进行声报警,并显示阀值.来提示危害。从而达到以下目的:(1)有利于社会公共交通安全;(2)提高人们法律意识;(3)使之便捷、安全、准确、高效,便于提高家庭酒精测试的普及化。本作品是基于单片机控制ADC0809对TGS822酒精浓度取样来反映人体血液酒精浓度;以及对DS18B20获取温度关键词:ADC0809;TGS822;DS18B20;单片机武汉工程大学邮电与信息工程学院毕业设计(论文)AbstractInrecentyears,asChina'seconomicdevelopment,people'slivingstandardsimprove,moreandmorepeoplehavetheirownprivatecarsandtrafficaccidentscausedbydrunkdrivingisalsofrequent.Today,theintroductionofnationallawtheprovisionsoftheRoadTrafficSafetyLaw,motorvehicleafterdrinkingordrunkdrivingmajortrafficaccidents,crimeisconstituted,criminalresponsibilityshallbeinvestigatedbythetrafficcontroldepartmentofpublicsecurityorgandrivinglicenserevokedforlifemaynotregainadrivinglicense.Givenpeople'sincreasingemphasisonthedrinkdriving,alcoholtestsubjecthasarousedwidespreadconcern.Drunkdrivingaccidentscausedbyexcessivedrinkingiscausedbecausethedriver'salcohollevelistoohighthebody,paralysisofnerves,resultinginslowresponsetothebrain,bodyoutofcontrolandothersymptoms.Basedresearchisakindofgassensorandmicrocontroller-based,monitoringofairalcoholconcentration,andwithLCDdisplaymonitorairalcoholconcentration.Theneedtodesignanintelligentinstrumentstomonitorthedriver'salcoholcontent.Thisresearchisakindofgassensorandmicrocontroller-based,monitoringofairalcoholconcentration,andwithsoundalarmandLCDdisplaymonitorstheairalcoholconcentration.Theenvironmentcanbemonitoredfromtheairandbreathalcoholconcentration,andaccordingtodifferentenvironmentssetdifferentthresholdthanthethresholdoftheacousticalarm,anddisplaythreshold.Topromptthehazard.Soastoachievethefollowingpurposes:(1)infavorofpublictransportsafety;(2)toraiseawarenessoflegalconsciousness;(3)tomakeitconvenient,safe,accurate,efficient,easytoincreasethepopularityofhomealcoholtest.ThisworkisbasedontheTGS822ADC0809microcontrollersamplingtoreflectthebodyalcoholconcentrationbloodalcoholconcentration;andtoobtainthetemperatureDS18B20Keywords:ADC0809;TGS822;DS18B20;MCU武汉工程大学邮电与信息工程学院毕业设计(论文)1目录第1章绪论.........................................................................................................................11.1精测试仪现状和发展趋势............................................................................11.2研究内容........................................................................................................2第2章总体设计.................................................................................................................32.1本课题的设计任务及要求............................................................................32.1.1设计任务................................................................................................32.1.2设计要求................................................................................................32.2系统整机原理图分析....................................................................................4第3章硬件设计.................................................................................................................53.1单片机模块....................................................................................................53.2ADC0809资料...............................................................................................73.3酒精传感器模块............................................................................................93.3.1传感器性能分析.....................................................................................93.3.2呼出酒精气体浓度与血液酒精浓度关系...........................................123.4LCD模块...................................................................................................13第4章系统软件...............................................................................................................154.1整机系统流程图..........................................................................................164.1.1ADC程序流程图...................................................................................164.1.2LCD程序流程图..................................................................................17第5章总结与展望...........................................................................................................18参考文献.............................................................................................................................19致谢.....................................................................................................................................20附录1酒精测试仪程序....................................................................................................21武汉工程大学邮电与信息工程学院毕业设计(论文)1第1章绪论1.1精测试仪现状和发展趋势喝酒后,呼出的气体会有酒味,表情行为会有反常。远古时代人们利用鼻子作为传感器,进行简单的呼出气体酒精