2

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)
TiVe
  • 73
  • 4
  • 1
    This question should be asked on raspberrypi.stackexchange.com people over there will be of more help. – Varun W. Dec 26 '21 at 21:26
  • try changing that .001 to a bigger number like 0.1. if it works, try changing both 0.1 to smaller and smaller numbers... if it fails, you may want to get a multimeter to see what signals the pi is actually outputting. – Abel Dec 26 '21 at 21:52
  • I have already tried this suggestion – TiVe Dec 27 '21 at 00:18

0 Answers0