摘要
基于PID控制原理,通过STM32单片机定时器输出比较功能输出脉冲信号对直流电机进行了闭环控制实验。编写了LabVIEW上位机软件,通过在LabVIEW中调用动态链接库库函数PCOMM.dll的方式,实现上位机与STM32之间的串口通信,并以波形图表的形式实时显示电机编码器的反馈信息。根据反馈信息,利用上位机进行实时PID参数整定,得到最佳PID参数。实验结果表明:该闭环系统具有良好的稳定性和调速性能。
Based on the principle of PID control and through making use of STM32’s timer output comparison function,the closed-loop control experiment on the DC motor was carried out,including writing LabVIEW host computer software and realizing the serial port communication between host computer and STM32 by calling the dynamic link library function PCOMM.dll in LabVIEW as well as displaying the feedback information of the DC motor encoder at real time in the form of waveform chart.According to the feedback information,the upper computer can be used to adjust and obtain the best PID parameters.The experimental results showed that,the closed-loop system designed has good stability and speed regulation performance.
作者
刘旭辉
简震
张远方
丁志娟
LIU Xu-hui;JIAN Zhen;ZHANG Yuan-fang;DING Zhi-juan(College of Mechanical Engineering,Shanghai Institute of Technology)
出处
《化工自动化及仪表》
CAS
2020年第5期375-379,共5页
Control and Instruments in Chemical Industry
基金
国家自然科学基金项目(51675345)
上海市自然科学基金项目(16ZR1435800)。