I'm attempting to simply move a small stepper motor over GPIO using a Sparkfun Easy Driver. This Stepper motor is the one I'm attempting to use. I'm using similar code and configuration to that shown in this video. The motor does move in response, but only oscillates in place. Is this because I have a four phase motor hooked up like a bipolar, is it because the raspberry pi isn't putting out enough amperage, or is this a danger of using a pwm input.photo of wiring


  • Do you have any load on the stepper motor or are you allowing it to move freely? while testing I would run the motor without any weight. – Kevin Brey Jun 23 '15 at 17:42
  • There's no load. There's a tiny spec of post-it attached to it to see if it's going around but that's it. – MJAFort Jun 23 '15 at 18:27
  • 1
    Just a guess as I've run into that before. Have you tried adjusting the delays? Also the class Adafruit_StepperMotor in this adafruit samble might be useful. – Kevin Brey Jun 23 '15 at 18:59
  • 1
    I've played with the delays, but that just shifts the rate of oscillation. I have an arduino that I'm going to use to see if the motor is broken and a raspberry pi motor shield that I'm going to experiment with to try and pinpoint the problem. – MJAFort Jun 23 '15 at 19:23
  • Why not post a photo of your wiring? Oscillation usually indicates the phases are incorrectly wired. – joan Jun 23 '15 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.