您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 工程监理 > 基于AT89S52单片机的火灾自动报警系统的仿真设计
基于AT89S52单片机的火灾自动报警系统的仿真设计吴 敏,刘旭明(, 211169) :,,。、。,,、、、,。,,,、、,。:AT89S52;;;:TP368.1 :A :1672-755X(2012)03-0029-05TheSimulationDesignofAutomaticFireAlarmSystemBasedonAT89S52Single-chipMicrocomputerWUMin,LIUXu-ming(JinglingInstituteofTechnology,Nanjing211169,China)Abstract:Automaticfirealarmsystemismainlyusedinvarioushigh-risebuildingsandpublicfacilitiestorealizethefunctionofafireearlywarning,andtoreducefiredamage.Thedesignofautomaticfirealarmsystemisbasedonthemodularizeddesign,usingthesingle-chipasacore.Thesoftwareflowchart,andtheprogramsofsensorinitialization,temperaturesignalcollection,smokeconcentrationsignalcollection,audibleandvisualalarmareprovidedsoastosatisfythesystem’sneeds.Ultimately,theprogramsaresimulatedsuccessfully.Inthissystem,audibleandvisualalarmwillemergeatthesametimewhenambienttemperatureandsmokeconcentrationexceedtheupperlimitvalues.Thedesignnotonlygreatlyreducestherateoffalsefirealarm,butalsohasmanyadvantagesofhighprecision,highsensitivity,andawiderangeofapplication.Sothissystemisespeciallysuitablefortheusageinindustrialandcivilarchitecture.Keywords:AT89S52;temperaturesensor;smoketransducer;automaticfirealarm,、、,。,,“,,”,、、。,、PLC、、。、、、,,:2012-09-18:(1983-),,,,,、。。,,。1,,。1 、、、,,,,,1。1 Fig.1 Thesystemstructure2 2.1 ,。、,,;。,,,,,。,。,ATMELAT89S52。AT89S52、CMOS8,ATMEL、,4KBISP(In-systemprogramma-ble)1000Flash,128B(RAM),32/(I/O),5,2,216,2,(WDT),[1]。80C52,80C52,80C52[2]。2.2 A/D,AT89S52,,CMOS8,8A/D——ADC0809。ADC080918、1、1A/D1。8,8,A/D。A/D,OE,[3]。ADC08092,CLK500kHz,1,protues3。2.3 MQ-2[4]。1,A/DIN3。+5V(255),,2。,50%,IN32.5V(128),50%,。50%,IN32.5V(128),50%,,4。2.4 DALLASDS18B20。:30 282 Fig.2 Thesystemsimulation3 Fig.3 Thepulsetriggerofdigitalclock1),,I/O,,(9,);2)-55°C~+125°C,0.0625;3)64ROM;4);5)、;6)[5]。DS18B201,12,,,,,,,。DS18B201,3,25.1kΨ,P0.0。1,,DQ,2。60°C,,,5。AT89S52P1.0、P1.3、P1.4D1、D2、D3。,;60°C、50%,D3;50%、60°C,D2;,50%,60°C。313 ,:AT89S52 4 , 5 60°CFig.4 Theyellowindicatorwillalarmwhensmoke Fig.5 Theindicator’sstatusatthetemperatureconcentrationexceedstheupperlimitvalueexceeding60°C2.5 AT89S522,,P0.7,,NPN,。,P0.7,,[6]。3 AT89S52A/D,,。,、,。:00H、01H、02H;。:1)2。≥60°C,,1,0;≥50%,,1,0。20,,53H56H00H;211,,01H;21,,02H。2)2,。53H56H,,;。02H,,。01H,。00H,。,、,6。4 AT89S52,Protues。7(a)(b)73%111°C,,7(c),。AT89S52、、、,、、、、、,。,,、,。32 286 Fig.6 Totalprogramandsubprogramofthesystem7 Fig.7 Thesystem’senvironmentstatesandthesimulationdisplayofalarmlamps’states:[1].ATMELAT89S52[M].:,2005:26-61[2],.AT89C52[J].,2004(3):16-18[3].ADC0809[J].,2012(1):169-170[4],.[M].:,2006:281-286[5],.DS18B20[J].,2003(1):27-28[6],,.PROTEUS[M].:,2009:227-303333 ,:AT89S52
本文标题:基于AT89S52单片机的火灾自动报警系统的仿真设计
链接地址:https://www.777doc.com/doc-4957769 .html