【正文】
編 號: 審定成績: 重慶郵電大學 畢業(yè)設計(論文) 設計(論文)題目: 基于 STC89C52 單片機的 智能調節(jié)儀表設計與實現(xiàn) 學 院 名 稱 : 自動化學院 學 生 姓 名 : 專 業(yè) : 測控技術與儀器 班 級 : 學 號 : 指 導 教 師 : 答辯組 負責人 : 填表時間: 年 月 重慶郵電大學教務處制重慶郵電大學本科 畢業(yè)設計(論文) I 摘 要 本文設計了一個基于 STC89C52 單片機的電爐 溫度控制系統(tǒng),闡述了系統(tǒng)的工作原理、硬件電路以及軟件設計。詳細論述了數(shù)字 PID 控制器的原理及其在溫度控系統(tǒng)中的應用,將增量式 PID 和 PWM 脈寬調制技術相結合 .此外本 系統(tǒng)采用 鉑熱電阻 PT100 采集溫度數(shù)據(jù), 并將其放大的信號通過 AD 轉換傳給單片機,同時 數(shù)碼管同步顯示溫度設定值和當前測量值,可通過按鍵以 1℃的 加減來 改變溫度設定值。當溫度低于設定值時,單片機控制繼 電器啟動加熱器加熱,當溫度高于設定值時,加熱器停止加熱,從而實現(xiàn)了測量和控制溫度的目的。 本系統(tǒng)由核心處理模塊、 鍵盤顯示模塊、 溫度采集 模數(shù)轉換 模塊、及控制執(zhí)行模塊等模塊組成主要完成成對 電爐 的溫度采集并顯示;手動調節(jié)設定 溫度 值;溫度智能控制 等功能 。 【關鍵詞】 熱電阻 STC89C52 小信號放大 PID 控制 PWM波 重慶郵電大學本科 畢業(yè)設計(論文) II ABSTRACT This paper designs an STC89C52 MCU based on electric furnace temperature control system, expounds the system work principle, the hardware circuit and software design. Detailed digital PID controller discussed the principle and the application in temperature control system, will be incremental PID and PWM pulse width modulation technique bined. Besides the system USES PT100 platinic resistance temperature data and collected by the magnification of the signal to AD transform singlechip microputer, and digital tube displayed temperature setting and the current measured values, with 1 ℃ by button to change the temperature value addition and subtraction. When temperature below the set value, SCM control relay startup heater heating, when temperature higher than setting, heater stop heating is realized, and the purpose of measuring a nd control the temperature. This system consists of a core processing module, keyboard display module, temperature acquisition module conversion module, and the control performs module module mainly pletes electric furnace temperature gathering pairs and shows。 Manual adjustment set temperature。 Intelligent temperature control etc. Function. 【 Key words】 thermal resistance STC89C52 Small signal amplifier PID control PWM wav 重慶郵電大學本科 畢業(yè)設計(論文) III 目 錄 前 言 .................................................................................................................................................. 1 第一章 概述 ...................................................................................................................................... 2 第一節(jié) 課題研究的目的及意義 ................................................................................................. 2 第二節(jié) 課題研究現(xiàn)狀分析 ......................................................................................................... 2 第三節(jié) 課題研究的內容 ............................................................................................................. 3 第四節(jié) 本章小結 ......................................................................................................................... 3 第二章 系統(tǒng)設計原理與方案論證 .................................................................................................. 4 第一節(jié) 系統(tǒng)方案論證 ............................................................................................................. 4 第二節(jié) 系統(tǒng)設計總體框圖 ..................................................................................................... 4 第三節(jié) 本章小結 ......................................................................................................................... 6 第三章 核心處理模塊 ...................................................................................................................... 7 第一節(jié) STC89C52 簡介 .............................................................................................................. 7 第二節(jié) 核心處理模塊電路的整體設計 ..................................................................................... 8 第三節(jié) 本章小結 ......................................................................................................................... 9 第四章 鍵盤顯示模塊 .................................................................................................................... 10 第一節(jié) 顯示電路設計 ............................................................................................................... 10 一、顯示電路硬件結構 ...................................................................................................... 10 二、顯示掃描子程序 .......................................................................................................... 12 第二節(jié) 鍵盤電路設計 ............................................................................................................... 14 一、鍵盤電路硬件結構 ...................................................................................................... 14 二、獨立式鍵盤工作原理 .................................................................................................. 15 三、 鍵盤掃描電路程序 ...................................................................................................... 15 第三節(jié) 本章小結 ....................................................................................................................... 17 第五章 溫度采集及模數(shù)轉換模塊 ................................................................................................ 18 第一節(jié) 溫度檢測電路設計 ....................................................................................................... 18 一、熱電阻電橋電路 .......................................................................................................... 18 二、 PT100 測溫電路 ........................................................................................................... 19 第二節(jié) 模數(shù)轉換電路設計 ....................................................................................................... 20 一、 ADC0809 性能介紹 .................................................................................................... 20 二、 ADC0809 內部結構 ...........