Stepper Motor Keeps Jittering - TwoTrees 17HS4023

I have recently created a cool custom board that supports 8 stepper motors for a precise robot implementation I have been working on for quite a while. Today I wired it up correctly and it worked, but now I messed it up, and it has been jittering since.
I looked at all sorts of online documentation, and I just find the premise of these stepper motors confusing.

Now I believe the source of this issue is the pinout, as I got my motor to work with the custom board, messed it up, moved it to bread board, and still find issue with it.

Does anyone know a quick, convenient way to identify poles and maintain them? Any assistance much appreciated.



The code, though I made the motor work without it:

// Define pin connections & motor's steps per revolution
const int dirPin = 2;
const int stepPin = 3;
const int stepsPerRevolution = 200;

void setup()
{
	// Declare pins as Outputs
	pinMode(stepPin, OUTPUT);
	pinMode(dirPin, OUTPUT);
}
void loop()
{
	// Set motor direction clockwise
	digitalWrite(dirPin, HIGH);

	// Spin motor slowly
	for(int x = 0; x < stepsPerRevolution; x++)
	{
		digitalWrite(stepPin, HIGH);
		delayMicroseconds(2000);
		digitalWrite(stepPin, LOW);
		delayMicroseconds(2000);
	}
	delay(1000); // Wait a second
	
	// Set motor direction counterclockwise
	digitalWrite(dirPin, LOW);

	// Spin motor quickly
	for(int x = 0; x < stepsPerRevolution; x++)
	{
		digitalWrite(stepPin, HIGH);
		delayMicroseconds(1000);
		digitalWrite(stepPin, LOW);
		delayMicroseconds(1000);
	}
	delay(1000); // Wait a second
}

Thank you,

Dawson

Video Links need be:

The usual pairings for those colors are coil 1 (black, green) coil 2 (red,blue).

I am unable to view the videos, perhaps if you post them to a site without restricted access they could be viewed.

Jittering might be due to motor current limit too low, in which case increase the limit via the trimpot.
Alternatively the current limit may be too high and the driver cycles in and out of thermal shutdown. If the heatsink is very hot, reduce the limit.

The trimpots are quite fiddly to adjust. I use a ceramic screwdriver to avoid accidental shorts.

If the circuit worked, and then stopped working, it may be a broken driver.

Mega shared videos here:

All my drives are set to At least .6 in Vref and then some, as to reach the minimum 1.5 Amp draw.

Also, the pinout the of the motor has different wiring all over the place, making it confusing, two different documentations:

Try reducing the step rate.

I will try.

I found this post that is similar:

Edit: Stepper Motor Wiring help needed

I will try to also move motor leads around and standardize myself with the motor.

How do they continuity/resistance check with a multimeter? The two coils shouldn't have continuity between them.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.