Stepper Motor Stalls

Hi everyone - I’ve been working on a machine of mine that has the following specs:

The two motors are programmed to run simultaneously (AccelStepper) with motor 1 spinning in a single direction while motor 2 moves back and forth quickly.

The problem is that motor 1 stalls at certain points of changing direction while motor 2 moves back and forth quickly. If this seems relevant, I made a post on the arduino forums with the code running behind it. I thought that might be it, but they said it was a resonance issue.

If I turn up the microstepping on my current system, my max speed drops and I’m concerned about the torque needed to move back and forth at high speeds. I still don’t understand if it’s the case switching of the loop in the program or the resonance of one motor affecting the other somehow.

If anyone could help me pick out some new low resonance hardware options, or provide some possible culprits, I’d be grateful

… if the motors have enough power to move the mechanics, thwn it’s most likely caused by too much speed or acceleration.

If ist’s some sort of dynamics behaviour, then eventually there are some short voltage drops with long wires, when the main motor draws current, which could cause power losses with the other …

If you have one motor that moves back and forth, then the decelleration might cause voltage spikes. I you don’t have anything to absorb them (a large capacitor or a brake chopper) the motor driver might go into overvoltage shutdown. you are running the system at 32V, the drivers are specced for 40V max…

if you have an oscilloscope maybe have a look at the 32V rail

You wrote: The one engine. But what happens if you swap the connections? In other words, change the motors?
I mean that it is unlikely that you can switch a stepper motor directly from forward to reverse when it has exceeded a certain speed.
You have to brake beforehand and accelerate again in the opposite direction. The extent to which you can accelerate depends, of course, on all the parts that you then have to turn or move. All these things have a mass that can only be set in motion slowly.
Are you sure that the engine, which moves forwards and backwards quickly, doesn’t lose steps that you haven’t noticed yet?