With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Thank you for this great tutorial, which was the basis for my project driving a small bipolar stepper motor using the PiFace (and a diy H-Bridge). I made a small modification to make it more precise though:The loop should start at 0 and not 1 :for loop in range(0,int(512*float(rotations)))orfor loop in range(int(512*float(rotations)))This difference would not be noticeable in a motor which needs 512 steps for a full rotation but it was in my case (7.5 degrees steps => 30 degrees per loop iteration => 12 loop iterations for a full rotation) so my loop was like this:for loop in range(int(12*float(rotations)))
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.