Power & electronics

How long will it run, and what supply does it need?

Bench-side arithmetic for anything that draws current. Real battery runtime once depth of discharge and conversion losses are taken out, the supply rating a circuit actually needs, whether a speaker wiring plan will cook the amplifier, the pulse and step maths behind servos and stepper motors, reactance at a given frequency, and what a printed part costs once you count the electricity.

Runtime worked out on usable energy, not the number printed on the label Money in US dollars at US filament and electricity prices, and every price is editable Impedance thresholds at the 4 Ω and 2 Ω lines amplifiers are actually rated to Replaces 8 single-purpose calculators

Your situation

What are you working out?

Pick the question. Only the fields that case needs get read — the rest are ignored.

That's not my case

Fine-tune the estimate

The numbers from your parts

Fill in the fields for the case you picked — everything else is ignored.

Ah
V
W
%

50% for lead-acid, 80–90% for LiFePO4.

%
mAh
mA
V
W

1.3 means a 30% margin over the load.

W RMS
Ω
ms
°
°
Hz
mH

Leave at 0 to skip the inductive side.

µF

Leave at 0 to skip the capacitive side.

g
$

US price for branded PLA. Put your own supplier’s figure in.

hours
W
$

US residential average. Check your own utility bill.

%

Engineering estimate based on the values you enter. Verify units, assumptions and rounding against the datasheet of your actual parts before wiring anything up — and treat mains voltage, lithium cells and anything that gets hot as the hazards they are. Filament and electricity prices are US market defaults and vary widely — both fields are editable on purpose, so use your own supplier and utility figures.

How the total adds up

Line by line

Both unit systems shown where it helps, and every price traced back to a field you can change.

The composition behind the result — usable energy against what depth of discharge and losses take away, load against safety margin, filament against electricity against wear.

    Quick answer

    What applies to you

    Usable watt-hours = amp-hours × volts × depth of discharge × efficiency. Divide by your load in watts for hours of runtime. Nominal energy in watt-hours from the amp-hour rating

    Deadline:

    Frequently asked questions

    How long will a 100 Ah battery run a 100 W load?

    Not the 12 hours the nameplate suggests. A 100 Ah 12 V battery holds 1,200 Wh nominally, but at 80% depth of discharge and 95% inverter efficiency only about 912 Wh is usable — around 9.1 hours at 100 W. On lead-acid limited to 50% depth of discharge it is closer to 5.7 hours.

    Why can’t I use the full capacity of a battery?

    Because deep discharge destroys cycle life. A lead-acid battery routinely taken below 50% may last only a couple of hundred cycles instead of a thousand or more. LiFePO4 tolerates 80–90% comfortably, which is a large part of why it is worth its higher price. On top of that, converting DC to AC costs another 5–15% in the inverter.

    What is the difference between amp-hours and watt-hours?

    Watt-hours measure energy; amp-hours measure charge and are meaningless without a voltage. A 100 Ah battery at 12 V holds 1,200 Wh, while 100 Ah at 48 V holds 4,800 Wh — four times the energy from the same amp-hour figure. Always compare batteries in watt-hours.

    How long does a 3000 mAh battery last?

    Divide capacity by draw: 3,000 mAh at 150 mA is 20 hours in ideal conditions, realistically about 17 after inefficiency. But most devices do not draw a constant current — anything that sleeps needs an average worked out from its duty cycle, and getting that wrong is why battery-life estimates for small devices are so often out by an order of magnitude.

    What size DC power supply do I need?

    Divide the load in watts by the voltage to get current, then add about 30%. A 30 W load at 12 V draws 2.5 A, so you want a 12 V supply rated at 3.25 A or more. Running a supply continuously at its rated maximum is how it ends up hot and short-lived, especially with inexpensive units rated for peak rather than sustained output.

    Can I use a power supply with a higher amp rating than my device needs?

    Yes, and it is usually a good idea. A device draws only the current it needs, so a 12 V 5 A supply on a 12 V 2 A device simply runs cooler and lasts longer. Voltage is the parameter that must match exactly — and so must the polarity, which is a far more common cause of destroyed equipment than the current rating.

    What happens if I wire speakers in parallel?

    The total impedance divides by the number of speakers, so two 8 Ω speakers in parallel present 4 Ω and four present 2 Ω. That draws more current from the amplifier, and once you go below its minimum rated impedance the amplifier either trips into protection or fails outright. Check the amp’s minimum rating before wiring anything.

    Series or parallel for speakers — which should I use?

    Parallel gives each speaker the full voltage and more power, but lowers the impedance the amplifier sees, which is the risky direction. Series raises the impedance, which is safe but delivers less power and lets the speakers interact through their back-EMF. If neither gives a load your amplifier likes, use another channel rather than compromising.

    What pulse width do I send a servo?

    By the usual convention, 1 ms drives it to one end of its travel, 1.5 ms centres it and 2 ms drives it to the other end, mapped linearly across the rated range. It is only a convention though: many servos actually accept 0.5 ms to 2.5 ms, and pushing one past its true mechanical limit makes it buzz, draw heavy current and eventually strip its gears.

    How many steps per revolution does a stepper motor have?

    360 divided by the step angle, multiplied by the microstepping factor. The common 1.8° motor gives 200 full steps per revolution, which becomes 3,200 at 1/16 microstepping. The extra resolution buys smoothness and quiet rather than genuine accuracy, since the holding torque of a single microstep is very small.

    Does microstepping make a stepper more accurate?

    Not meaningfully. It makes motion smoother and much quieter, which is why 3D printers use it, but the torque holding any individual microstep is a fraction of a full step, so the rotor can be pushed off the commanded position without the controller noticing. Positional accuracy still comes down to the motor’s inherent step error and the mechanics around it.

    How do I calculate inductive and capacitive reactance?

    XL = 2πfL, with L in henries, and XC = 1 ÷ (2πfC), with C in farads. Inductive reactance rises with frequency and capacitive reactance falls, which is the whole basis of filtering. They are equal at the resonant frequency, f = 1 ÷ (2π√(LC)), where they cancel and the circuit becomes purely resistive.

    How much does a 3D printed part cost to make?

    Filament plus electricity plus wear. A 50 g part at $20 per kilo is $1.00 of filament; four hours at 150 W and $0.17 per kWh is about $0.10 of electricity; add roughly 10% for machine wear and the running cost is around $1.21. What that leaves out is the part that actually costs money: your time, failed prints and post-processing.

    What margin should I charge on a printed part?

    Enough to absorb the print that fails at hour nine, which a 0% margin does not. Material and power are the small part of the real cost — labour, design time, support removal, sanding and the occasional total loss dominate. Pricing by machine hour as well as by gram is the usual way to make a light but slow part pay for itself.