I am powering a 1A bipolar hybrid stepper motor driven by a DRV8825 with a 12V 10A switching power supply. There is a 220uF capacitor placed at the motor power supply near the driver. The driver's current control is set to 0.5A.
When the driver is in sleep mode, it is woken up and there is a 2ms delay for wakeup time in the code (avr-gcc) before the direction is set, then 1us delay for setup time and then the step pulses are sent, starting pretty slow and accelerating with a linear profile.
All works just fine when powering the driver/motor with a linear 12V 2.5A power supply.
But when powered with the 12V 10A switching power supply (plugged in/switched on, idling), there sometimes is a short interruption shortly after the motor starts and the motor is losing steps. Looking at the voltage of the power supply, it actually breaks down some volts when this happens.
I am not aware of such behaviour, but I have the impression that the switching power supply needs a bit time to deliver power from idle state. Interestingly enough, if I let it continuously power another consumer drawing about 1.5A at the same time, it is stable and all runs fine.
Is my observation correct? Does a (switching) power supply need a short moment to stabilize? If yes, is this by design or some soft start or power saving feature?
I can easily change my code to wake up the driver and give the power supply some time to stabilize before the motor starts stepping.