I have trouble running Arduino nano and L298N on my PeakTech PS. I have it set to 12V 3A and when i run the code, the stepper dosen't manage to do steps. When I power the nano on a 9V battery and the L298N on PS it works perfectly. Here is a schematic of the circut when powered by the PS. Sorry for bad schematic, it is my first time making one. The stepper is a KH56JM2-803, it's some chinese brand. I'll attach the PDF for it.
Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE
Read the datasheet for the stepper! It says max 4.8 volt for the biggest motor. The L298 wastes some 2 - 4 volt. That applies 8 - 10 volt across the motor. It ought to get terribly hot.
The L298, does it have current control adjusted to 1 amp? If not it's a question about time before that stepper is damage by over current due to the too high voltage, 12 volt.
The motor you are using is a unipolar type, which is not suitable for operation with an H-bridge. And it needs a current driver (see the diagram on the left for your motor - "current driver" is indicated there).
Maybe it will work if you use it as a bipolar type by leaving the middle terminal of the coil free. Then the coil voltage should be 9.6V, which can work with an L298 and a 12V PS. But you won't get the full torque of the motor.
Yes and You must make sure the motor gets 4.8 volt at the most, not 8 to 10 volt as it is now. The driver knows nothing about the limits of the motor. It goes "full on".
You stated that things seem OK with separate supplies (i.e. V_arduino and V_motorstuff).
It provides a little holdup time in case running the steps causes the 12V to dip.
Try the two 100uF in parallel (better than nothing).
How did you try? Only diconnect the 12V from the motor?
I'm quite sure you must adjust your program to drive a bipolar motor with your L298.
Edit: It has been pointed out to me that my suggestion isn't correct. If you leave the middle terminal open, you cannot simply apply twice the voltage, because the power in the coils will be too high compared to the unipolar mode, where always only one coil is engaged. So even in this mode 12V is too much for that stepper.
Hi,
Can you please post some images of your project, so we can see your component layout?
Have you got the +12V that goes to the stepper connected directly to the power supply terminals?
Also the gnd wire that carries the stepper current needs to go directly to the power supply.
Then the Nanos power supply wires need to go directly to the power supply.
This is termed "star" type connection to power supply.
Make sure you do not have stepper supply current sharing a wire with Nano supply current.
Does your motor driver also need a 5V logic supply?