【正文】
安徽建筑大學(xué) 畢 業(yè) 設(shè) 計 ( 論 文) 專 業(yè) : 測控技術(shù)與儀器 班 級 : 二班 學(xué)生姓名 : 胡磊 學(xué) 號 : 09210040203 課 題 : 鍋爐溫度控制系統(tǒng)設(shè)計 指導(dǎo)老師 : 紀(jì)明偉 2020 年 06 月 14 日 安徽建筑 大學(xué) 畢業(yè)設(shè)計(論文) 摘 要 在調(diào)查對當(dāng)前采暖需求情況的基礎(chǔ)上, 根據(jù) 小型家用燃氣鍋爐的 工作 特點, 再 結(jié)合工程實際需要, 研究 了基于 MCS51 單片機的家用燃氣鍋爐溫度控制系統(tǒng),旨在 解決 使用燃煤鍋爐集中采暖時所遇到的鍋爐溫度不易控制 的問題 ,改進家庭采暖的控制方式,提高采暖的經(jīng)濟性。利用 Protel99se 軟件 設(shè)計電路 ,對智能控制器的電源電路、報警電路、時鐘電路、復(fù)位電路、 LCD 液晶顯示電路以及控制器的核心 — 溫度采集電路進行了設(shè)計。電源采用三端集成穩(wěn)壓器 W7800 (W7900)系列元件 7805,交流 220 v電壓轉(zhuǎn)換為單片機所需要的 5V電壓;利用 AT89S51 作為控制器的核心器件;利用集成電路溫度傳感器 DS18B20 測量鍋爐水溫 。并 將測量的水溫與設(shè)定值比較,另外 系統(tǒng)使用 LCD 液晶顯示器顯示當(dāng)前水位、水位的上下限值、當(dāng)前采集的溫度值 和 預(yù)先設(shè)定的溫度報警值。當(dāng)溫度超過 所 設(shè)定的報警溫度值,系統(tǒng) 將 發(fā)出報警聲音,同時關(guān)閉鍋爐燃燒器。等待溫度降到下限值,這時就可以重新鍋爐燃燒器通電,繼續(xù)加溫,如此反復(fù)監(jiān)控溫度。這樣就可以提高能源的使用率 , 節(jié)約能源。針對系統(tǒng)的 特點和要求 ,在 上述硬件電路及實現(xiàn)方法的基礎(chǔ)上,利用匯編語言,設(shè)計了基于單片機的鍋爐溫度控制系統(tǒng)??刂栖浖饕囟群蜏囟炔杉映绦颉⑺豢刂瞥绦?、 LCD 液晶顯示子程序等。 關(guān)鍵詞 : 單片機; 溫度控制 ; DS18B20; 燃氣鍋爐 ; LCD; 安徽建筑 大學(xué) 畢業(yè)設(shè)計(論文) ABSTRACT According to the market demand and the characteristics of domestic heating, this paper develops MCU intelligence controller for the minor gasfired boiler which is domestic heating equipment on the basis of investigation of heating demand widely. The research purpose is to change the inconvenience of temperature control bring by using coal fired boiler for centralized heating, to increase economics of software called Protel99se for circuit designed is used to develop the hardware of the controller. The hardware includes the power supply circuit, the reset circuit,the clock circuit, the alarm circuit, the LCD display circuit, and the temperature collection which is the core of this controller. The threepin integratedcircuit voltage regulator W7800 (7900) series ponent 7805 is used for the power supply. The Atmel AT89S51 chip is the core chip of the controller. The integrated temperature sensor DS18B20 is used to measure water temperature in boiler. The key circuit is used to set the alerm temperature and analog water in or out. In addition, LCD is used to display water level bound, current water level, temperature alerm value by presupposition and current temperature. When water level beyond its bound or when current temperature beyond its alerm value, the system gives an alerm and makes boiler burner off. When water temperature is down, the system releases alerm and makes boiler burener on. The system does it again and the system can save energy and improve energy utilization rate. Aim at the demand and characteristic of the system, on the basis of these hardware and implement method, using assemble language, system designs boiler temperature control system design based on singlechip. This software includes temperature and water level monitor main program, temperature collection subprogram, analoy water in and out subprogram, keyboard scan subprogram, LCD display subprogram etc. Keywords:MCU。 Temperature control。 DS18B20。Gasboiler。Liquid CrystalDisplay。 安徽建筑 大學(xué) 畢業(yè)設(shè)計(論文) 目 錄 1 緒論 ....................................................................................................................................1 課題背景 ................................................................ 1 ..................................................... 2 ....................................................... 2 2 系統(tǒng)方案選擇及工作原理 ......................................................................................................4 系統(tǒng)設(shè)計方案 ............................................................ 4 系統(tǒng)結(jié)構(gòu)框圖 ............................................................ 5 ..................................................... 7 輔助器件選擇 ....................................................... 7 3 硬件電路設(shè)計 ........................................................................................................................8 主控單片機 AT89S51芯片介紹 ............................................... 8 主要性能特點 ....................................................... 8 AT89S51管腳說明 ................................................... 9 單片機最小系統(tǒng) ......................................................... 11 圖 最小單片機系統(tǒng) ................................................... 11 .......................................................... 11 復(fù)位電路 ......................................................... 12 溫度控制電路 設(shè)計 ....................................................... 12 ............................................................ 13 水位檢測電路設(shè)計 ....................................................... 13 穩(wěn)壓電源電路設(shè)計 ....................................................... 14 ............................................ 16 DS18B20簡介 ...................................................... 16 ...................................................... 17 ................................................................ 17 固態(tài)繼電器 SSR .................................................... 17 ...................................................... 19 .................................................. 19 4 系統(tǒng)軟件的設(shè)計 .................................................................................................................. 22 系統(tǒng)主程序 ............................................................. 22 子模塊軟件設(shè)計 ......................................................... 22 A/D轉(zhuǎn)換環(huán)節(jié)子程序設(shè)計 ............................................ 23 DS18B20溫度采集子程序設(shè)計 ........................................ 24 LCD液晶顯示子程序設(shè)計 ............................................ 25 按鍵子程序設(shè)計 .....................