1CommentsJoined December 6th, 2016
Learn something new every day!
  • Controlling a stepper motor with the Raspberry Pi and Piface

    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)))

    View Instructable »