openmv 连接pca9685 用示例代码15,舵机没反应
-
舵机型号是DS3115MG 接入舵机控制板的0编号
代码如下
import time
from servo import Servos
from machine import I2C, Pini2c = I2C(sda=Pin('P5'), scl=Pin('P4'))
servo = Servos(i2c, address=0x40, freq=50, min_us=500, max_us=2500, degrees=180)while True:
servo.position(0, 0)
time.sleep(500)
servo.position(0, 180)
time.sleep(500)电池充满电,5V电源同时供给openmv和pca9685,pca9685舵机0编号接口处电压表测得电压为4.89V
P.S.换一个扭矩小点的可以正常驱动
-
查你的舵机的频率,脉宽的毫秒数据