舵机引脚一直没输出怎么回事
-
我的 舵机引脚一直没输出怎么回事
import time
from pyb import Servos1 = Servo(1) # P7
s2 = Servo(2) # P8while(True):
for i in range(1000):
s1.pulse_width(1000 + i)
s2.pulse_width(1999 - i)
time.sleep(10)
for i in range(1000):
s1.pulse_width(1999 - i)
s2.pulse_width(1000 + i)
time.sleep(10)
-
PWM,用示波器看一下波形