基于51单片机的火灾报警系统的设计.docx
摘要
本文针对小型单位防火系统的预警措施,应用主控芯片AT89C51,设计了一个具
有多路温度采集、显示,烟雾气体采集及显示和报警功能的消防火灾报警控制系统。
本文主要应用主控芯片89C51、温度传感器DS18B20、气体传感器TGS202、A/D转换芯片ADCO809、译码驱动芯片74ALS574、地址锁存器74LS373、七段数码显示管等设计了火灾自动报警系统的硬件电路,主要包括:温度的多路采集、温度的分析及显示、气体的采集及分析和显示、A/D转换电路和断路报警电路。此外,还增加了联
动部分的显示电路。
本文根据系统的需要,采用模块化思想,设计了软件流程图,编写了传感器初始化、温度信号采集、温度信号分析、气体信号采集、气体信号分析、火灾报警和断路
报警等程序。
本系统可以在意外火灾发生的情况下及时报警,具有精确度高、灵敏度高等优点,
特别适合在工业与民用建筑方面等小型单位使用。
关键词:单片机;火灾报警;传感器;A/D转换
Abstract
Inthispaper,fireprotectionsystemsforsmallunitsoftheearlywarningmeasures,
applicationAT89C51single-chip,designedamulti-channeltemperatureacquisition,
display,smokeandgasacquisitionanddisplayfunctionsofthefirealarmfirealarm
controlsystem.
Inthispaper,theapplicationofmaincontrolchip89C51,temperaturesensorDS18B20,gassensorTGS202,A/DconversionchipADC0809,decoderdriverchip74ALS574,addresslatch74LS373,seventhdigitaldisplaydesignedautomaticfirealarmsystem,thehardwarecircuit,including:temperaturemulti-channelcollection,analysisanddisplayoftemperature,gascollectionandanalysisanddisplay,A/Dconversioncircuit
andopencircuitalarm.Inaddition,anincreaseofjointpartofthedisplaycircuit.
Inthispaper,theneedsofthesystem,thinkingoftheuseofmodulardesignofthe
softwareflowchartforthepreparationofthesensorisinitialized,thetemperaturesignal
acquisition,signalanalysisoftemperature,gassignalacquisition,signalanalysisofsmoke
gases,firealarmandthealarmcircuit,suchasprocedures,andsuccessfulcommissioning.
Thesystemcanfireintheaccidentcaseofatimelywarning,withhighaccuracy,
sensitivity,etc.,especiallysuitableforuseinindustrialandciviluseofsmallunitsandso
On.
Keywords:SCM;Firealarm;Sensor;A/Dconversion
目录
摘要 i
Abstract ii
第一章绪论 1
第一节设计目的和意义及单片机在本课题中的应用 1
第二节火灾报警系统功能和基本原理 2
第三节本文主要设计内容 3
第二章火灾报警系统总体设计 4
第一节系统设计结构图