【正文】
性價(jià)比高等一系列的優(yōu)點(diǎn),在航空航天、鐵路交通、冶金、電力、石油化工、制造業(yè)等各個(gè)領(lǐng)域得到了廣泛應(yīng)用。隨著工業(yè)的進(jìn)步,目前人們對溫度的測量范圍越來越廣,對溫度的要求越來越高,同時(shí)對溫度的檢測技術(shù)要求也越來越高,因此對溫度測量技術(shù)的研究已經(jīng)成為目前的一個(gè)研究熱點(diǎn)。在高科技的推動之下,工業(yè)自動化儀表和控制裝置正在向數(shù)字化、智能化和網(wǎng)絡(luò)化的方向發(fā)展。 引言 古人有云“工欲善其事,必先利其器”,這句話告訴我們 工具的重要性。 Sound and light alarm 武昌工學(xué)院本科畢業(yè)論文(設(shè)計(jì))專用稿紙 1 目 錄 1 緒論 ................................................................................................... 1 引言 ................................................................................................................. 1 溫度測量技術(shù)的發(fā)展現(xiàn)狀 ............................................................................. 1 國內(nèi)外測溫技術(shù)存在的問題及發(fā)展動向 ..................................................... 2 本文設(shè)計(jì)要求 ................................................................................................. 3 2 溫度傳感器 DS18B20 ......................................................................... 4 方案選擇 ......................................................................................................... 4 溫度傳感器 DS18B20 介紹 ........................................................................... 4 DS18B20 與單片機(jī)的連接 ............................................................................. 7 3 數(shù)字溫度計(jì)硬件設(shè)計(jì) .......................................................................... 9 單片機(jī) 最小 系統(tǒng) ............................................................................................. 9 測溫電路設(shè)計(jì) ............................................................................................... 13 LCD1602 液晶屏顯示電路 ........................................................................... 14 按鍵控制電路設(shè)計(jì) ....................................................................................... 16 聲光報(bào)警電路設(shè)計(jì) ....................................................................................... 17 4 軟件系統(tǒng)設(shè)計(jì) ................................................................................... 18 系統(tǒng)軟件設(shè)計(jì)原則 ....................................................................................... 18 系統(tǒng)程序流程圖 ........................................................................................... 19 溫度轉(zhuǎn)換子程序 ........................................................................................... 19 溫度顯示子程序分析 ................................................................................... 20 程序代碼 ....................................................................................................... 23 總結(jié) microcontroller 。本系統(tǒng)還有一個(gè)特點(diǎn)就是可對溫度的顯示分辨率進(jìn)行設(shè)置。首先 DS18B20 芯片采集被測物體的實(shí)時(shí)溫度,然后將數(shù)據(jù)傳送給 AT89S51 單片機(jī),在單片機(jī)內(nèi)部進(jìn)行數(shù)據(jù)處理,數(shù)據(jù)處理完成后,將數(shù)據(jù)傳送給 LCD1602 液晶模塊,顯示當(dāng)前溫度。 本文設(shè)計(jì)的數(shù)字溫度計(jì)主要由控制器、溫 度檢測器、顯示器、按鍵控制電路和聲光報(bào)警電路五個(gè)部分組成。 本文采用 AT89S51 型 單片機(jī) 對數(shù)字溫度計(jì)進(jìn)行控制。 DS18B20 作為 美國DALLAS 公司生產(chǎn)的單線數(shù)字溫度傳感 芯片 ,具有 十分 獨(dú)特的單線總線接口方式。 特此聲明。因本畢業(yè)論文(設(shè)計(jì))引起的法律結(jié)果完全由本人承擔(dān)。 本科畢業(yè)論文(設(shè)計(jì)) 論文題目 : 基于單片機(jī)的數(shù)字溫度計(jì)的設(shè)計(jì) 姓名 : 學(xué)號 : 103001010329 班級 : 03 班 年級 : 2021 級 專業(yè) : 電氣工程及其自動化 學(xué)院 : 信息工程 學(xué)院 指導(dǎo)教師 : 完成時(shí)間 : 2021 年 5 月 11 日 作者聲明 本畢業(yè)論文(設(shè)計(jì))是在導(dǎo)師的指導(dǎo)下由本人獨(dú)立撰寫完成的,沒有剽竊、抄襲、造假等違反道德、學(xué)術(shù)規(guī)范和其他侵權(quán)行為。對本論文(設(shè)計(jì))的研究做出重要貢獻(xiàn)的個(gè)人和集體,均已在 文中以明確方式標(biāo)明。畢業(yè)論文(設(shè)計(jì))成果歸武昌工學(xué)院所有。 作者專業(yè): 電氣工程及其自動化 作者學(xué)號: 103001010329 作者簽名: 年 月 日 基于單片機(jī)的數(shù)字溫度計(jì)的設(shè)計(jì) 劉默揚(yáng) The design of digital thermometer based on single chip microputer Liu,moyang 2021 年 5 月 11 日 武昌工學(xué)院本科畢業(yè)論文(設(shè)計(jì))專用稿紙 1 摘 要 本文 對 一種基于 DS18B20 數(shù)字 溫度 計(jì)進(jìn)行了介紹 。 使用方便 , 誤差小,精度 高。首先對 AT89S51 單片機(jī)進(jìn)行介紹,然后詳細(xì)闡述了基于單片機(jī)控制的數(shù)字溫度計(jì)的設(shè)計(jì),主要從硬件和軟件兩方面進(jìn)行說明,最后在 Proteus 仿真軟件上對整個(gè)系統(tǒng)進(jìn)行測試仿真。 AT89S51 單片機(jī)作為控制器部分, DS18B20 芯片作為溫度檢測部分, LCD1602 液晶模塊作為顯示器部分,蜂鳴器和 LED 燈作為聲光報(bào)警部分。如果該溫度超過溫度測量范圍,則系統(tǒng)會自動聲光報(bào)警。 關(guān)鍵詞: DS18B20; 單片機(jī) ; LCD1602; 聲光報(bào)警 武昌工學(xué)院本科畢業(yè)論文(設(shè)計(jì))專用稿紙 2 Abstract This paper presents a DS18B20 based highprecision digital thermometer. DALLAS DS18B20 is an American pany producing wire digital temperature sensor chip, which has a very unique way of singlewire bus interface. Use more convenience, the accuracy is quite high. SCM has been widely used, the temperature detection and control system is the system to be measured, a volume control and maintain. This paper describes the hardware and software aspects of the design AT89S51 SCM temperature control system, the hardware schematic diagram and made a concise description of the program and, ultimately, on the Proteus simulation software simulation testing of the entire system. The system is designed to control the temperature of the system is determined by the temperature detectors, displays, sound and light alarm button control circuit circuit. Controller using ATMEL microcontroller AT89S51, temperature detection part using DS18B20 temperature sensor, with LCD1602 LCD monitors do, five independent parameters and key control systems as LED and buzzer alarm circuit. Singlechip temperature sensor DS18B20 collecting information on the deal, and then the temperature data is displayed on the LCD screen, and the system is able to determine the temperature beyond the set range can automatically alarm,This system is also characterized by the temperature display resolution can be set. Keywords: DS18B20。 LCD1602。24 主要 參考文獻(xiàn) ....................................................................................... 25 附 錄 ................................................................................................... 26 武昌工學(xué)院本科畢業(yè)論文(設(shè)計(jì))專用稿紙 1 1 緒 論 本章主要介紹了高精度電子溫度計(jì)的重要性和其目前發(fā)展現(xiàn)狀及其未來發(fā)展前景。隨著科技的快速發(fā)展,信息時(shí)代已經(jīng)到來,人們越來越認(rèn)識到測量儀器的重要性。然而作為工業(yè)生產(chǎn)過程中最不可或缺的物理量 —— 溫度,成為最重要的工藝參數(shù)之一。 隨著微電子技術(shù)以及計(jì)算機(jī)的快速發(fā)展,微機(jī)測量以及控制技術(shù)得到快速的發(fā)展并在市場上得到廣泛的應(yīng)用。此外,在微波爐、電冰箱、電視機(jī)、智能空調(diào)等日常生活中也有廣泛的應(yīng)用。 溫度測量技術(shù)的發(fā)展現(xiàn)狀 隨著科技的快速發(fā)展,溫度檢測技術(shù)也發(fā)展迅速,并取得了一系列的成果。溫度測量包括以下