毕业论文I基于单片机的CO浓度监控系统设计摘要一氧化碳监控系统是一种用于公共场所及室内具有检测及超限报警控制的系统。其设计方案基于AT89C52单片机,选择瑞士蒙吧波公司的CO/CF-1000一氧化碳传感器。系统将传感器的标准信号通过AD0832为核心的A/D转换电路调理后,经由单片机进行数据处理,最后由LCD显示一氧化碳浓度值。文中详细介绍了数据采集子系统、数据处理过程以及数据显示子系统和报警电路的设计方法和过程。系统对于采样地点超出规定的一氧化碳容许浓度时采用三极管驱动的单音频报警电路提醒监测人员。同时,操作人员对于具体报警点的上限值可以通过单片机编程进行设置。另外,该系统对浓度信号进行了信号补偿等处理,减少了测量误差。因此,具有较高的测量精度,而且结构简单,性能优良。以往检测系统最大的缺点是系统庞大复杂、造价昂贵,不适合中使用及推广。针对此需求,设计中尽可能使用较少器件,在功能得到保证的前提下,力求系统构造简单、成本低。关键词一氧化碳检测;单片机;数据采集处理系统毕业论文IITheDesignoftheMonitoringCOSystembyMCUAbstractCarbonmonoxidedetectorisakindofequipmentusedinpublicorindoorareastodetecttheconcentrationofcarbonmonoxideandalarmwhenitexceedsacertainlimit.Inthisdesign,AT89C52MCUandCO/CF-1000carbonmonoxidesensorproducedbyMembraporofSwitzerlandareemployed.ThestandardsignalgivenbythesensorisinitiallyadjustedbyA/DconversioncircuitusingAD0832asitscore,processedbyMCU,andfinallythecarbonmonoxidelevelwasdemonstratedinLCD.Thispaperisadetailedintroductionaboutthedesignmethodsandprocessesofdataacquisition,processing,displaysubsystemandalarmcircuit.Oncetheconcentrationofcarbonmonoxideismorethanthatpermitted,thewholesystemwillwarnthemonitorswithsingleaudioalarmcircuitdrivenbytransistor.Meanwhile,theoperatorscansettheupperlimitofalarmvaluebyMCUprogramming.Inaddition,thesystemmakessignalcompensationtotheconcentrationtominimizethemeasurementdeficiency.Asaresult,thesystemcharacterizesashavinghighmeasurementaccuracy,simplestructureaswellasexcellentperformance.Thegreatestdisadvantagesofthepreviousinspectionsystemiscomplexandcomplexity,sothey’renotsuitablefortheuseandpromotionofsmallandmediumcoalmines.Accordingtothisneed,thedesignwillusedevicesaslessaspossible,andtrytokeepthesystemstructuresimpleandcostslowunderthepremiseofensuringthefunctional.KeywordsCarbonMonoxideDetection;MCU;DataAcquisitionProcessingSystem毕业论文III目录第1章绪论.......................................................................................................................11.1设计背景................................................................................................................11.2一氧化碳检测仪的种类........................................................................................11.3研究内容及预期目标............................................................................................31.4课题总体设计........................................................................................................3第2章主芯片的选型及最小系统设计...........................................................................42.1主控芯片选型........................................................................................................42.2AT89C52的特点及在本设计中的应用.................................................................62.2.1AT89C52单片机的引脚的介绍................................................................62.2.2单片机最小系统的设计...........................................................................92.3硬件总体构成框图..............................................................................................112.4小结....................................................................................................................12第3章系统硬件电路的设计.........................................................................................133.1数据采集系统的设计..........................................................................................133.1.1传感器的设计..........................................................................................133.1.2A/D转化器的设计..................................................................................143.2人机接口电路设计..............................................................................................163.2.1按键的设计..............................................................................................163.2.2液晶显示器的设计.................................................................................163.3外围扩充存储器的设计......................................................................................193.4时钟芯片的设计..................................................................................................193.5上拉电阻的设计..................................................................................................213.6报警电路的设计..................................................................................................223.7电机控制电路的设计..........................................................................................233.7.1SSR固态继电器的介绍..........................................................................233.7.2单片机对电机排风的设计......................................................................233.8小结......................................................................................................................24第4章系统软件设计.....................................................................................................254.1系统软件结构设计..............................................................................................254.2系统总程序设计..................................................................................................264.3数据采集子程序设计....................................