I will preface this post by highlighting that I understand that a stepper motor is not ideal for running continuously, but it is the current use case and what I have available for a conveyor system I am trying to run.
Below is a breakdown of the hardware I am currently using:
-
Arduino Mega 2560 Rev3
-
Pololu DRV8834 Low-Voltage Stepper Motor Driver
-
ST5918M2008-A – STEPPER MOTOR – NEMA 23 (Bipolar Series Winding)
https://us.nanotec.com/fileadmin/files/Datenblaetter/Schrittmotoren/ST5918/M/ST5918M2008-A.pdf -
K7803-2000R3 - DC DC CONVERTER 3.3V 6.6W
digikey.com/en/products/detail/mornsun-america-llc/K7803-2000R3/13168200
My current issue is that I cannot continuously run the stepper motor, regardless of the various stepper motor libraries available (i.e. AccelStepper, ContinousStepper, BasicStepperDriver)
Below is a further explanation of my current approach to the problem:

Based on the schematic above, I am supplying approximately 3.1V (Measured) to VMOT with the 100uf capacitor in parallel with VMOT and GND. The motor power supply is a 24VDC 5A (Output) power supply, but converted down to 3.3V by the K7803-2000R3.
As mentioned above the stepper motor has 8 windings but with bipolar serial connections.
I am able to get the motor to run for a quarter to half rotation but with the command of rotating 360. I also used the following code to try and run continuously using the AccelStepper library example. This also causes the motor to run a few steps and jitter.
#include <AccelStepper.h>
AccelStepper myStepper(AccelStepper::DRIVER, stepPin, dirPin); // works for a4988 (Bipolar, constant current, step/direction driver)
void setup()
{
myStepper.setMaxSpeed(200); // this limits the value of setSpeed(). Raise it if you like.
myStepper.setSpeed(-200); // runSpeed() will run the motor at this speed - set it to whatever you like.
}
void loop()
{
myStepper.runSpeed(); // This will run the motor forever.
}
My current guess is that it is an issue with the current draw causing the overcurrent protection in the DRV8834 to kick in at 2A. Originally the stepper was wired for a parallel connection but changed to series to help with this issue. I would appreciate any guidance in this and would be happy to share more information where needed.