openmv4怎么驱动单个的rds3128舵机,照着视频教程做的,但是舵机不转,不知道怎么回事?
-
from pyb import Servo import time s1 = Servo(1) # servo on position 1 (P7) while(True): s1.angle(90) # move to 45 degrees time.sleep(600) s1.angle(45) # move to 45 degrees time.sleep(600) s1.angle(0) # move to 45 degrees time.sleep(600) s1.angle(-90) # move to 45 degrees time.sleep(1000) #s1.speed(50) # for continuous rotation servos
-
建议你先用示波器,看P7是否有50hz pwm输出,然后检查电源,不要使用openmv给舵机供电,使用电池或学生电源