【正文】
連續(xù)模式, ADC 的轉(zhuǎn)換值存儲(chǔ)在 右排 16 比特?cái)?shù)據(jù)寄存器中,從而提高了轉(zhuǎn)換速度,另外,模擬監(jiān)測(cè)機(jī)構(gòu)能夠在輸入電壓超過用戶定義的高門限或低門限時(shí)進(jìn)行監(jiān)測(cè)。這是選擇 TM32F103 作為這個(gè)系統(tǒng)的核心控制器的一個(gè)重要原因。 圖 4 整型分離 PID 算法框圖 觸摸屏軟件設(shè)計(jì) 使用觸摸屏可使人機(jī)交互更加友好、方便和快捷,使用專用的控制 芯片 ADS7843 連接到四線電阻觸摸屏 AMT9532,結(jié)合 STM32F103處理觸摸信號(hào),觸摸屏的軟件流程圖示于圖 5。 。實(shí)驗(yàn)結(jié)果表明,這個(gè)系統(tǒng)確實(shí)達(dá)到了控制要求,其溫度精度優(yōu)于177。 DS18B20 測(cè)溫原理框圖示出了所設(shè)計(jì)的巴特霍茲濾波器,濾波之后,將 PWM 信號(hào)轉(zhuǎn)換至 0— 的電壓信號(hào)以控制硅控濾波器的傳輸角,因此我們實(shí)現(xiàn)了對(duì)加熱管的精確控制。它包含 3 個(gè)通用 16 字節(jié)定時(shí)器,附加兩個(gè)監(jiān)測(cè)器。使用常電流源給電橋供電,使用具有低噪聲和低溫漂的高精度可操作放大器連接兩個(gè)網(wǎng)橋,使用 4DH2 組建恒流源以輸出 電流,因此,流經(jīng)鉑絲電阻的電流等效于恒流源。溫度控制系統(tǒng)結(jié)構(gòu)示于圖 2 圖 2 系統(tǒng)結(jié)構(gòu) 溫度獲取和模擬 /數(shù)字轉(zhuǎn)換 在所有的熱敏電阻溫度傳感器中,鉑絲電阻因其高精度、穩(wěn)定性好、耐腐蝕以及易于使用的優(yōu)點(diǎn)而成為理想的溫度獲取原件并在工業(yè)環(huán)境和控制系統(tǒng)中得到了廣泛的應(yīng)用。 ARM 因其強(qiáng)大的功能和低成本的優(yōu)點(diǎn)正逐漸占領(lǐng)微電子市場(chǎng),也正因如此,設(shè)計(jì)一個(gè)基于 ARM 的高精、簡單結(jié)構(gòu)和低成本的溫度控制系統(tǒng)便具有重要的實(shí)際意義和價(jià)值。 Automation, (1):4347. [4] Lin Wu, Enping Lou, Dongqing Hou, Liang Xu, 2020, Wireless temperature and humidity control system based on PID arithmetic. Chinese Journal of Scientific Instrument, 27(21):619620. [5] Yan Zhao, Guangzhi Yang, 2020. Automatic measuring system in constant temperature for oxygen content based on singlechip. Chinese Journal of Scientific Instrument, s1. [6] Songmei Zhang, Junkai Liang, Longji Liu, 2020. Deign of thermo tank temperature control system based on C8051F. Electronic Measurement Technology, 31(9): 147149. 基于 STM32 的恒溫箱溫度控制系統(tǒng) 摘要 — 這篇文章介紹了一個(gè)基于 STM32 的恒溫箱溫度控制系統(tǒng),首先,由基于常流源的高精度電橋獲取溫度,然后,由軟件實(shí)現(xiàn)的擴(kuò)充型 PID 算法在這里得到應(yīng)用,使用巴特沃茲濾波器(最平坦濾波器)將 STM32 輸出的 PWM 轉(zhuǎn)換成電流信號(hào)來控制半導(dǎo)體整流器從而調(diào)節(jié)溫度,校準(zhǔn)檢測(cè)和實(shí)際應(yīng)用都表明這個(gè)系統(tǒng)可靠、精度高、可行性好,并且能夠滿足現(xiàn)實(shí)需要。 ℃ . As ARM is gradually occupying the microelectronics market for its powerful function and low cost, it is of important practical significance and value to design a temperature control system based on ARM with high precision, simple structure and low cost. 2 Basic control principles of thermo tank In this system, temperature acquisition of the inner thermo tank is realized by using platinum resistance as temperature sensor and bridge circuit based on constant current source. Then pare the actual temperature with the temperature set by touch screen. By using augmented PID algorithm to adjust, STM32 outputs 16bit PWM signals. Then convert PWM signal to voltage signal to control the conduction angle of Semiconductor Control Rectifier(SCR) which controls the heating tubes. System control principle is shown in . Considering the system accuracy and stability requirements, features of this system include: powerful and high speed ARM STM32F103 as the controller, augmented PID algorithm, and full use of onchip resources of microputer such as ADC, USART and