【正文】
基于單片機的電阻爐溫度控制系統(tǒng)設計 學 院 自動化學院 專 業(yè) 自動化 班 級 XXXX 學 號 XXXXXX 姓 名 snowcafe 指導教師 XXX qq 597997026 沈陽航空 航天大學 2020 年 6 月沈陽航空航天大學畢業(yè)設計(論文) I 摘 要 在工業(yè)生產 過程 中, 往往 需要對各類加熱爐、熱處理爐、反應爐的溫度進行檢測和 調節(jié),因此需要一種合適的系統(tǒng)對其溫度進行 精確 控制,由于 單片機具有低功耗、高性能、可靠性好、易于產品化等特點,因此 采用單片機對溫度進行控制不僅 節(jié)約成本, 控制 方法靈活多樣,并且 可以 達到較高的控制精度 ,從而能夠大大提高產品的質量 ,因此單片機被廣泛應用在中小型控制系統(tǒng)中。 本論文以電阻爐為研究對象,開發(fā)了基于單片機的溫度控制系統(tǒng)。本溫度控制系統(tǒng)按功能分主要包括溫度傳感器模塊、 數(shù)據(jù)處理模塊、 溫度顯示 /設定模塊和溫度控制模塊。溫度傳感器采用了數(shù)字式溫度傳感器 DS18B20,對溫度進行實時采樣并將模擬信號轉換成數(shù)字信號返回給單片機。系統(tǒng)可通過鍵盤對 電阻爐 水溫進行預設,單片機根據(jù)當前爐內溫度和預設溫度進行運算,控制輸出寬度可調的 PWM 方波,并由此控制雙向可控硅 的導通和關斷來調節(jié)電熱絲的加熱功率,從而使水溫迅速達到預設值并保持恒定不變。 設計過程中, 首先 進行軟件設計和 開發(fā) , 使系統(tǒng)功能模塊化并分別通過 Proteus軟件進行仿真,實現(xiàn)功能后對硬件進行了綜合設計,并且反復論證、測試各器件參數(shù)以使其穩(wěn)定運行, 最終使得此系統(tǒng)實現(xiàn)了溫度的恒溫控制。 關鍵詞 : 單片機 ; 溫度傳感器 ; 可控硅 ; 溫度控制 基于單片機的電阻爐溫度控制系統(tǒng)設計 II Design and Implementation of a Temperature Control System Based on the Single Chip Microcontroller Abstract In the industrial production process, often require various types of furnace, heat treatment furnace, reactor temperature detection and regulation, so it needs a proper system of precise control of its temperature, as low power consumption single chip, high performance, reliability, easytomarket modity and so on, so to control the temperature using SCM not only save on cost, control method of flexible and diverse, and can achieve higher precision, which can greatly enhance the quality of the product, so SCM is widely used in the Small control system. In this study, the Temperature Control System design. As a typical application Temperature Control System is the integrated use of the puter theory, control theory, analog electronics, digital control technology, keyboard, display technology, and many other areas of knowledge. Temperature sensor uses digital temperature sensor DS18B20, realtime sampling of the temperature and analog signals into digital signals back to the SCM. System can be preset through the keyboard on the temperature, microcontroller based on the current temperature and the preset temperature of the furnace operation, PWM control output square wave with adjustable width, and thus control the triac onand off to regulate the electric wire heating power, so that the water temperature quickly reach and maintain constant preset value. The design process, first of all the software design and development, making the system functional module and through the Proteus software simulation, respectively, to achieve feature an integrated design of the hardware, and repeated demonstration, testing the device parameters to make it stable operation, and ultimately make This system has realized the constant temperature control. Keywords: MCS51, temperature sensor, SCR,temperature control 沈陽航空航天大學畢業(yè)設計(論文) III 目 錄 1 緒論 ................................................................................................................................... 1 簡介 ............................................................................................................................. 1 課題研究的內容及要求 ............................................................................................. 2 課題的主要研究的內容 ...................................................................................... 2 本系統(tǒng)的功能 ...................................................................................................... 3 本文的主要內容 ......................................................................................................... 3 方案 1.......................................................................................................................... 4 方案 2.......................................................................................................................... 4 方案論證 ..................................................................................................................... 5 2 電阻爐溫度控制系統(tǒng)工作原理 ....................................................................................... 6 溫度控制總體設計方案 ............................................................................................. 6 溫度傳感器模塊 ......................................................................................................... 7 DS18B20 基本知識 .............................................................................................. 7 DS18B20 產品的特點 .......................................................................................... 8 DS18B20 的引腳介紹 .......................................................................................... 8 DS18B20 的 4 個主要部件 ................................................................................ 10 溫度采集模塊電路圖 ........................................................................................ 12 數(shù)據(jù)處理模塊 ........................................................................................................... 13 單片機的發(fā)展方向 ............................................................................................ 13 STC89C52 系列主要性能參數(shù) .......................................................................... 13 STC89C52 存儲器配置 ...................................................................................... 17 溫度顯示模塊 /設定模塊 .......................................................................................... 21 溫度顯示部分 .................................................................................................... 22 溫度設定部分 .................................................................................................... 26 溫度顯示 /設定模塊電路圖 ............................................................................... 26 基于單片機的電阻爐溫度控制系統(tǒng)設計 IV 溫度控制模塊 ........................................................................................................... 28 可控硅 BTA16..........................................................