【正文】
力 400ppm 12 小時內前額疼痛, 3 小時后威脅生命 800ppm 45 分鐘內眼花、惡心、痙攣; 2小時內失去知覺; 23小時內死亡 1600ppm 20 分鐘內頭痛、眼花、惡心;一小時內死亡 3200ppm 510分鐘內頭痛、眼花、惡心; 2530 分鐘死亡 12800ppm 13分鐘死亡 根據(jù)以上 數(shù)據(jù),可見煤氣泄漏時刻危害著人們的生命,當煤氣泄漏不僅可以使人中毒,而且還隨時可能發(fā)生爆炸的危險 ,面對煤氣泄漏而造成的種種事故威脅,我們需要一個解決辦法。在實驗室進行研究工作及工業(yè)現(xiàn)場施工時,也經(jīng)常出現(xiàn)因有毒氣體泄漏而引發(fā)的事故,有時甚至危及生命和財產(chǎn)安全。它又是煤氣中對人體危害最大的有毒氣體。但是由于使用不當或者設備老化等原因導致的煤氣泄漏極大的威脅著人們的生 命以及財產(chǎn)安全 CO是一種無色、無嗅、無味、無刺激性的氣體,幾乎不溶于水,當與空氣混合達到12. 5%~ 80%時具有爆炸性。 microcontroller。s lives, Gas leak incident occasionally, gas leak can make people explode, brought a lot of hidden dangers to personal safety and property security of people, so to prevent the gas leak detectionthe device has bee an urgent need, for the development of the gas leak alarm detection devices is necessary. The popularity of puter and microcontroller, and the rapid development of IT, people have been raised on the family residential environment a higher demand intelligence, information was introduced to the family, convenient, fortable and more secure. The definition of the family of intelligent, in the international munity so far there is no consistent philosophy in the modern urban and rural residential area and the use of microputer, automatic control devices, munication technologies such as the establishment of a property management center and the security monitoring system, the ultimate aim is each congratulate get the best solution to meet their requirements. These are sufficient to show that the security focus. The provisions of the Ministry of Construction, the residential area should achieve six intelligent, including the implementation of the automated monitoring and management of security system。本系統(tǒng)有如下特點:用單片機實現(xiàn)控制,電路簡單、價格便宜、可靠性好。而且國家建設部規(guī)定,目前住宅小區(qū)應實現(xiàn)六項智能化要求,其中就包括實行安全防范系統(tǒng)自動化監(jiān)控管理;防盜報警系統(tǒng)應安紅外或微波與煤氣泄漏報警器等各種類型報警裝置,基于此項規(guī)定,煤氣泄漏檢測報警裝置實現(xiàn)智能化勢在必行。 家庭智能化的定義,在國際上至今尚無一致的理念,在現(xiàn)代化的城鄉(xiāng)住宅小區(qū)中和采用微型計算機、自控裝置、通信等技術,建立一個物業(yè)管理中心與安全防護監(jiān)控系 統(tǒng),最終的目的是使每一個祝賀得到滿足其要求的最佳方案。 I 摘 要 煤氣已成為人們生活中必不可少的能源了,煤氣泄漏時有發(fā)生,煤氣泄漏使人中毒,可能會發(fā)生爆炸,給人們的人身安全和財產(chǎn)安全帶來了很多隱患,所以防止煤氣泄漏檢測裝置已成為人們迫切的需要,為此開發(fā)煤氣泄漏報警檢測裝置是非常必要的。 計算機以及單片機的普及和信息技術的迅猛發(fā)展,人們已經(jīng)對家庭住宅環(huán)境提出了更高的要求,智能化、信息化被引入家庭,便利,舒適而且更加安全。這些足以表明人們最注重的還是安全。 本系統(tǒng)主要針對傳統(tǒng)煤氣,液化氣的泄漏進行檢測,報警。采用增強型 51 單片機, MQ2 氣體傳感器,煤氣泄漏是會發(fā)出燈光和聲音的報警,因此本系統(tǒng)可作為 智能家居的一個安全系統(tǒng)! 關鍵詞: 煤氣泄漏;單片機;氣體傳感器 II Abstract Gas has bee an essential energy in people39。 burglar alarm system should be infrared or microwave, gas leak alarms, and other types of alarm devices, based on this paragraph, gas leak detection alarm device intelligence is imperative. This system is mainly for conventional gas, liquefied petroleum gas leak detection, alarm. This system has the following characteristics: with MCU control circuit is simple, cheap, and good reliability. Enhanced 51 microcontroller, the MQ2 gas sensors, gas leak emits light and sound the alarm, this system can be used as a smart home security system! Keywords: gas leak。 gas sensor III 目錄 1 引言 .............................................................. 1 煤氣泄漏檢測報警裝置的背景及意義 ............................................................. 1 煤氣泄漏報警器的現(xiàn)狀 ..................................................................................... 2 設計任務 ............................................................................................................. 3 2 煤氣泄漏檢測報警裝置的方案設計 .................................... 4 設計思想 ............................................................................................................. 4 氣體傳感器的選型 ............................................................................................. 4 氣體傳感器介紹 ………………………… ……………………………… 4 氣體傳感器的選定 ……………………………………………………… 7 煤氣泄露報警系統(tǒng)的整體設計方案 ................................................................. 8 煤氣泄露報警器工作原理 ……………………………………………… 8 煤氣泄露報警器的結構 ………………………………………………… 8 裝置功能說明 ..................................................................................................... 9 裝置主體圖 .......................................................................................................... 9 3 煤氣泄漏檢測報警裝置的硬件部分設計 .............................. 10 STC12C5A60S2 系列單片機簡介 .................................................................... 10 STC12C5A60S2 系列單片機的內部結構 ........................................................ 12 管腳說明 ……………………………………………………………… .12 引腳電路的連接 ……………………………………………………… ..14 振蕩器特性 …………………………………………………………… .15 單片機領域前景及發(fā)展狀況 ........................................................................... 15 STC12C5A60S2 系列單片機最小應用系統(tǒng) .................................................... 16 電源電路 ……………………………………………………………… .16 時鐘電路 ……………………………………………………………… .17 復位電路 ……………………………………………………………… .18 IV 傳感器電路 ....................................................................................................... 19 MQ2 傳感器介紹 …………………………………………………… ...19 傳感器電路的連接 …………………………………………………… .21 顯示電路 ........................................................................................................... 21 串口下載模塊 ................................................................................................... 22 關于 RS232………………………………………………………… ...22 4 煤氣泄漏檢測報警裝置的軟件部分設計 ............................... 24 主程序設計流程與編程 ................................................................................... 24 主程序設計流程圖 …………………………………………………… .24 A/D 轉換模塊的編程 ........................................................................................ 26 A/D 轉換模塊的結構 ………………………………………………... 26 A/D 轉換模塊程序 ………………………………………………… ...26 5110 液晶模塊的編程 .................................................................................... 27 液晶模塊編程模式 …………………………………………………... 27 液晶模塊程序 ……………………………………………………… ...27 報警主程序 ..................................................................................................... 31 5 煤氣泄漏