tripipy
tripipy copied to clipboard
Leave a little time after initialising chipdrive.tmc5130()
My original code looked like this:
mot = chipdrive.tmc5130(settings=nema17,loglvl=logging.ERROR)
for i in range(2):
mot.goto(0.3)
mot.goto(0)
This was to check that the index marker came back to the same place each time. I found that I was probably losing some early steps.
Now I have:
mot = chipdrive.tmc5130(settings=nema17,loglvl=logging.ERROR)
time.sleep(0.5)
and all is good
Regards
Andy