openmv可以检测舵机转过角度吗
W
wrui 发布的帖子
-
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