Stepper motor vibrates but doesn't turn

  • 28BYJ-48 stepper

Why it happens

  • The pin order is wrong. The Stepper library wants IN1, IN3, IN2, IN4.
  • The speed is too high.
  • Too little power.

How to fix it

  1. Use Stepper motor(2048, IN1, IN3, IN2, IN4);.
  2. Set setSpeed(10); first.
  3. Power the driver from a separate 5 V and join the grounds.

It worked if: 2048 steps make one full turn.

From how the part works. Explained from how the part works; not tried on a real circuit for this page.

Didn't help? Search another error or ask us.