【正文】
共 頁 第 頁 摘要 單片機(jī)技術(shù)已經(jīng)普及到我們生活,工作,科研,各個(gè)領(lǐng)域,已經(jīng)成為一種比較成熟的技術(shù) ,本文將介紹一種基于單片機(jī)控制的 數(shù)字溫度器 ,本溫度計(jì)屬于多功能溫度計(jì),可以設(shè)置上下報(bào)警溫度,當(dāng)溫度不在設(shè)置范圍內(nèi)時(shí),可以報(bào)警。 隨著現(xiàn)代工農(nóng)業(yè)技術(shù)的發(fā)展及人們對(duì)生活環(huán)境要求的提高,人們也迫切需要檢測(cè)與控制溫度。 本文通過采用 蜂鳴器作為電聲元件 的溫度報(bào)警器的設(shè)計(jì),闡明了該裝置進(jìn)行設(shè)計(jì)與制作的具體過程及方法。這種溫度報(bào)警器結(jié)構(gòu)簡(jiǎn)單,可操作性強(qiáng),應(yīng)用廣泛。工作時(shí),溫度測(cè)量范圍為 5— 38186。C。 當(dāng)前環(huán)境溫度若超過設(shè)定的高溫臨界溫度,由單 片機(jī)發(fā)出報(bào)警信號(hào), 從而防止帶來的不必要的損失。 造成高溫火災(zāi)有:電氣線路短路、過載、接觸電阻過大等引發(fā)高溫或火災(zāi);靜電產(chǎn)生高溫或或火災(zāi);雷電等強(qiáng)電侵入導(dǎo)致高溫或火災(zāi);最主要是機(jī)房?jī)?nèi)電腦、空調(diào)等用電設(shè)備長(zhǎng)時(shí)間工作,導(dǎo)致設(shè)備老化,空調(diào)發(fā)生故障,而不能降溫;因此機(jī)房?jī)?nèi)所屬的電子產(chǎn)品發(fā)熱快,在短時(shí)間內(nèi)機(jī)房溫度升高超出設(shè)備正常溫度,導(dǎo)致系統(tǒng)癱瘓或產(chǎn)生火災(zāi),這時(shí)溫度報(bào)警系統(tǒng)就會(huì)發(fā)揮應(yīng)有的功能。 關(guān)鍵詞 :STC89C51 單片機(jī),數(shù)字控制,溫度計(jì) , DS18B20, AT24C02 共 頁 第 頁 ABSTRACT Single chip technology has spread to we live, work, scientific research, each domain, has bee a mature technology, this paper introduces a kind of based on single chip microputer control digital temperature device, the thermometer belongs to the multifunction thermometer, can set up and down the temperature alarm, when the temperature is not set range, you can call the police. With modern industrial and agricultural technology and the development of people to the improvement of the living environment requirements, and people urgently need to test and control the temperature. Through the use of ponents of the buzzer as acoustic temperature alarm design, it is expounded that the device for the design and production of the specific processes and methods. The temperature alarm simple structure, the maneuverability is strong, wide application. Work, temperature measurement range for 538 186。 C. The current environment temperature if more than the high temperature of setting the critical temperature, issued a warning signal by singlechip microputer, thus preventing bring unnecessary losses. High temperature caused by fire are: electric short circuit, overload, contact resistance by too high temperature or fire。 Electrostatic generation high temperature or or fire。 Lightning and lead to high temperatures or high voltage into the fire。 The main room is in air conditioning equipment such as puter, electricity work long hours, cause of old equipment, air conditioning fault, and can39。t cooling。 So the tele room belongs to electronic products fever fast, in a short time, puter room temperature beyond normal temperature equipment, cause the system to produce paralysis or fire, when temperature alarm system will play its function. Keywords: STC89C51 microcontroller, digital control, thermometer, DS18B20, AT24C02 共 頁 第 頁 目 錄 摘要 ..................................................................................................................... 1 ABSTRACT......................................................................................................... 2 目 錄 ................................................................................................................... 3 第一章 設(shè)計(jì)要求與方案論證 ....................................................................... 5 設(shè)計(jì)要求 ....................................................................................................... 5 系統(tǒng)基本方案選擇和論證 ........................................................................... 5 單片機(jī)芯片的選擇 方案和論證 ........................................................ 5 溫度傳感器設(shè)計(jì)方案論證 ................................................................ 6 掉電保持方案論證 ............................................................................ 6 電路設(shè)計(jì)最終方案決定 .............................................................................. 7 第二章 主要元件介紹 ................................................................................... 7 STC89C51 介紹 ............................................................................................ 7 STC89C51 主要功能及 PDIP 封裝 .................................................... 7 STC89C51 引腳介紹 .......................................................................... 8 單片機(jī)最小系統(tǒng): ............................................................................ 9 DS18B20 傳感器介紹 ................................................................................. 10 DS18B20 概述 ................................................................................... 10 DS18B20 引腳介紹 ........................................................................... 11 DS18B20 的內(nèi)部結(jié)構(gòu) ....................................................................... 11 DS18B20 的程序流程圖 ................................................................... 12 數(shù)碼管介紹 ................................................................................................ 13 數(shù)碼管概述 ...................................................................................... 14 AT24C02 簡(jiǎn)介 ............................................................................................. 14 I2C 總線說明 .................................................................................... 15 第三章 程序流程圖 ..................................................................................... 18 結(jié)論 ................................................................................................................... 19 共 頁 第 頁 參考文獻(xiàn) ........................................................................................................... 20 致 謝 ................................................................................................................. 21 附錄 A 電路原理圖 .......................................