摘要
为了提高步进电机的定位精度,提出了一种基于AT89S52的步进电机闭环控制系统设计方案。采用AT89S52单片机从串口接收上位机的指令并产生相应的控制信号,通过RD-053MS步进电机驱动器对步进电机进行控制,并用角度编码器和IK220计数卡实时获取步进电机的转动角度,将其反馈给上位机,上位机根据计算出的实际转动角度和目标转动角度的差值,向下位机继续发送运动指令,直到满足精度要求。实验结果表明,系统定位精度可控制在20角秒以内,可应用于多种数控场合中。
In order to improve the positioning accuracy of the stepper motor,the design of stepper motor closed-loop control system based on AT89S52 is proposed in this paper.The AT89S52 microcontroller is used to receive instructions from PC by serial port and produce corresponding control signal.Through controlling the stepper motor by RD-053MS stepper motor drive,the angle encoder and IK220 counter card are used to obtain the rotation angle of the stepper motor in real time and feedback it to the PC.The PC calculates the difference value between the actual rotation angle and the target rotation angle,and sends motion instructions to the AT89S52 microcontroller until the instructions meet precision requirement.The experiment shows that the positioning accuracy of the system can be controlled in less than 20 second of arc,and can be applied into many CNC system.
出处
《重庆工商大学学报(自然科学版)》
2012年第12期55-59,共5页
Journal of Chongqing Technology and Business University:Natural Science Edition