首页 | 本学科首页   官方微博 | 高级检索  
     

基于STM32的步进电机速度控制方法研究与实现
引用本文:王昊天,于乃功.基于STM32的步进电机速度控制方法研究与实现[J].计算机测量与控制,2019,27(9):95-99.
作者姓名:王昊天  于乃功
作者单位:北京工业大学 信息学部,
基金项目:国家自然科学(61573029)
摘    要:在机器人电机控制过程中,发现带载情况下如果电机起步速度过快会导致电机堵转问题,很需要一种可以实现电机匀加速的精确控制方法。本文借助于STM32F103,通过其I/O口输出矩形波脉冲序列的方式控制步进电机驱动器或伺服驱动器,从而实现对步进电机的位置和速度控制。通过修改定时器值实现梯形加减速轨迹,使步进电机运行具有较好加减速性能。另外,由于STM32F103芯片具有多路定时器,可以通过配置多路定时器输出多路不同频率的脉冲信号,实现对机器人多轴(多个电机)的控制。该方法对于机器人嵌入式步进电机控制器的开发具有很好的参考价值。

关 键 词:机器人  定时器  多路脉冲输出  梯型加减速算法  步进电机控制器
收稿时间:2019/4/8 0:00:00
修稿时间:2019/5/8 0:00:00

Research and realization of stepper motor speed control method based on STM32
Abstract:In the process of motor controlling robot, it is found that, under the load condition, it will cause the motor to stop running provided that the motor starts too fast, based on this, it is necessary to develop a method being able to precise control the uniform acceleration. The paper, with the help of STM32F103, achieved the control against stepper motor driver or servo driver by means of its I/O port outputting rectangular wave pulse sequence, so as to control the position and speed of the stepper motor. By modifying the timer value, the trapezoidal acceleration and deceleration trajectory was realized, in this way, the stepping motor could achieve better acceleration and deceleration performance. In addition, since STM32F103 chip was equipped with multichannel timer, which can be configured to output multiplex pulses in different frequencies, so as to achieve the robot control with multiaxis (multiple motors). Such method has a good reference value for the development of embedded stepper motor controller.
Keywords:robot  timer  multi-channel pulse output  trapezoid acceleration and deceleration algorithm  stepper motor controller
点击此处可从《计算机测量与控制》浏览原始摘要信息
点击此处可从《计算机测量与控制》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号