【正文】
DS18B20 keyed, has high speed, low merits and so on power loss, ultra strong ant jamming, is the present similar technology neutral price quite high product. May realize the acousticoptics take the STC89C52 monolithic integrated circuit and the MQ2 semiconductor resistance type gas sensor as the core design smog alarm apparatus to report to the police, the breakdown from the diagnosis, the density demonstrated, reports to the police limits the establishment, the time delay reports to the police and with functions and so in position machine serial port correspondence. Is one kind of structure simple, the performance stable, the easy to operate, the price inexpensive, the intellectualized smog alarm apparatus. This alarm system has certain practical value. Key words: Smoke。選用的STC89C52 單片機(jī),具有高速、低功耗、超強(qiáng)抗干擾等優(yōu)點,是目前同類技術(shù)中性價比較高的產(chǎn)品 。是一種結(jié)構(gòu)簡單、性能穩(wěn)定、使用方便、價格低廉、智能化的煙霧報警器。 本論文以電阻式煙霧傳感器和單片機(jī)技術(shù)為核心并與其他電子技術(shù)相結(jié)合,設(shè)計出一種技術(shù)水平較好的煙霧報警器。 I 基于 STC 單片機(jī)的火災(zāi)報警系統(tǒng)設(shè)計 摘 要 目前,隨著電子產(chǎn)品在人類生活中的使用越來越廣泛,由此引起的火災(zāi)也越來越多,在我們生活得四周到處潛伏著火災(zāi)隱患。為了避免火災(zāi)以及減少火災(zāi)造成的損失,我們必須按照“隱患險于明火,防患勝于救災(zāi),責(zé)任重于泰山”的概念設(shè)計和完善火災(zāi)自動報警系統(tǒng),將火災(zāi)消滅在萌芽狀態(tài),最大限度地減少社會財富的損失。 以 STC89C52 單片機(jī)和 MQ2 型半導(dǎo)體電阻式煙霧傳感器、 DS18B20 溫度傳感器為核心設(shè)計的煙霧報警器可實現(xiàn)聲光報警、濃度顯示、 溫度顯示及 報警限設(shè)置等功能。 其中選用 MQ2 型半導(dǎo)體 可燃?xì)怏w敏感元件 煙霧傳感器實現(xiàn)煙霧的檢測,具有靈敏度高、響應(yīng)快、抗干擾能力強(qiáng)等優(yōu)點,而且價格低廉,使用壽命長。本報警裝置 具有一定的實用價值。 alarm apparatus。 sensor III 目 錄 1 緒論 .............................................................................................................................. 1 前言 ................................................................................................................... 1 課題研究的背景和意義 ................................................................................... 1 國內(nèi)外的研究現(xiàn)狀 ........................................................................................... 2 本文內(nèi)容的結(jié)構(gòu)安排 ....................................................................................... 4 2 火災(zāi)報警系統(tǒng)整體方案設(shè)計 ...................................................................................... 5 火災(zāi)產(chǎn)生原理及過程 ....................................................................................... 5 系統(tǒng)總體方案設(shè)計 ........................................................................................... 6 系統(tǒng)硬件總體構(gòu)架 ................................................................................ 6 系統(tǒng)總體功能概述 ................................................................................ 7 裝置效果圖 ............................................................................................ 8 系統(tǒng)軟件總體構(gòu)架 ................................................................................ 8 火災(zāi)報警系統(tǒng)的類型 .................................................................................... 9 火災(zāi)探測器的原理 ......................................................................................... 10 3 火災(zāi)報警系統(tǒng)硬件設(shè)計 ............................................................................................ 12 系統(tǒng)核心芯片選擇與電路原理圖 ................................................................. 12 傳感器介紹 .......................................................................................... 12 液晶模塊 LCD1602 ............................................................................. 14 STC89C52 單片機(jī)芯片 ....................................................................... 16 ..4 A/D 轉(zhuǎn)換芯片 ..................................................................................... 19 單片機(jī)外圍接口電路 ..................................................................................... 21 晶振電路 .............................................................................................. 21 復(fù)位電路 .............................................................................................. 21 聲光報警電路 ...................................................................................... 22 按鍵電路 .............................................................................................. 24 4 火災(zāi)報警系統(tǒng)程序設(shè)計 ............................................................................................ 25 軟件開發(fā)環(huán)境 ................................................................................................. 25 火災(zāi)報警系統(tǒng)程序設(shè)計 ................................................................................. 25 數(shù)據(jù)采集程序 ...................................................................................... 26 IV 火災(zāi)報警數(shù)據(jù)處理方法 ...................................................................... 28 報警主程序 .......................................................................................... 31 5 報警裝置的調(diào)試 ........................................................................................................ 33 KeilC51 簡介 ................................................................................................... 33 程序調(diào)試的步驟 ............................................................................................. 34 程序調(diào)試過程中的問題及解決方法 ............................................................. 35 總結(jié)與展望 ...................................................................................................................... 37 致謝 .................................................................................................................................. 38 參考文獻(xiàn) .......................................................................................................................... 39 附錄 A ............................................................................................................................... 40 附錄 B ............................................................................................................................... 48 附錄 C ............................................................................................................................... 55 1 1 緒論 前 言