Hey!
I have a problem to control my stepper motor.
I use the following hardware:
Arduino Uno
A4988 Step motor driver from AZ-Delivery
Nema 17 Motor with the following properties:
- Manufacturer Part Number: 17HS15-1504S-X1
- Motor Type: Bipolar Stepper
- Step Angle: 1.8 deg
- Holding Torque: 45Ncm(63.74oz.in)
- Rated Current/phase: 1.50A
- Phase Resistance: 2.3ohms
- Inductance: 4.4mH ± 20%(1KHz)
- https://www.omc-stepperonline.com/nema-17-bipolar-45ncm-6374ozin-15a-42x42x39mm-4-wires-w--1m-pin-connector.html
When I try to drive the motor, it just vibrates instead of rotating.
I have measured out the coils and these are connected to the stepper motor driver accordingly. (Both coils have around 2 Ohms)
I also tried to change the arrangement here. I swapped the connection of one coil to see if the coil in the motor is the other way around.
The motor part is operated with a 12V 2A power supply. I checked with the oscilloscope whether the voltage breaks down when used. I couldn't see anything here. I exchanged the power supply for a laboratory power supply to really rule out that it is due to the power supply. The power supply is powered by the recommended 100uF capacitor.
I varied the limit current with the potentiometer on the A4988
I also replaced the motor driver (ordered 5 at once) in order to rule out a defect here as well.
RESET and SLEEP are connected to each other.
I tried to play with the breaks (delayMicroseconds) but without success...
Here is the scheme of how the motor is connected. (RESET and SLEEP are connected!)
And this is the code I'm testing with:
void setup()
{
pinMode(3, OUTPUT); // Step
}
void loop()
{
digitalWrite(3,HIGH);
delayMicroseconds(500);
digitalWrite(3,LOW);
delayMicroseconds(500);
delay(1000);
}
The motor should go one step further every second, but it doesn't. He takes a step forward and immediately jumps back again. It just vibrates when I leave out the "delay (1000)".
I have no idea what it could be, does anyone have an idea?