Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
# 舵机控制例子 # # 这个例子展示了如何使用OpenMV来控制舵机 import time from pyb import Servo s1 = Servo(1) # P7 while(True): for i in range(1000): s1.pulse_width(1000 + i) time.sleep_ms(10) for i in range(1000): s1.pulse_width(1999 - i) time.sleep_ms(10)
舵机需要供电,按照你的电路,应该在OpenMV上插电池。