【正文】
圖 5 觸摸屏流程圖 5 實驗結果 使用精度為 ℃的熱度計作為校準時實驗結果進行檢測,特別方法: 通過觸摸屏在溫度范圍內設定合適的溫度,等待 LCD 上顯示的溫度數(shù)據穩(wěn)定后,通過由熱度計讀取的數(shù)值與該值作 比較,計算其誤差,計算公式如下: 誤差 =|設定值 — 實際值| /設定值 檢測結果示于表 1 表 1 校準結果 ——————————————————————————————— 設定值(℃) 顯示值(℃) 實際值(℃) 誤差( %) ——————————————————————————————— ——————————————————————————————— 6 結論 通過使用 16 比特 PWM 輸出,簡單濾波電路、轉換電路、軟件設計及 浮點操作 ,這個系統(tǒng)實現(xiàn)了普通 MCU 難以實現(xiàn)的 16比特 D/A轉換,系統(tǒng)溫度控制范圍為 16℃ ~80℃,并且 16比特控制信號的精度達 1‰。 片上資源 TM32F103 能夠工作在 40℃ ~105℃的溫度范圍內,這符合工業(yè)環(huán)境的要求,它整合了工作頻率為 72MHz的高性能 ARM CortexM3 32 比特 RSIC核心、用來存儲數(shù)據和程 序的告訴嵌入式存儲器(高達 128K 字節(jié)的閃存和高達 20K 字節(jié)的 SRAM 靜態(tài)只讀存儲器)以及更多增強的 I/O 口,這些接口中的大部分可以工作在不同功能下并且具有連接到 2 個 APB 總線的外圍設備。通過使用擴充型 PID 算法來調節(jié) STM32 輸出的 16比特脈沖寬度調制信號,然后將 PWM 信號轉換成電壓信號來控制半導體控制整流器( SCR)的導通角,從而控制加熱管,系統(tǒng)控制原理示于圖 1 圖 1 系統(tǒng)控制原理 3 硬件設計 這個系統(tǒng)包括溫度 獲取橋式電路、 STM32F10彩色 LCD觸摸屏控制電路、濾波電路和 SCRC(半導體控制整流器),另外,這個系統(tǒng)使用 英寸彩色 LCD 和觸摸屏,有著優(yōu)良的人機交互功能,并且能夠實現(xiàn)實時監(jiān)測和控制。 ℃ . The application shows that this system has the realtime, flexible, stable highprecision, and low cost advantages, and can meet the industrial requirements of high accuracy, high stability and reliability. References [1] Zhaojun Li, Ping Ji, Xiangguang Lou, 2020, Design of high precision temperature control system. Electronic Measurement Technology. (2): 146148. [2] ST Microelectronics Corporation, 2020. STM32F103XX Data sheet. [3] Dayong Xia, Xiaohui Zhou, Zeng Zhao, Bofeng Chen, Endian Hu,2020. Temperature control system of singlechip of model MCS51. Industrial Instrumentation amp。 ) , Shiguang LI( ), Xu ZHANG( ) (School of Information and Electrical Engineering, Shandong University of Science and Technology, Qingdao 266510, China) Abstractthis paper introduced a thermo tank temperature control system based on STM32, Firstly, the temperature acquisition is realized by the highprecision electrical bridge based on constant current source. Then the augmented PID algorithm realized by software is adopted Butterworth filter is used to convert the output PWM of STM32 to current signal which is used to control the semiconductor control rectifier to adjust the temperature. Calibration check and practi