【正文】
山 東 大學 電 氣工程學院 畢 業(yè) 設 計 論 文 設計(論文)題目: 基于單片機的溫度控制系統(tǒng)設計 學生姓名:趙洪 學 院:電氣工程學院 專 業(yè):電氣工程及其自動化 年 級: 2020 指導教師:顏世剛 2020 年 6 月 18 日 I 基于單片機的溫度控制系統(tǒng)設計 摘要 溫度作為一個重要的物理量,是工業(yè)生產(chǎn)過程中最普遍、最重要的參數(shù)之一,所以溫度測 量技術(shù)和測量儀器的研究是一個重要的課題。隨著時代的進步和發(fā)展,單片機技術(shù)已經(jīng)伸入到各個領域,基于單片機數(shù)字溫度控制系統(tǒng)與傳統(tǒng)的溫度控制系統(tǒng)相比,具有讀數(shù)方便,測溫范圍廣,其輸出溫度采用數(shù)字顯示,本文將介紹一種基于單片機控制的數(shù)字溫度控制系統(tǒng) 。 本文從硬件和軟件兩方面來講述 學校浴室 水溫自動控制過程 ,在控制過程中主要應用 AT89S51, 通過 DS18B20 數(shù)字溫度傳感器采集環(huán)境溫度,以單片機為核心控制部件,并通過四位數(shù)碼管顯示實時溫度的一種數(shù)字溫度 控制系統(tǒng) 。軟件方面采用匯編語言來進行程序設計,使指令的執(zhí)行速度快 ,節(jié)省存儲空間。為了便于擴展和更改,軟件的設計采用模塊化結(jié)構(gòu),使程序設計的邏輯關系更加簡潔明了,使硬件在軟件的控制下協(xié)調(diào)運作。 [1] 關鍵詞: 單片機;傳感器 ; 溫度 II The design of control system of temperature based on MCU Abstract Temperature is an important physical quantity, is the most mon industrial production process, technology is one of the most important parameters, so the research on temperature measurement technology and instruments is an important subject. With the era of progress and development, SCM technology has extended to various fields, pared with the traditional thermometer digital thermometer based on singlechip microputer, the reading convenience, a wide range of temperature measurement, digital output temperature display, this paper will introduce a kind of digital thermometer based on single chip microputer. In this paper, from two aspects of hardware and software about school bathroom automatic temperature control process, the control process is mainly used AT89S51, mainly through the DS18B20 digital temperature sensor to collect the environmental temperature, the singlechip microputer as the core control ponent, and through four digital tube display realtime temperature of a digital thermometer. Software using assembly language to program design, so that the instruction execution speed, save the memory space. In order to facilitate the expansion and the change, the software design uses the modular structure, make the logic relation of designing program more concise, making hardware tocoordinatetheoperation under the software control. Keywords: SCM。 sensor。 temperature。 1 目錄 摘要 ........................................................ I ABSTRACT.................................................... II 目錄 ........................................................ 1 第一章 緒論 .................................................. 1 ....................................... 1 .......................................... 1 ....................................... 2 本章小結(jié) ................................................ 2 第二章 溫度控制系統(tǒng)方案選擇 .................................. 3 方案一 .................................................. 3 方案二 .................................................. 3 方案比較與選擇 .......................................... 3 本章小結(jié) ................................................ 4 第三章 DS18B20 溫度傳感器簡介 ................................. 5 DS18B20 的內(nèi)部結(jié)構(gòu)及特點 ................................. 5 DS18B20 的內(nèi)部結(jié)構(gòu) ................................... 5 DS18B20 的性能特點 .................................. 6 DS18B20 的工作原理 ....................................... 7 DS18B20 工作時序 .................................... 7 2 ROM操作命令 ......................................... 9 DS18B20 的測溫原理 ...................................... 10 DS18B20 的測溫原理 .................................. 10 DS18B20 的測溫流程 .................................. 11 第四章 系統(tǒng)硬件電路設計 ...................................... 12 設計原則 ............................................... 12 主板電路設計 ........................................... 12 各部分電路 ............................................. 13 第五章 系統(tǒng)軟件設計 ......................................... 18 系統(tǒng)軟件設計整體思路 ................................... 18 系統(tǒng)程序流圖 ........................................... 18 調(diào)試 .................................................. 23 第六章 結(jié) 論 ................................................ 24 參考文獻 ...