首页> 外文会议>WSEAS International Conferences >Multi-Channel PWM Signal Generation Method and Its Application on Robot Toy Control
【24h】

Multi-Channel PWM Signal Generation Method and Its Application on Robot Toy Control

机译:多通道PWM信号生成方法及其在机器人玩具控制上的应用

获取原文

摘要

The aim of this research considered in this paper is to show a novel multi-channel PWM (pulse width modulation) signal generation method for the multi-joint RC robot driving. Integrating the I/O pins of the microcontroller and the interrupt function of the built-in timer, the maximum PWM channel number is identical to the number of I/O pins and can be used to drive the multi-joint robot. Firstly, configure the timer to generate a preset period clock as the interrupt time base and preset the I/O pins at HIGH level. Secondly, design a corresponding interrupt subroutine to control the duty cycle of each PWM channel. In the interrupt subroutine, an interrupt counter is incremented for every interrupt happened and can be used for the duration calculation of each pin's HIGH level output. Assume the duty cycle of each PWM channel is calculated in each control cycle beginning. Comparing the preset duty cycle of each channel and the time of duration, the corresponding pin will be reset as zero if the equal condition is achieved. Therefore, the duty cycle of each PWM channel is under control. Also, based on the precise time base, a preset interrupt counter bound is used to tune the PWM period. Once the upper bound of interrupt counter is achieved, the interrupt counter will be reset as zero and all the pins' outputs are reset as HIGH level again. Applying this novel scheme to the 18 joints RC robot control, without any other extra chips or components, the smoothing motion control demonstrated the feasibility of the proposed scheme.
机译:本文考虑了该研究的目的是为多关节RC机器人驱动显示一种新的多通道PWM(脉冲宽度调制)信号生成方法。集成微控制器的I / O引脚和内置定时器的中断功能,最大PWM通道号与I / O引脚的数量相同,可用于驱动多关节机器人。首先,将定时器配置为生成预设周期时钟作为中断时间基础,并在高电平下预设I / O引脚。其次,设计相应的中断子程序来控制每个PWM通道的占空比。在中断子程序中,每个中断发生中断计数器,每个中断都可以用于每个PIN的高电平输出的持续时间计算。假设在每个控制周期开始时计算每个PWM信道的占空比。比较每个通道的预设占空比和持续时间,如果实现了相等的条件,则相应的引脚将被复位为零。因此,每个PWM通道的占空比处于控制状态。此外,基于精确的时间基础,使用预设的中断计数器绑定来调整PWM周期。一旦实现了中断计数器的上限,中断计数器将重置为零,并且所有引脚的输出再次被重置为高电平。将这种新颖方案应用于18个关节RC机器人控制,没有任何其他额外的碎片或组件,平滑运动控制证明了所提出的方案的可行性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号