基于Arduino的PID算法在温度测控实验中的应用研究RESEARCH ON THE APPLICATION OF PID ALGORITHM BASED ON ARDUINO IN TEMPERATURE MEASUREMENT AND CONTROL EXPERIMENT
王立力,林炳权,陈羽,梁飞翔,唐强
摘要(Abstract):
温度作为最基础的一个物理学标量,无论是在前沿科学研究还是日常生活中都具有十分重要的意义。本实验选用一种3D打印喷头作为控制对象,通过K型热电偶与LM35组成温度测量电路实时、快速地采集目标温度,利用Arduino UNO单片机将采集到的温度数据采用PID算法进行处理,并根据计算结果输出PWM信号控制加热电路,从而实现了温度的稳定测控。相比于传统的比较型控制电路,本实验采用的PID算法闭环控制,可以将被控对象稳定在设定温度,消除了控温过冲以及漂移的现象。
关键词(KeyWords): 闭环温度控制;热电偶;Arduino;PWM调制;PID算法
基金项目(Foundation): 国家级大学生创新创业训练计划项目(202310415);; 中山大学本科教学质量工程项目(中山大学教务[2023]96号,74130-12220011)
作者(Author): 王立力,林炳权,陈羽,梁飞翔,唐强
参考文献(References):
- [1] SUN H L,HUO M W,WANG M,et al.Signatures of superconductivity near 80K in a nickelate under high pressure[J].Nature,2023,621:493-498.
- [2] LIU J,GOTTSCHALL T,SKOKOV K,et al.Giant magnetocaloric effect driven by structural transitions[J].Nature Mater,2012,11:620-626.
- [3] WANG N,KAPLAN D,ZHANG Z,et al.Quantum metric-induced nonlinear transport in a topological antiferromagnet[J].Nature,2023,621:487-492.
- [4] 高金凤,王清辉,谷利飞,等.基于AVR单片机的热处理电阻炉智能温控系统设计[J].热处理技术与装备,2010,31(6):47-50.GAO J F,WANG Q H,GU L F,et al.Design of intelligent temperature control system for heat treatment resistance furnace based on AVR microcontroller[J].Heat Treatment Technology and Equipment,2010,31(6):47-50.(in Chinese)
- [5] 林炳权,石皓宇,车宇,等.Arduino中PWM调制在电子技术实验中的应用研究[J].物理与工程,2023,33(3):80-87.LIN B Q,SHI H Y,CHE Y,et al.Application research of PWM modulation in Arduino in electronic technology experiments[J].Physics and Engineering,2023,33(3):80-87.(in Chinese)
- [6] 许志建,徐行.塞贝克效应与温差发电[J].现代物理知识,2004(1):41-42.XU Z J,XU H.The Seebeck effect and thermothermal power generation[J].Modern Physics,2004(1):41-42.(in Chinese)
- [7] 王建明,杨颖.利用集成温度传感器AD590对热电偶进行冷端温度补偿的一种方法[J].大学物理,1995(6):32-33.WANG J M,YANG Y.A method of using IC temperature transducer AS590 to compensate the cold terminal temperature for thermocouple[J].College Physics,1995(6):32-33.(in Chinese)
- [8] 康华光.电子技术基础模拟部分[M].6版.北京:高等教育出版社,2013.KANG H G.Fundamentals of electronic technology,analog section[M].6th ed.Beijing:High Education Press,2013.
- [9] 历风满.数字PID控制算法的研究[J].辽宁大学学报(自然科学版),2005(4):85-88.LI F M.The research of controlling a rithmetic for figure PID[J].Journal of Liaoning University (Natural Science Edition),2005(4):85-88.(in Chinese)
- [10] 何芝强.PID控制器参数整定方法及其应用研究[D].杭州:浙江大学,2005.HE Z Q.Parameters tuning of PID controller and its application[D].Hangzhou:Zhejiang University,2005.
- [11] 宋乐鹏,胡皓.自动控制原理[M].北京:清华大学出版社,2013.SONG L P,HU H.Principles of automatic control[M].Beijing:Tsinghua University Press,2012.