【正文】
室內的微機控制技術,但是我國以單片機為核心的溫度測控技術還有待發(fā)展,與發(fā)達國家相比還存在著較大差距。s lives more fortable, but also to the production department for precision manufacturing devices provide great help. This design is a temperature control system hardware design based on micro controller . The system consists of micro controller, LCD display, temperature sensor, heating pipes, fans and other small modules. The main result of works by the micro controller temperature sensor to the temperature signal has been calculated, obtained by processing, parison and thus to control the heating pipes and a small fan operating status, making the ambient temperature is controlled within a certain range of temperature settings. Through hardware and software debugging showed that the system can achieve the design goal, first the temperature can be displayed in real time on the screen, and can accurately control the working status of heating and cooling ponents, thus bringing down the temperature control at the set temperature within the range of degrees. KEY WORDS : micro controller, temperature control system III 目錄 第一章 緒論 ................................................................................................................ 1 課題的選題背景及生產(chǎn)需求狀況 ................................................................ 1 選題的研究意義 ............................................................................................ 1 論文的主要工作 ............................................................................................ 2 第二章 系統(tǒng)整體設計 方案與原理 .............................................................................. 2 方案的比較與選擇 ........................................................................................ 3 滯環(huán)控制系統(tǒng) ....................................................................................... 3 模糊 PI 控制系統(tǒng) ................................................................................ 3 模糊 PI 控制系統(tǒng)簡介 .................................................................................. 4 第三章 系統(tǒng)設計主要芯片及主要硬件的介紹 .......................................................... 5 單片機 STC89C52RC 的結構及工作原理 ...................................................... 6 STC89C52RC 單片機簡介 .................................................................. 6 單片機的外圍引腳及其功能 .............................................................. 8 單片機的定時 /計數(shù)器 ......................................................................... 9 單片機內部結構 ................................................................................ 10 主要硬件介紹 .............................................................................................. 13 顯示屏 LCD1602............................................................................... 13 溫度傳感器 DS18B20 ....................................................................... 14 直流電機驅動 模塊 L298n ................................................................ 16 第四章 系統(tǒng)整體設計及硬件模塊設計 .................................................................... 17 晶振及復位模塊 .......................................................................................... 17 復位模塊 ....................................................................................................... 17 溫度采集模塊 .............................................................................................. 18 液晶顯示模塊 .............................................................................................. 18 按鍵輸入模塊 .............................................................................................. 19 升溫模塊 ....................................................................................................... 20 降溫模塊 ....................................................................................................... 21 上下限報警模塊 ........................................................................................... 21 第五章 軟件設計部分 ................................................................................................ 23 IV 第六章 結論與展望 .................................................................................................... 24 參 考文獻 ...................................................................................................................... 25 致謝 .............................................................................................................................. 26 附錄一:總電路圖 ...................................................................................................... 27 附錄二:電路仿真圖 .................................................................................................. 28 附錄三:實物圖 .......................................................................................................... 29 附錄四:軟件程序 ...................................................................................................... 31 1 第一章 緒論 課題的選題背景及生產(chǎn)需求狀況 隨著電子技術和微型計算機的迅速發(fā)展,微機測量和控制技術得到了迅速發(fā)展和廣泛應用。s society, the measurement and control of temperature is the subject of a production and is very close to people39。 通過硬件電路和軟件的調試表明,該系統(tǒng)能夠達到設計目標,首先能夠把溫度在顯示屏上實時顯示出來,而且能夠準確的控制加熱與散熱部件的工作狀態(tài),從而把溫度控制在設定溫度上下 度的范圍內。該系統(tǒng)由單片機、液晶顯示屏、溫度傳感器、電熱管、小風扇等模塊構成。 I 論文題目:基于單片機的溫度測控系統(tǒng)的硬件設計 專 業(yè) : 自動化 本 科 生: ** (簽名) ________ 指導老師: ** (簽名) ________ 摘 要 在當今社會中,溫度的測量與控制是一個與人們的生活生產(chǎn)緊密聯(lián)系的課題,而單片機以其獨特的優(yōu)點,在電子產(chǎn)品當中有著很廣泛的應用,所以把單片機與溫度的測量與控制結合起來,能夠給人們精確測量控制溫度帶來很大的便捷,讓人們的生活更加舒適,而且能夠給生產(chǎn)部門對器件的精確制造提供很大的幫助。 本設計是基于單片機的溫度測控系 統(tǒng)的硬件設計。主要的工作原理是通過單片機將溫度傳感器采集到的溫度信號經(jīng)過計算,得到的結果通過處理、比較從而來控制電熱管和小風扇的工作狀態(tài),使得環(huán)境溫度控制在設定溫度的一定范圍內。 關鍵字 : 單片機,溫度測控系統(tǒng) II Subject : Temperature control system hardware design based on Micro controller Specialty: Automation Name : ** (signature)_____ Instructor: ** (signature)_____ ABSTRACT In to