摘要
设计了一种步进电机驱动控制系统,该设计以STM32F103VET6作为主控制器,采用PID算法进行闭环控制,旋转编码器作为反馈通道,负责收集步进电机转子在单位采样时间内的实际执行的步数,系统将实际步数转换为转速并与目标转速进行比较然后计算出偏差,偏差值输入到PID控制器中,控制器输出经过修正的期望转速,最后交由步进电机执行。当步进电机在运动过程中发生丢步,会出现实际转速偏离目标转速,编码器将实际转速反馈给系统,控制器就能及时做出偏差修正。利用该方法,可稳定、精准地进行步进电机的速度环闭环控制。
A stepping motor drive control system is designed in this paper.STM32F103Vet6 is used as the main controller,PID algorithm is used for closed-loop control,and rotary encoder is used as the feedback channel.It is responsible for collecting the actual steps of stepping motor rotor in unit sampling time.The system converts the actual steps into speed,compares it with the target speed,and then calculates the deviation.The deviation value is input into the PID controller,and the controller outputs the corrected expected speed,which is finally executed by the stepping motor.When the stepping motor loses step in the movement process,the actual speed will deviate from the target speed.The encoder will feed back the actual speed to the system,and the controller can make deviation correction in time.Using this method,the speed loop closed-loop control of stepping motor can be carried out stably and accurately.
出处
《工业控制计算机》
2022年第7期37-38,41,共3页
Industrial Control Computer