hmm... good idea.
I think I -do- have a another DRV8825 driver board..
I think I also have an "Easy Driver" board too... (although I chose the SRV8825 because of more current)
I'll swap it out... and see what happens.
Update:
I threw in the other DRV8825 board... and I'm getting 'some' sort of results here..
I power it up.. and the stepper it making very tiny 'movements'..
Maybe I'm just understanding how the movement is supposed to work.
How do you get a clean, smooth movement? And not this 'jerky' tiny 'movement' (step?)
I tired to change the millisBetweenSteps to something smaller.. and it didnt work.. first it did nothing..
then I hear a click on my PSU.. the it starts to move one direction... then just sits there?
Is the stepper itself supposed to be 'humming' when you hold it?
When I power up the PSU first.. the stepper is fine.. once I power is applied to the Arduino as well (via USB).. I start to hear this hum/wheeening sound from the stepper.
I'm also still confused about the coil wires?
I am understanding it as:
STEPPER:
RED: B / BLUE: B-
DRV8825:
B2 / B1
STEPPER:
GREEN: A / YELLOW: A-
DRV8825:
A2 / A1
So in this order on the right side of the DRV board: (going down the right side)
B2 - RED
B1 - BLUE
A1 - YELLOW
A2 - GREEN
I have to add wires to flip the YELLOW/GREEN wires.. as the pinout/connector they have has it GREEN/YELLOW order.. (A1/A2 flipped)
**I get different results/behavior depending on what I power up first?
If I plug in the USB first (for the Arduino).. and then the PSU (12v) for the DRV8825 driver.. then the voltage on the PSU screen reads roughly 6-7 volts.. and things are odd.
If I plug in the PSU first.. then the USB/Arduino.. the PSU reads the 12 volts.. and the stepper 'moves' in those really tiny/jerky movements.
Update 2:
I changed to this code:
#include <AccelStepper.h>
// Define a stepper and the pins it will use
//stepper(driver, 3(step), 2(dir))
//AccelStepper stepper; // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
AccelStepper stepper(1, 3, 2); //stepper(driver, step, dir)
//AccelStepper stepper(AccelStepper::DRIVER, 9, 8);
void setup(){
stepper.setMaxSpeed(200.0);
stepper.setAcceleration(100.0);
}
void loop(){
stepper.runToNewPosition(0);
stepper.runToNewPosition(500);
stepper.runToNewPosition(100);
stepper.runToNewPosition(120);
}
and I get more fluid movement (like full turns)...etc..
However.. since this is my first stepper motor project.. let me ask..
is the motor suppose to be jittery/jerky? and make noise as it move/steps?
I am holding the stepper in my hand.. it shakes? (vibrates almost?) when its on.. and stepping?\
Is this normal? I guess I thought they would be fairly quiet?
I dont have any past experience/exposure to know if this is normal... or things are wrong somewhere?