Spiegazione di routine del motore passo-passo a 23 passi

# 电机扩展板控制步进电机的例子
#
# 这个例子展示了如何使用你的电机扩展板控制1个步进电机。

import time
from tb6612 import Stepper

stepper = Stepper() # default rpm=2, power=50
stepper.set_speed(1) # rpm = 1
stepper.set_power(80) #set pwm
while (True):
    stepper.step(200) # motor rotates 1 circle
    time.sleep_ms(1000)

results matching ""

    No results matching ""