基于STM32的步进电机速度控制方法研究与实现
DOI:
作者:
作者单位:

北京工业大学 信息学部

作者简介:

通讯作者:

中图分类号:

TP23

基金项目:

国家自然科学(61573029)


Research and realization of stepper motor speed control method based on STM32
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    在机器人电机控制过程中,发现带载情况下如果电机起步速度过快会导致电机堵转问题,很需要一种可以实现电机匀加速的精确控制方法。本文借助于STM32F103,通过其I/O口输出矩形波脉冲序列的方式控制步进电机驱动器或伺服驱动器,从而实现对步进电机的位置和速度控制。通过修改定时器值实现梯形加减速轨迹,使步进电机运行具有较好加减速性能。另外,由于STM32F103芯片具有多路定时器,可以通过配置多路定时器输出多路不同频率的脉冲信号,实现对机器人多轴(多个电机)的控制。该方法对于机器人嵌入式步进电机控制器的开发具有很好的参考价值。

    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.

    参考文献
    相似文献
    引证文献
引用本文

王昊天,于乃功.基于STM32的步进电机速度控制方法研究与实现计算机测量与控制[J].,2019,27(9):95-99.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2019-04-08
  • 最后修改日期:2019-05-08
  • 录用日期:2019-05-10
  • 在线发布日期: 2019-09-24
  • 出版日期: