pootle / tripipy

Simple python driver for Trinamic tmc5130 connected to Raspberry Pi
The Unlicense
36 stars 14 forks source link

Leave a little time after initialising chipdrive.tmc5130() #5

Open AndyThirtover opened 5 years ago

AndyThirtover commented 5 years ago

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

pootle commented 5 years ago

ah yes you definately need to jabe a pause at least between the 2 gotos