# Electronic – Powering Stepper Motors Using Drivers

circuit-designl298power supplystepper motor

I am working on a project involving several stepper motors, I have chosen the L298N as the driver – and my system supply is a switching power supply 12V 15A.

My question is, how can I connect the 12V 15A supply to the L298N? I do understand the wiring and schematics but do not understand the power input to the driver itself.

I considered a buck converter but because I have 6x L298N's, I am struggling to understand how I can connect the 6x L298N's with 12V 15A Supply. It is clear 12V input is fine but 15A isn't? Any guidance would be appreciated.

The data sheets are here if needed:
https://www.sparkfun.com/datasheets/Robotics/L298_H_Bridge.pdf
https://docs-emea.rs-online.com/webdocs/157a/0900766b8157a734.pdf

You are creating a problem that does not exist. You are confusing current consumed with available current that can be consumed.

The IC and motors will only draw the current they need. The motors are rated to operate at 2.5 amps maximum current, so your power supply has plenty of current to spare. Its 15 amp rating is how much it can supply if all six motors 'request' that much current at the same time, which totals 15 amps (6 * 2.5).

What you should do for safety reasons is put a 5 amp fast-blow fuse or a 3 amp MDL slow-blow fuse in series with each ICs power input. This way a stalled motor or shorted circuit will blow the fuse instead of burning up in a bad way, and shut down only one motor.

EDIT: If you really need current limiting then:

Each motor driver IC has a current sense pin which has a resistor to ground. The voltage at that pin tells you the current drawn by that motor. To avoid using a MPU and complex software, just buy a LM339 quad comparator and set its trip point for 1.5 amps (I do not know what voltage that will be, as it is determined by your sense resistor). Use a P-channel MOSFET on the power input of the IC so the LM339 can shut it off by letting the gate-source voltage drop to zero.

A current sense resistor of 1.00 ohms 3 watts will give a voltage of 1 volt per amp, or 1.5 volts per 1.5 amps. The power per each IC goes through the fuse first, then the P-channel MOSFET which drives the +Vs connection in figure 6 of your data sheet. Set the LM339 to have the output go 'high' if (+) input is greater than 1.5 volts. Use a trim pot to put 1.5 volts on the inverting (-) pins.

The motor control IC can be driven by any MPU with a few pins to spare.