【正文】
畢業(yè)論文 I 基于 AT89C52 單片機(jī)的 CO 濃度監(jiān)控系統(tǒng)設(shè)計(jì) 摘 要 一氧化碳監(jiān)控系統(tǒng)是一種用于公共場(chǎng)所及室內(nèi)具有檢測(cè)及超限報(bào)警控制的系統(tǒng)。其設(shè)計(jì)方案基于 AT89C52 單片機(jī),選擇瑞士蒙吧波公司的 CO/CF1000 一氧化碳傳感器。系統(tǒng)將傳感器的標(biāo)準(zhǔn)信號(hào)通過 AD0832 為核心的 A/D 轉(zhuǎn)換電路調(diào)理后,經(jīng)由單片機(jī)進(jìn)行數(shù)據(jù)處理,最后由 LCD 顯示一氧化碳濃度值。 文中詳細(xì)介紹了數(shù)據(jù)采集子系統(tǒng)、數(shù)據(jù)處理過程以及數(shù)據(jù)顯示子系統(tǒng)和報(bào)警電路的設(shè)計(jì)方法和過程。系統(tǒng)對(duì)于采樣地點(diǎn)超出規(guī)定的一氧化碳容許濃度時(shí)采用三極管驅(qū)動(dòng)的單音頻報(bào)警電路提醒 監(jiān)測(cè)人員。同時(shí),操作人員對(duì)于具體報(bào)警點(diǎn)的上限值可以通過單片機(jī)編程進(jìn)行設(shè)置。另外,該系統(tǒng)對(duì)濃度信號(hào)進(jìn)行了信號(hào)補(bǔ)償?shù)忍幚?,減少了測(cè)量誤差 。因此,具有較高的測(cè)量精度,而且結(jié)構(gòu)簡(jiǎn)單,性能優(yōu)良。 以往檢測(cè)系統(tǒng)最大的缺點(diǎn)是系統(tǒng)龐大復(fù)雜、造價(jià)昂貴,不適合中使用及推廣。針對(duì)此需求,設(shè)計(jì)中盡可能使用較少器件 , 在功能得到保證的前提下,力求系統(tǒng)構(gòu)造簡(jiǎn)單、成本低。 關(guān)鍵詞 一氧化碳檢測(cè);單片機(jī);數(shù)據(jù)采集處理系統(tǒng) 畢業(yè)論文 II The Design of the Monitoring CO System by MCU Abstract Carbon monoxide detector is a kind of equipment used in public or indoor areas to detect the concentration of carbon monoxide and alarm when it exceeds a certain limit. In this design, AT89C52 MCU and CO/CF1000 carbon monoxide sensor produced by Membrapor of Switzerland are employed. The standard signal given by the sensor is initially adjusted by A/D conversion circuit using AD0832 as its core, processed by MCU, and finally the carbon monoxide level was demonstrated in LCD. This paper is a detailed introduction about the design methods and processes of data acquisition, processing, display subsystem and alarm circuit. Once the concentration of carbon monoxide is more than that permitted, the whole system will warn the monitors with single audio alarm circuit driven by transistor. Meanwhile, the operators can set the upper limit of alarm value by MCU programming. In addition, the system makes signal pensation to the concentration to minimize the measurement deficiency. As a result, the system characterizes as having high measurement accuracy, simple structure as well as excellent performance. The greatest disadvantages of the previous inspection system is plex and plexity,so they’re not suitable for the use and promotion of small and medium coal mines. According to this need, the design will use devices as less as possible,and try to keep the system structure simple and costs low under the premise of ensuring the functional. Keywords Carbon Monoxide Detection。 MCU。 Data Acquisition Processing System 畢業(yè)論文 III 目 錄 第 1 章 緒論 ....................................................................................................................... 1 設(shè)計(jì)背景 ................................................................................................................ 1 一氧化碳檢測(cè)儀的種類 ........................................................................................ 1 研究?jī)?nèi)容及預(yù)期目標(biāo) ............................................................................................ 3 課題總體設(shè)計(jì) ........................................................................................................ 3 第 2 章 主芯片的選型及最小系統(tǒng)設(shè)計(jì) ........................................................................... 4 主控芯片選型 ........................................................................................................ 4 AT89C52 的特點(diǎn)及在本設(shè)計(jì)中的應(yīng)用 ................................................................. 6 AT89C52 單片機(jī)的引腳的介紹 ................................................................ 6 單片機(jī)最小系統(tǒng)的設(shè)計(jì) ........................................................................... 9 硬件總體構(gòu)成框圖 .............................................................................................. 11 小結(jié) .................................................................................................................... 12 第 3 章 系統(tǒng)硬件電路的設(shè)計(jì) ......................................................................................... 13 數(shù)據(jù)采集系統(tǒng)的設(shè)計(jì) .......................................................................................... 13 傳感器的設(shè)計(jì) .......................................................................................... 13 A/D 轉(zhuǎn)化器的設(shè)計(jì) .................................................................................. 14 人機(jī)接口電路設(shè)計(jì) .............................................................................................. 16 按鍵的設(shè)計(jì) .............................................................................................. 16 液晶顯示器的設(shè)計(jì) ................................................................................. 16 外圍擴(kuò)充存儲(chǔ)器的設(shè)計(jì) ...................................................................................... 19 時(shí)鐘芯片的設(shè)計(jì) .................................................................................................. 19 上拉電阻的設(shè)計(jì) .................................................................................................. 21 報(bào)警電路的設(shè)計(jì) .................................................................................................. 22 電機(jī)控制電路的設(shè)計(jì) .......................................................................................... 23 SSR 固態(tài)繼電器的介紹 .......................................................................... 23 單片機(jī)對(duì)電機(jī)排風(fēng)的設(shè)計(jì) ...................................................................... 23 小結(jié) ...................................................................................................................... 24 第 4 章 系統(tǒng)軟件設(shè)計(jì) ..................................................................................................... 25 系統(tǒng)軟件結(jié)構(gòu)設(shè)計(jì) .............................................................................................. 25 系統(tǒng)總程序設(shè)計(jì) .................................................................................................. 26 數(shù)據(jù)采集子程序設(shè)計(jì) .......................................................................................... 27 按鍵程序設(shè)計(jì) ...................................................................................................... 28 時(shí)鐘控制子程序設(shè)計(jì) .......................................................................................... 29 液晶顯示子程序設(shè)計(jì) .......................................................................................... 30 報(bào)警子程序設(shè)計(jì) ...................................................................................