摘要
以STM32F407ZGT6单片机作为控制核心,设计以集成DS18B20芯片的防水型水温探测温线作为温度反馈传感器,采用积分分离的比例(Proportional)、积分(Integral)、微分(Derivative)算法,即PID算法控制脉冲宽度调制(PWM)占空比进行智能水温闭环控制,同时用TFT液晶屏监控控制过程。实验结果表明该系统能快速、准确地进行水温控制,系统稳定性良好。系统控制精度达到0.1℃,温度波动小于0.5℃。
STM32 F407 ZGT6 micro controller unit was used in this design as the control core, and a waterproof temperature sensitive device integrated with DS18 B20 was used as the temperature feedback sensor. The separation integral PID control algorithm was used to adjust duty cycle of PWM for intelligent closed-loop control of water temperature, and the TFT LCD screen was used to monitor process. The experimental results show that the system can control the water temperature quickly and accurately, and it has good system stability. The accuracy of the system is up to 0.1 ℃,and the temperature shift is less than 0.5 ℃.
引文
[1]王冠龙,崔靓,朱学军.基于数字PID算法的温度控制系统设计[J].传感器与微系统,2019,38(1):86-88,96.
[2]文波,孟令军,张晓春,等.基于增量式PID算法的水温自动控制器设计[J].仪表技术与传感器,2015(12):113-116.
[3]赵娜,方圆.基于51单片机的智能水温控制系统的设计[J].电脑迷,2018,112(11):150.
[4]王博,曾方,程一哲.基于PID算法的水温控制系统[J].电脑知识与技术,2018,14(27):242-243.
[5]刘向东,高军,杨乐民.一种新的一阶系统自调整模糊控制器[J].哈尔滨理工大学学报,2003,8(5):75-79.
[6]姜学军,刘新郭,李晓静.计算机控制技术[M].2版.北京:清华大学出版社,2009.
[7]张洋,刘军,严汉宇,等.精通STM32F4(库函数版)[M].北京:北京航空航天大学出版社,2015.
[8]ST Microelectronics Corporation.STM32F407xx/STM32F407xx Datasheet [EB/OL].(2016-09-01)[2018-12-30].https://www.st.com/resource/en/datasheet/stm32f407zg.pdf.