学士学位论文室内有害气体监测系统的设计姓名:油爱芹学号:201105310137指导教师:李院平院系(部所):光电工程学院专业:电子信息工程完成日期:2013年05月28日学校代码:10904学士学位论文室内有害气体监测系统的设计姓名:油爱芹学号:201105310137指导教师:李院平院系(部所):光电工程学院专业:电子信息工程完成日期:2013年05月28日摘要随着经济的快速发展,人民生活水平的提高,人们对环境问题及健康问题日益重视,室内空气品质状况受到越来越多的关注。本论文研究设计了一种用于室内具有实时监测及超限报警功能的室内空气质量检测系统。系统主要以半导体气体传感器为研究对象,以单片机为核心构成一个具备数据采集、对象控制、结果显示、数据通信等功能的完整系统,对室内有害气体的检测有很好的借鉴效果。室内有害气体检测装置的主要功能就是快速准确的检测被测气体中有害气体的含量(主要是CO气体),通过LED显示屏将CO气体浓度显示出来,当气体浓度达到一定门限值时发出声光报警。由于AT89C52单片机的特点和应用方法,本文选用AT89C52单片机作为监测器的控制中心即CPU,用户用它来控制相关的传感器。如甲醛传感器、烟雾传感器、液晶显示器等,以此来检测室内的环境,以达到实时检测室内的有毒气体的目的。文章中主要叙述了基于单片机的有毒气体检测系统设计的全过程,重点描述了本系统的软、硬件设计原理及方案。关键词:室内有害气体;传感器;单片机;实时监测;AT89C52AbstractWiththerapiddevelopmentofeconomyandimprovementofpeople'slivingstandard,awarenessofenvironmentalissuesandhealthproblemsincreasingemphasisonindoorairqualityconditionshavebeenpaidmoreattention.Thisthesisdesignofapaperforpublicplacesandindoortestingandover-limitalarmfunctionswithindoorairqualitytestingsystem.Systemastheresearchobject,mainlyonthesemiconductorgassensorwiththemicrocontrollerasthecoreconsistsofadataacquisition,objectcontrol,theresultsshowthecompletesystem,datacommunication,etc,rightindoorharmfulgasdetectionhasverygoodreferenceeffect.Indoorharmfulgasdetectiondevice'smainfunctionistoquicklyandaccuratelydetectingthecontentofharmfulgasinthegasbeingmeasured(mainlyCOgas),throughtheLEDdisplayscreencandisplaytheCOgasconcentrationwhenthegasconcentrationreachesacertainthresholdsendoutsoundandlightalarm.DuetothecharacteristicsandapplicationmethodofAT89C52microcontroller,thisdesignselectsAT89C52single-chipmicrocomputerasthecontrolcenterofmonitorCPU,useruseittocontroltherelevantsensors.Suchasformaldehydesensor,smokesensor,LCDmonitor,inordertodetecttheindoorenvironment,andtoachievethepurposeofreal-timedetectionofindoortoxicgases.Thearticlemainlydescribesthewholeprocessoftoxicgasdetectionsystembasedonsinglechipdesign,mainlydescribesthesystemhardwareandsoftwaredesignprincipleandproject.【Keywords】indoorharmfulgas;sensor;microcontroller;monitoring;AT89C521目录第1章绪论..................................................................................................................11.1课题研究背景和意义....................................................................................11.2国内外应用与研究现状................................................................................11.3本课题研究的意义和主要内容....................................................................1第2章总体系统方案设计及器件选择......................................................................32.1设计方案........................................................................................................32.2设计原理........................................................................................................32.3单片机系统....................................................................................................42.3.1AT89C52型单片机简介.......................................................................42.3.2AT89C52引脚功能介绍....................................................................62.4放大滤波........................................................................................................82.5数据转换........................................................................................................92.6声光报警电路的设计..................................................................................102.7液晶显示电路设计......................................................................................112.8传感器的选用..............................................................................................122.8.1MQ-2烟雾传感器模块....................................................................122.8.2MQ-7一氧化碳传感器模块.............................................................122.9复位电路设计..............................................................................................13第3章系统软件设计及仿真....................................................................................143.1软件介绍......................................................................................................143.2绘制电路原理图..........................................................................................143.3程序设计......................................................................................................153.4软件仿真......................................................................................................153.5PCB封装.......................................................................................................17第4章总体系统调试................................................................................................18第5章总结与展望....................................................................................................195.1全文总结......................................................................................................1925.2进一步改进与展望......................................................................................19参考文献.....................................................................................................................