便携式可燃气体检测仪毕业设计编号:毕业设计说明书题目:便携式可燃气体检测仪院(系):电子工程与自动化学院专业:智能科学与技术学生姓名:学号:0900390117指导教师:桂林电子科技大学毕业设计(论文)报告用纸职称:题目类型:理论研究实验研究工程设计工程技术研究软件开发2013年5月20日摘要本设计利用三个MQ-X系列可燃气体传感器,分别为检测一氧化碳的MQ-7,检测甲烷的MQ-9,和检测乙炔的2M004,再使用这些传感器之前先预热十分钟左右,预热完之后将这些传感器放置于待测的环境中,这些传感器可以根据可燃气体的浓度分别转换为电压,然后再将转换得的电压经过TLC549进行模数转换最后送入AT89S52单片机处理。为了方便用户对可燃气体浓度的实时了解,在AT89S52单片机外围链接了用于显示的LCD1602液晶显示屏,把经过单片机处理过的浓度值显示在液晶屏上,以防止事故的发生;为了更好的设置可燃气体的报警浓度,还在单片机周围链接了按键以便于设置报警浓度,当所测得的浓度超过设置的浓度时,单片机控制发光二极管和蜂鸣器发光发声;通过串口把实时采集到的浓度传给上位机,并在上位机上显示出来,从而实现在上位机上的监测。本次设计便携式可燃气体检测仪所用的AT89S52单片机价格便宜,性能稳定。以MQ-X系列的可燃气体传感器和以AT89S52单片机为核心设计的可燃气体检测仪,设计方法简单易行,使用效果良好。下面给出了便携式可燃气体监测仪的总体设计原理,硬件电路桂林电子科技大学毕业设计(论文)报告用纸和所有的软件设计。关键词:气体传感器,AT89S52单片机,上位机,模数转换AbstractThisdesignUSESthreeMQ-Xseriesofcombustiblegassensor,respectivelyforthedetectionofcarbonmonoxideMQ-7,mq-9todetectmethane,anddetectionofacetylene2m004,thenusethesesensorstopreheatbeforetenminutesorso,preheatingafterplacingthesensorsinthetestenvironment,thesesensorscanbeaccordingtotheconcentrationofcombustiblegasisconvertedtoavoltagerespectively,andthenwillbeconvertedtovoltageaftereightbits,modulusconversionfinallyintothesinglechipmicrocomputerAT89S52.Fortheconvenienceofusersofreal-timeunderstandingofthecombustiblegasconcentration,theAT89S52microcontrollerperipherallinkisusedtodisplayLCD1602LCDdisplayscreen,thetreatedbysinglechipmicrocomputerwasdisplayedintheLCDscreen,inordertopreventthehappeningoftheaccident;Inordertosettheconcentrationofcombustiblegasalarm,alsoaroundthemicrocontrollerlinkthebuttontosetthealarmconcentration,whenmeasuredbytheconcentrationofmore桂林电子科技大学毕业设计(论文)报告用纸thanonesetofconcentration,single-chipmicrocomputercontrollight-emittinglight-emittingdiodes(leds)andabuzzersound;ViaaserialporttothePC,theconcentrationofreal-timecollectedanddisplayedintheupperunit,soastorealizetheuppermachinemonitoring.ThedesignofaportablecombustiblegasdetectorusingAT89S52microcontrollerischeap,stableperformance.MQ-XseriesofcombustiblegassensorsandAT89S52microcontrollerasthecoredesignofcombustiblegasdetectorandthedesignmethodissimple,theuseeffectisgood.Herearethegeneraldesignprincipleofaportablecombustiblegasmonitor,allhardwarecircuitandsoftwaredesign.Keywords:Gassensor,AT89S52single-chipcomputerandPC,modulusconversion目录目录引言.........................................................01研究课题..................................................11.1研究目标.............................................................................................................................11.2研究方案.............................................................................................................................21.3国内外报警行业的发展.....................................................................................................2桂林电子科技大学毕业设计(论文)报告用纸2主要元件简介.............................................32.1AT89S52单片机..................................................................................................................32.1.1AT89S52单片机简介.....................................................................................................32.1.2AT89S52主要功能.........................................................................................................42.1.3AT89S52单片机芯片引脚描述及应用..........................................................................42.2MQ-X系列可燃气体传感器...............................................................................................72.2.1传感器的定义与组成.....................................................................................................72.2.2MQ-X系列可燃气体传感器工作原理.............................................................................82.2.3MQ-X系列可燃气体传感器操作注意事项....................................................................82.2.3基本测试回路.................................................................................................................92.3TLC549芯片.......................................................................................................................102.3.1TLC549简介...................................................................................................................102.3.2TLC549引脚及各引脚功能...........................................................................................102.3.3TLC549工作原理...........................................................................................................112.4MAX232芯片.....................................................................................................................122.4.1MAX232芯片简介...........................................................................................................122.4.2MAX232芯片主要特点...................................................................................................132.4.3MAX232芯片标准应用电路...........................................................................................132.5液晶显示LCD1602...........................................................................................................132.5.1LCD1602液晶显示屏简介.........................................................