Hi all, I'm trying to drive this small 6V DC stepper motor with a magnetic encoder and a motor driver through Arduino. However, it seems like the motor is just vibrating and not turning at all, I can see the end shaft of the motor is trying to move but it just vibrates. I have attached the wiring (excuse the hand-drawn diagrams...) configurations that I have tried.
The encoder is soldered onto the motor and the encoder plugs into the motor driver, then that goes to Arduino. I have tried to power the motor/driver by using the 5V pin on the Arduino and I have tried to power it with 9V through a DC power supply. Doesn't seem like it made much of a change.
The code I'm using is just the example code for stepper motor (one revolution) in the Arduino library. I have played around with the rpm, the steps per revolution, and the delay but nothing worked. Any help would be much appreciated. Thanks in advance.