华科学院本科毕业设计(论文)
基于单片机的火灾报警系统设计
摘要
随着世界科技取得了突飞猛进的进步和各种新兴技术的出现和发展,火灾监测技术也相应迅速发展,各种类型的火灾探测器相继问世,并日臻完善,火灾自动报警系统也在此基础上逐渐地蓬勃发展起来。本设计对传感器特别是对烟雾传感器进行了深入研究,对其用法进行了新的探索,立足于实用、广泛和典型的原则设计了本作品。本设计利用STC12C5A60S2单片机,结合MQ2烟雾传感器和数字温度传感器18B20,设计了一种较为实用的火灾报警系统。单片机控制核心选为国产STC12C5A60S2,此款单片机整合了高速数模转换转换器、PWM调制器等资源。用MQ2半导体可燃气体敏感元件电阻式传感器实现对于烟雾和可燃气体的检测,这种传感器可检测多种可燃性气体,是一款适合多种应用的低成本传感器。18B20是一款单总线测量精确的温度传感器。该火灾报警系统步进电机与、故障自诊断、可燃气体浓度显示、传感器预热等功能。当烟雾浓度或环境温度高于设定值,蜂鸣器报警,驱动电机打开一定角度,开启阀门。是一种制作简单、性能优越、成本低廉的火灾报警系统。
关键词:STC12C5A60S2,18B20温度传感器,MQ2烟雾传感器,蜂鸣器报警
I
f句国伟:基于单片机的火灾报警系统设计
II
f华科学院本科毕业设计(论文)
Thefirealarmsystembasedo
si
glechipmicrocomputer
Abstract
Astheworldhasmadeprogressbyleapsa
dbou
dsofscie
cea
dtech
ologya
dtheemerge
ceofallki
dsofemergi
gtech
ologya
ddevelopme
toffiredetectio
tech
ologyisalsocorrespo
di
grapiddevelopme
tthevarioustypesoffiredetectorappeareda
dmoreperfectautomaticfirealarmsystemiso
thebasisofgraduallyflourishedThedesig
ofse
sorwerestudiedespeciallyforsmokese
soritsuseforthe
ewexploratio
basedo
practicalwidelya
dtypicalpri
cipleofdesig
forthisworkThisdesig
USESSTC12C5A60S2microco
trolleri
combi
atio
withMQ2smokese
sora
ddigitaltemperaturese
sor18b20desig
aki
dofcomparativelypracticalfirealarmsystemSi
glechipmicrocomputerco
trolcoreselectedasdomesticSTC12C5A60S2thisMCUi
tegratesresourcessuchashighspeeddigitaltoa
alogco
verterPWMmodulatorUseMQ2semico
ductorgasse
sitiveeleme
tresista
cese
sorimpleme
tatio
forsmokea
dcombustiblegasdetectio
these
sorca
detectma
yki
dsofcombustiblegasisalowcostse
sorsuitableforma
yapplicatio
s18b20isameasureme
tprecisio
ofsi
glebustemperaturese
sorSteppermotora
dthefirealarmsystemfaultselfdiag
osiscombustiblegasco
ce
tratio
displayse
sorspreheati
ga
dotherfu
ctio
sWhe
thesmokeco
cr