We need much more information to give any hints. Please provide links to the used components ( including the PSU) and post a schematic how everything is wired.
N.B. most modern steppers cannot be driven by the ancient L298 driver.
Yes, You will want to use a separate power supply to power the stepper motors.
As a general rule, it's best to provide isolation of power supplies for micro controllers (driven by a dedicated source) and any high powered or transient-prone noise spike driver circuits or components, like motors and inductive loads.
To power a stepper motor, select a power supply that matches its voltage and current requirements. Connect the motor wires to a stepper motor driver and then connect the driver to the power supply, ensuring correct polarity. Use a microcontroller to send step and direction signals to control the motor. Always refer to the motor and driver datasheets for specific instructions.
But you don't power the motor, you power the driver.
So the supply must match the requirements of the driver.
A 4volt 1.5Amp motor could require a 12-24volt 1Amp supply.
We need the voltage/current specifications of the stepper motor (not NEMA xx).
If voltage is less than 12V and current is more than 0.3A, then the L298 is unsuitable.
Leo..