大连大学2014届毕业论文(设计)题目名称:基于单片机的室内空气检测所在学院:信息工程学院专业(班级):自动化103班学生姓名:方瑶指导教师:苏晓鹭评阅人:杜秀丽院长:裴炳南DALIANUNIVERSITY基于单片机的室内空气检测总计:毕业论文54页表格2表插图19幅指导教师苏晓鹭评阅人杜秀丽完成日期5月21日基于单片机的室内空气检测I摘要随着我国的经济发展,人民的生活水平提高,人们对环境问题及健康问题日益重视,室内空气质量问题同时也受到人们的高度关注。正常情况下,我们每个人平均有三分之二的时间在室内度过。本论文主要研究设计了一种用于室内具有检测及超限报警功能的室内空气质量检测系统。其方案主要是以51单片机为控制核心,选择数字温湿度传感器、甲醛传感器和MQ-5气体传感器。系统将传感器输出的标准信号通过以AD0809为核心的A/D转换电路调理后,经由单片机进行数据处理,最后由LCD显示相应的值。同时设计了报警系统,实现在参数超标时及时的报警。室内空气检测系统体积小,功耗低,操作简单,适合应用于家庭和社区的医疗健康保健,能够实时知道室内空气的质量。关键字:51单片机;室内空气检测;A/D转换;LCD显示基于单片机的室内空气检测IIABSTRACTWiththedevelopmentofourcountry'seconomy,theimprovementofpeople'slivingstandards,peopleincreasinglyfocusonenvironmentalissuesandhealthproblem,andindoorairqualityproblemsalsopaidcloseattentiontobythepeople.Generally,eachofus,onaverage,two-thirdsofthetimespentindoors.ThepapermainlydesignsasystemthatusedfordetectingofindoorairqualityWithtestingandtransfinitealarmfunction.Themainsolutionisbasedon51singlechipmicrocomputerascontrolcore,choosethedigitaltemperatureandhumiditysensorsandMQ-5formaldehydegassensors.StandardofsensoroutputsignalthroughthecoreofAD0832afterA/Dconversioncircuit,bysingle-chipcomputerfordataprocessing,finallybytheLCDdisplaythecorrespondingvalues.Designthealarmsystematthesametime,realizetimelyalarmwhenparametersexceedbid.Indoorairtestingsystemofsmallsize,lowpowerconsumption,simpleoperation,it’ssuitableforapplicationinfamilyandcommunityhealthcare,whichtoknowtheindoorairqualityinrealtime.Keywords:51singlechipmicrocomputer;Indoorairtesting;A/Dconversion;TheLCDdisplay基于单片机的室内空气检测III目录摘要........................................................................................................................................IABSTRACT..........................................................................................................................II1绪论....................................................................................................................................11.1设计背景及意义....................................................................................................11.2室内空气检测系统国内外研究现状....................................................................11.3设计目的及内容....................................................................................................22第二章系统总体设计方案..............................................................................................32.1系统设计总概述.....................................................................................................32.2系统硬件总体设计方案........................................................................................32.3系统软件总体设计方案........................................................................................32.4硬件和软件结构....................................................................................................43第三章室内空气检测系统的硬件设计..........................................................................53.1硬件的各模块设计.................................................................................................53.1.1控制模块设计..............................................................................................53.1.2温湿度检测模块设计.................................................................................73.1.3气体检测模块设计.....................................................................................83.1.4报警模块设计...........................................................................................103.1.6电源供电模块............................................................................................113.1.7按键模块...................................................................................................123.2系统总电路图......................................................................................................124第四章室内空气检测器的软件设计..........................................................................134.1编程语言的选择..................................................................................................134.2编译软件的选择与介绍......................................................................................134.3主程序模块..........................................................................................................144.4温湿度检测模块..................................................................................................144.5气体检测模块......................................................................................................154.6报警模块...............................................................................................................164.7显示模块..............................................................................................................174.8按键模块..............................................................................................................185第五章系统仿真............................................................................................................196第六章结论与展望........................................................................................................206.1结论.........................................