本文介绍了doit 2-way motor &16路伺服屏蔽板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这块板子从 Banggood 那里得到了便宜的价格,但是关于如何使用它的细节很少.这里有手册 https://www.gitbook.com/book/smartarduino/user-manual-for-2-way-motor-16-way-servos-shield/details ,但距离详细,我需要的是有关如何驱动 I2C PWM 伺服系统的一些详细信息.

Got this board cheap from Banggood, but there are minimal details on how to use it.There is a manual here https://www.gitbook.com/book/smartarduino/user-manual-for-2-way-motor-16-way-servos-shield/details , but it is a long way from detailed, and what I need are some details on how to drive the I2C PWM servos.

推荐答案

经过一番摸索,我得到了部分答案.

After some poking around, I have a partial answer.

Adafruit 库似乎适用于伺服系统.https://learn.adafruit.com/16-channel-pwm-servo-driver/using-the-adafruit-library

The Adafruit libraries seem to work fine for the servos.https://learn.adafruit.com/16-channel-pwm-servo-driver/using-the-adafruit-library

此版本主板上的电机具有以下控件:D6 PWMB——速度通道BD7 DIRB - 方向通道 BD8 PWMA - 速度通道 AD9 DIRA - 方向通道 A

Motors on this version of the board have the following controls:D6 PWMB - speed channel BD7 DIRB - Direction Channel BD8 PWMA - Speed Channel AD9 DIRA - Direction Channel A

...这可以解释为什么速度控制在通道 B 上工作而不在 A 上工作,因为引脚 8 不是 UNO 上的 PWM.(也可以解释为什么便宜)

... which may explain why the speed control is working on channel B but not A, since pin 8 is not PWM on a UNO. (May also explain why it is cheap)

另请注意,您需要为 VS 连接器提供单独的 5V 至 18V 电源以驱动伺服系统.我使用的是 6v 电池组.

Also note that you need to supply a separate 5V to 18V power to the VS connector to drive the servos. I used a 6v battery pack.

另请注意,机载电源开关似乎不会影响伺服电源,因此伺服电源的电源开关可能也很有用.

Also note that the on-board power switch did not appear to affect power to servo, so a power switch for the servo power is probably also useful.

这篇关于doit 2-way motor &16路伺服屏蔽板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 06:52