Stepper motor powered, but not turning

Viewed 252

I am new to using stepper motors and micropython. I am having trouble getting my stepper motor to turn. I am using a raspberry pi pico and a tmc 2208 driver to control my stepper motor. I can hear the coils being powered on and off, but I get no motion.

Here is a a wiring diagram enter image description here

Here is my script

from machine import Pin
import utime

direction = Pin(14, Pin.OUT)
step = Pin(15, Pin.OUT)
enable = Pin(13, Pin.OUT)

enable.low()

direction.high()

def stepOne():
  step.high()
  utime.sleep(0.001)
  step.low()


while True:
    stepOne()
    utime.sleep(0.1)
0 Answers
Related