Calculators

Motor power supply calculator

A motor supply must cover the motor's rated voltage plus the driver's drop, at the stall current every motor draws as it starts: Vsupply ≥ Vmotor + Vdrop(Istall), and the supply must deliver motors × Istall. Rate it 25% above that.

Vsupply ≥ Vmotor + Vdrop(Istall)Ipeak = motors × Istallsupply rating = 1.25 × Ipeak
Minimum supply voltage10.1 V
Driver drop at the stall current3.13 V typical, 4.05 V maximum
Peak current (all motors starting)3 A
Supply current rating (25% margin)3.75 A
This supply: nominal, and near empty9 V, 4.8 V

A 9 V PP3 cannot supply this. Its datasheet charts it only up to 50 mA, where it gives about 440 mAh; 3 A is 60 times that, so its voltage collapses when the motors start. Use AA cells or a Li-ion pack. This supply (9 V) is below the 10.1 V needed: the motors get less than their rated voltage and may not start.

The circuit, running liveOpen in the playground →

One motor at stall, drawn as its winding resistance (rated voltage ÷ stall current), behind a resistor that drops what the driver drops at that current, plus each motor's share of the battery's internal resistance for alkaline packs. The source is the supply picked; for "Other" and the PP3, whose datasheet does not cover motor currents, it is the minimum supply worked out. The voltmeter shows what reaches the motor.

Worked example

Two 6 V gear motors that each draw 1.5 A at stall, through an L298: its datasheet drop is 3.2 V at 1 A and 4.9 V at 2 A, about 4.05 V at 1.5 A, so the supply needs 6 + 4.05 = 10.05 V. Both starting together draw 2 × 1.5 = 3 A; rate the supply for 3.75 A. A 9 V PP3 is charted only up to 50 mA, so it cannot do it. Through a MOSFET driver (0.7 Ω at most) the drop is 1.05 V and 7.05 V is enough, which a 2S Li-ion pack (7.2 V) covers until it runs low.

Questions

Why plan for the stall current?

A DC motor draws its stall current for a moment every time it starts, and all the time when it is blocked. A supply sized for the running current sags at every start, which is why a robot can reset its board when the motors switch on.

Where do I find the stall current?

On the motor's datasheet. If it is not listed, measure the winding resistance with a multimeter and divide the rated voltage by it: that is the current with the shaft held still.

Why does an L298 lose so much voltage?

It switches with bipolar transistors, and the current passes two of them (one high, one low). ST's datasheet gives a total drop of up to 3.2 V at 1 A and 4.9 V at 2 A. MOSFET drivers drop only current × on-resistance, well under a volt at these currents.

Why not a 9 V battery?

A PP3 battery is built for small currents: its datasheet charts discharge from 10 to 50 mA only. Motors draw hundreds of milliamps to amps, the battery's voltage collapses, and the motors twitch or do not turn. Use AA cells, NiMH or a Li-ion pack.

Sources: ST L298 datasheet (saturation voltages, current ratings); Toshiba TB6612FNG datasheet; TI DRV8833 datasheet (SLVSAR1E); Energizer 522 (9 V) and E91 (AA) datasheets; Panasonic eneloop BK-3MCC and NCR18650B datasheets.

Related calculators

More calculators

Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.