【正文】
................................................................................................................ 9 復(fù)位電路 ......................................................................................................................... 9 串口通信電路 .................................................................................................................. 9 報警電路 ....................................................................................................................... 10 顯示電路 ....................................................................................................................... 10 按鍵電路 ....................................................................................................................... 12 D/A 轉(zhuǎn)換電路 ................................................................................................................. 13 第 4 章 軟件設(shè)計 ............................................................................................. 15 軟件設(shè)計思路 ................................................................................................................ 15 主程序流程圖 ................................................................................................................ 15 溫度檢測與處理子程序 ......................................................................................... 16 報警子程序 .......................................................................................................... 17 PID 子程序 ........................................................................................................... 18 顯示流程圖 .......................................................................................................... 19 鍵盤掃描流程圖 ................................................................................................... 20 鍵盤處理流程圖 ................................................................................................... 21 D/A 轉(zhuǎn)換子程序流程圖 .......................................................................................... 22 ........................................................................................................ 23 ........................................................................................................ 24 參考文獻(xiàn) ........................................................................................................ 25 附錄 A:硬件原理圖 ........................................................................................ 26 附錄 B:程序 .................................................................................................. 27 物理科學(xué)與工程技術(shù)學(xué)院畢業(yè)設(shè)計 3 第 1 章 緒論 課題研究的背景及意義 20 世紀(jì) 20 年代以來,電阻爐就在工業(yè)生產(chǎn)中得到了廣泛地應(yīng)用。 從而 控制電阻爐的爐溫。它對溫度控制的要求較高,溫度控制的好壞直接影響著產(chǎn)品質(zhì)量及生產(chǎn)效率,因此電阻爐的溫度控制在科學(xué)研究、工業(yè)生產(chǎn)中具有重要的意義。物理科學(xué)與工程技術(shù)學(xué)院畢業(yè)設(shè)計 1 基于單片機(jī)的爐溫自動控制系統(tǒng)設(shè)計 宜春學(xué)院 物理科學(xué)與工程技術(shù)學(xué)院 自動化專業(yè) 肖杰鳴 指導(dǎo)老師: (徐東輝) 摘要: 在工農(nóng)業(yè)生產(chǎn)中,溫度是工業(yè)生產(chǎn)對象中主要的被控參數(shù)之一。 本設(shè)計采用單片機(jī)作為數(shù)據(jù)處理與控制單元, 以 電阻爐 作為 控制對象 ,用熱電偶作為測量元件,用晶閘管作為輸出控制元件來實(shí)現(xiàn)對電阻爐溫度自動控制。 關(guān)鍵詞 : 電阻爐; MAX6675; 單片機(jī) STC89C52; PID控制 Abstract: SummaryIn the industrial and agricultural production , the temperature is accused of one of the main objects of industrial production parameters . Furnace current flowing through the resistor generates heat to a furnace for heating or melting the material . Resistance furnace is widely used in chemical, metallurgical and other industries. It requires a higher temperature control , temperature control has a direct impact on product quality and production efficiency , and therefore resistance furnace temperature control is of great significance in scientific research , industrial production. The design uses a single chip for data processing and control unit to resistance furnace as a control object , as the measuring element with thermocouple with thyristor as a control element to achieve the output resistance furnace temperature control . The system uses K type thermocouple temperature sensor , to detect resistance furnace temperature signal into the MAX6675 chip , after a series of converted signal is amplified and then signal to the microcontroller STC89C52 PID operation , and can adjust the keyboard PID parameters. After the PID operation , adjust the output volume ratio of the amount of change in thyristor controlled , variable thyristor conduction angle, so as to control the intensity of the resistance heating furnace . To control the furnace temperature resistance furnace . Key words: The resistance furnace。隨著社會的發(fā)展,科學(xué)技術(shù)的進(jìn)步,電阻爐被大量的應(yīng)用在電力、冶金、機(jī)械、石油化工等工業(yè)生產(chǎn)中。 電阻爐是利用電流流過電阻體,使其產(chǎn)生熱量來加熱或熔化物料的一類電爐。電阻爐按爐溫不同可分為低溫電阻爐 (600~ 700℃以下 )、中溫電阻爐 (700℃~ 1200℃ )、 高溫電阻爐 (1200℃以上 )。電阻爐大多是經(jīng)電阻絲加熱升溫,自然冷卻降溫的,當(dāng)電阻爐的溫度超調(diào)時,無法靠控制手段降溫,所以電阻爐溫度的控制具有滯后性、非線性、慣性、不確定性等特點(diǎn)。隨著科學(xué)技術(shù)、控制理論的發(fā)展,國外的溫度控制系統(tǒng)發(fā)展很迅速,基本實(shí)現(xiàn)對溫度的智能控制。從而實(shí)現(xiàn)溫度的控制。 1℃; ,產(chǎn)生聲音報警信號。爐溫給定值轉(zhuǎn)換成電壓信號后和所檢測到的爐溫數(shù)字信號送入單片機(jī)內(nèi)進(jìn)行比較, 得到實(shí)際爐溫與給定爐溫的差值。 物理科學(xué)與工程技術(shù)學(xué)院畢業(yè)設(shè)計 5 溫度信號 采集與處理:這個部分的主要是用熱電偶傳感器檢測溫度,溫度傳感器隨外界的溫度變化會產(chǎn)生不同電壓,再由 MAX6675 將模擬電壓信號轉(zhuǎn)換成數(shù)字電壓信號放大后送入單片機(jī)中,再單片機(jī)中進(jìn)行數(shù)據(jù)處理。 溫度的采集控制被廣泛應(yīng)用于工業(yè)生產(chǎn)和農(nóng)業(yè)生產(chǎn)當(dāng)中,以及科研和人民生活的方方面面。在工業(yè)生產(chǎn)中,運(yùn)用最廣泛的測溫元件之一其優(yōu)點(diǎn)有測溫范圍廣,精度高,穩(wěn)定性好,結(jié)構(gòu)簡單動態(tài)性能好 。 圖 MAX6675 引腳圖 MAX6675 引腳功能表 : GND: 接地 T: 接熱電偶負(fù)極 T+: 接熱電偶正極 VCC: 正電源端 SCK: 串行時鐘 輸 CS: