2目录摘要................................................................................................................................................1ABSTRACT.......................................................................................................................................1第1章绪论................................................................................................................................11.1选题背景及意义................................................................................................................11.2本文所做的工作................................................................................................................1第2章火灾自动报警系统的工作原理.........................................................................................22.1系统总体功能概述............................................................................................................22.2火灾报警系统的类型........................................................................错误!未定义书签。2.3火灾探测器的原理............................................................................错误!未定义书签。第3章系统硬件设计....................................................................................................................33.1核心芯片选择...................................................................................................................33.2单片机外围接口电路........................................................................................................63.3信号处理电路...................................................................................................................73.4A/D转换模块....................................................................................................................83.5声音报警电路...................................................................................................................93.6数码管显示电路..............................................................................................................103.7状态指示灯及控制键电路..............................................................................................113.8报警器故障自诊断..........................................................................................................12第4章系统软件设计..................................................................................................................134.1主程序流程图.................................................................................................................134.2主程序初始化流程图......................................................................................................144.3滤波子程序.....................................................................................................................144.4线性化子程序...................................................................................错误!未定义书签。4.5报警子程序.....................................................................................................................164.6键盘处理子程序..............................................................................................................18结论..................................................................................................................................................19致谢....................................................................................................................错误!未定义书签。参考文献..........................................................................................................................................20第Ⅰ页1摘要目前,随着电子产品在人类生活中的使用越来越广泛,由此引起的火灾也越来越多,在我们生活得四周到处潜伏着火灾隐患。为了避免火灾以及减少火灾造成的损失,我们必须按照“隐患险于明火,防患胜于救灾,责任重于泰山”的概念设计和完善火灾自动报警系统,将火灾消灭在萌芽状态,最大限度地减少社会财富的损失。本系统可安装在各防火单位,它负责不断地向所监视的现场发车巡检信号,监视现场的温度、浓度等,并不断反馈给报警控制器,控制器将接到的信号与内存的正常整定值比较、判断确定火灾。当发生火灾时,可实现声光报警、故障自诊断、浓度显示、报警限设置、延时报警及与上位机串口通信等,是一种结构简单、性能稳定、使用方便、价格低廉、智能化的烟雾传感器,具有一定的实用价值。关键词单片机火灾报警传感器ABSTRACTNow,withelectronicproductsusedinhumanlifemoreandmorewidely,theresultingfire,moreandmore,weliveinfirehazardslurkingaroundeverywhere.Toavoidfiresandreducefirelosses,wemustfollowthehiddendangersfireinpreventionisbetterthandisasterrelief,theresponsibilityisextremelyheavy,theconceptdesignandimprovementofautomaticfirealarmsystem,firenippedinthebud,themaximumreducethelossofsocialwealth.Thesystemcanbeinstalledinallfireunits,whichisresponsibleforcontinuouslymonitoringthesitetostarttheinspectionsignal,monitorthesiteoftemperature,第Ⅰ页2concentration,andcontinuousfeedbacktothealarmcontroller,thecontrollerwillreceivethesignalandthenormalmemorysettingvaluewasdeterminedbycomparingtodeterminethefire.Whenfireoccurs,canachievesoundandlightalarm,faultdiagnosis,concentrationdisplay,alarmlimitsettings,delayalarmandserialcommunicationwiththehostcomputerisasimplestructure,stableperformance,easytouse,inexpensive,intelligentsmokesensor,hassomepracticalvalue.Keywords:SCMfirealarmsensor第Ⅱ页第1页第1章绪论1.1选题背景及意义火灾是可燃物在时间或空间上失去控制的燃烧所造成的灾害,是威胁公众安全和社会发展的主要灾害之一。火,在给人类带来文明进步、光明和温暖的同时也在其失去控制之时给人类造成了巨大的灾难。据统计,我国70年代火灾平均损失不到2.5亿元,80年代火灾平均损失接近3.2亿元。进入90年代,特别是1993年以来,火灾造成的直接损失上升到年均十几亿元,年均死亡2000多人。严峻的事实证明,随着社会和经济的发展,社会财富日益增加,火灾给人类、