【正文】
式中 A、 B、 C 為常數(shù), A=179。10 7; C=179。 德州學(xué)院 物理系 2021 電子信息工程專(zhuān)業(yè) 計(jì)算機(jī)控制 技術(shù) 課程設(shè)計(jì) 9 PT100 溫度傳感器的測(cè)量范圍廣: 200℃ ~ +650℃ ,偏差小,響應(yīng)時(shí)間短,還具有抗振動(dòng)、穩(wěn)定性好、準(zhǔn)確度高、耐高壓等優(yōu)點(diǎn),其得到了廣泛的應(yīng)用,本設(shè)計(jì) 即采用 PT100 作為溫度傳感器。 溫度采樣電路圖 如 53 所示。雙向可控硅接通的一般都是一些功率較大的用電器 ,且連接在強(qiáng)電網(wǎng)絡(luò)中 ,其觸發(fā)電路的抗干擾問(wèn)題很重要 ,通常都是通過(guò)光電耦合器控制系統(tǒng)中的觸發(fā)與關(guān)斷。由于單片機(jī)的端口電壓不足以驅(qū)動(dòng)光電耦合器,故令其低電平觸發(fā),外加上拉電阻。由主控單片機(jī)運(yùn) 算輸出脈沖寬度可調(diào)的 PWM 波用于雙向可控硅在 1s 內(nèi)的導(dǎo)通和關(guān)斷數(shù)從而調(diào)節(jié)輸出給電爐的功率,這樣使得水溫穩(wěn)定在設(shè)定值上。為減小驅(qū)動(dòng)功率和可控硅觸發(fā)時(shí)產(chǎn)生的干擾 ,交流電路雙向可控硅的觸發(fā)常采用過(guò)零觸發(fā)電路。由于采用過(guò)零觸發(fā) ,因此上述電路還需要正弦交流電過(guò)零檢測(cè)電路。圖 中 T1 為變壓器 ,TPL521 2為光電耦合器 ,起隔離作用。在中斷服務(wù)子程序中使用定時(shí)器累計(jì)移相時(shí)間 ,然后發(fā)出雙向可控硅的同步觸發(fā)信號(hào)。當(dāng)單片機(jī) 80C51 的 引腳輸出負(fù)脈沖信號(hào)時(shí) Q2 導(dǎo)通 ,U2 導(dǎo)通 ,觸發(fā) BCR 導(dǎo)通 ,接通交流負(fù)載。雖然雙向可控硅反向?qū)?,但容易擊穿 ,故必須使雙向可控硅能承受這種反向電壓。 過(guò)零觸發(fā)電路如圖 45 所示 德州學(xué)院 物理系 2021 電子信息工程專(zhuān)業(yè) 計(jì)算機(jī)控制 技術(shù) 課程設(shè)計(jì) 11 U2Opto TRIACQ2PNP500R5VCC500R8GND51R6Q3BCR51R1051R9C2512PortPortP01過(guò)零觸發(fā)電路電熱爐接口 圖 55 過(guò)零觸發(fā)電路。采用三線(xiàn)接口與 CPU進(jìn)行同步通信,并可采用突發(fā)方式一次傳送多個(gè)字節(jié)的時(shí)鐘信號(hào)或 RAM數(shù)據(jù)。 DS1302 是 DS1202的升級(jí)產(chǎn)品,與 DS1202 兼容,但增加了 主電源 /后背電源雙電源引腳,同時(shí)提供了對(duì)后背電源進(jìn)行涓細(xì)電流充電的能力。 時(shí)鐘電路如圖 56 所示。其電路圖如下圖 57所示 。 圖 58 是 12864 液晶串行顯示的接口。本電路的特點(diǎn)是:電源輸出穩(wěn)定,具有較好的抗干擾能力。電源電路 如圖 59 所示。因此,軟件設(shè)計(jì)在微機(jī)測(cè)量控制系統(tǒng)設(shè)計(jì)中占重要地位。 在單片機(jī)測(cè)量控制系統(tǒng)中,大體上可分為數(shù)據(jù)處理、過(guò)程控制兩個(gè)基本類(lèi)型。過(guò)程控制程序主要是使單片機(jī)按一定的方法進(jìn)行計(jì)算,然 后再輸出,以便達(dá)到測(cè)量控制目的。因此,整個(gè)軟件可分為溫度采集子程序、時(shí)鐘讀取程序、按鍵子程序、顯示子程序、及系統(tǒng)主程序。如果用查表法,主要有 2個(gè)問(wèn)題,如果要提高測(cè)量精度,則需要建立大量的表格,而且得提前做大量得試驗(yàn)來(lái)進(jìn)行多點(diǎn)校正,還有一個(gè)問(wèn)題是程序的通用性差,這臺(tái) 儀器上校正好得數(shù)據(jù)可能在另一臺(tái)上不合適。這里我們考慮第 2種方法的優(yōu)點(diǎn),首先采用分段的方法,將測(cè)量范圍分段,然后查出該段的數(shù)學(xué)模型的各個(gè)系數(shù),然后計(jì)算出溫度值,這里,由于時(shí)間的關(guān)系,我們對(duì)整個(gè)測(cè)量范圍分了 3 段,分別為 0- 49℃ 、 50-70℃ 、 71- 100℃ ,利用分度表進(jìn)行離線(xiàn)的數(shù)學(xué)擬合,得到各段的數(shù)學(xué)模型系數(shù)。 我們通過(guò)最小二乘法進(jìn)行線(xiàn)性擬合,得到如 下的數(shù)學(xué)模型為: T1= 049℃ T2= 50- 70℃ T3= 71- 100℃ 上述 3 個(gè)數(shù)學(xué)模型中,最大的理論誤差值都小于 ℃ ,能夠滿(mǎn)足精度要求,實(shí)際上如果有足夠的時(shí)間,我們完全可以分得再細(xì)一些,這樣理論的誤差將會(huì)變得更小。R B,這里的 A、 B 是上述不同溫度段的系數(shù),而 R 值由于在輸出為 0V 時(shí),實(shí)際上有個(gè)對(duì)應(yīng)于 100 歐姆的偏置電路,因此根據(jù) RR0=U/I,而I=,而 AD/U/G=4096/,這里的 AD 值為 A/D 轉(zhuǎn)換得結(jié)果 G 為放大器的增益,本設(shè)計(jì)中的二級(jí)放大器放大的倍數(shù)為 80 倍。(178。另外本系統(tǒng)還可以通過(guò)外接電路擴(kuò)展實(shí)現(xiàn)溫度報(bào)警功能,從而更好的實(shí)現(xiàn)溫度現(xiàn)場(chǎng)的實(shí)時(shí)控制。 通過(guò)本次溫度測(cè)量系統(tǒng)的設(shè)計(jì),我對(duì)溫度測(cè)量控制有了進(jìn)一步的熟悉和更深入的學(xué)習(xí)。 通過(guò)本 課程 設(shè)計(jì),我了解并掌握了傳感器的基本理論知識(shí),更深入的掌握單片機(jī)的開(kāi)發(fā)應(yīng)用和編程控制。 參考文獻(xiàn) [1] 張琳娜,劉武發(fā). 傳感檢測(cè)技術(shù)及應(yīng)用 [M].中國(guó)計(jì)量出版社 , 1999. [2] 沈德金,陳粵初. MCS51 系列單片機(jī)接口電路與應(yīng)用程序?qū)嵗?[M].北京航空航天大學(xué)出版 , 1990. [3] 鄭建國(guó) .一種高精度的鉑電阻溫度測(cè)量方案自動(dòng)化儀表 [M].1997. [4]馬家辰 . MCS51 單片機(jī)原理及其接口技術(shù) [M].哈爾濱工業(yè)大學(xué)出版社, 1997. [5] 周航慈 .單片機(jī)應(yīng)用程序設(shè)計(jì) [M].北京航空航天大學(xué)出版社, 1991 年 8版 . [6] 李志全等 .智能 儀表設(shè)計(jì)原理及應(yīng)用 [M].國(guó)防工業(yè)出版社 , 1998 年 6版 . [7] 李建民 .單片機(jī)在溫度控制系統(tǒng)中的應(yīng)用 [M].江漢大學(xué)學(xué)報(bào) , 1996 年 6版 . [8] 楊振江等 .智能儀器與數(shù)據(jù)采集系統(tǒng)中的新器件及應(yīng)用 [M].西安電子科技大學(xué)出版社,2021 年 12 版 . [9] 鐘亞飛. 基于單片機(jī)的溫室二氧化碳測(cè)控系統(tǒng)的設(shè)計(jì) [D]. 山東科技大學(xué), 2021: 13. 德州學(xué)院 物理系 2021 電子信息工程專(zhuān)業(yè) 計(jì)算機(jī)控制 技術(shù) 課程設(shè)計(jì) 18 Electric furnace control system design based on PID PangDeMiao (Department of Physics , Dezhou University , Dezhou, 253023) Abstract STC12C5A60S2 microcontroller, platinum resistance of the PT100, the LM324 amplifier, DS1302 clock chip, 12864 pose the design .The microprocessor of the system is STC12C5A60S2, PID algorithm as the core of algorithm. Platinum resistance (PT100) as temperature sensor,.Using the method of threewire platinum resistance constant current method to measure the temperature of the equipment .Reducing the error of measurement circuit and PT100, so temperature control accuracy to 177。 C in the range of 0 ℃ ~ 100 ℃ . Then LM324 amplifier, A / D converter handle the data of temperature signal control the equipment through the PID algorithm. In addition,the system also designed the clock circuit module to achieve realtime measurement of temperature. Write the software program, to achieve realtime control and display of temperature. The system features are: ease of use。wide measurement range. Keywords STC12C5A60S2。 PID。 DS1302 德州學(xué)院 物理系 2021 電子信息工程專(zhuān)業(yè) 計(jì)算機(jī)控制 技術(shù) 課程設(shè)計(jì) 19 致 謝 首先我衷心感謝 蓋老師 給予我 的幫助 在此期間,他們對(duì)我的指導(dǎo)為我指明了研究的方向,對(duì)我的鼓勵(lì)使我勇于面對(duì)困難,對(duì)我的鞭策讓我充滿(mǎn)了前進(jìn)的動(dòng)力。 然后還要感謝大學(xué)四年來(lái)所有的老師,為我們打下專(zhuān)業(yè)知識(shí)的基礎(chǔ); 同時(shí)還要感謝所有的同學(xué)們,正是因?yàn)橛辛四銈兊闹С趾凸膭?lì)。 最后,感謝我的母校 德州學(xué)院 對(duì)我的大力栽培。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。s antiracism taskforce, is in 德州學(xué)院 物理系 2021 電子信息工程專(zhuān)業(yè) 計(jì)算機(jī)控制 技術(shù) 課程設(shè)計(jì) 24 London for the Football Association39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。s 21 win. Michel Platini, president of European football39。s actions. CSKA said they were surprised and disappointed by Toure39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開(kāi)頭的年齡已經(jīng)到了尾聲??傆X(jué)得自己自己似乎應(yīng)該去做點(diǎn)什么,或者寫(xiě)點(diǎn)什么。 The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做 不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional。t really grow up, it seems is not so important。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。 Originally, this world, can produce a chemical reaction to an event, in addition to resolutely, have to do, and time. 原來(lái),這個(gè)世界上,對(duì)某個(gè)事件能產(chǎn)生化學(xué)反應(yīng)的,除了非做不可的堅(jiān)決,還有,時(shí)間。s tim