ZERO Notificatons

NO Feedback yet!!

okay

xparo
X.P.A.R.O



Battery Backup Calculator

List what is on your robot, describe the battery, and get idle, typical and peak runtime, plus the capacity you need for a target runtime.

Electronics on the robot

Device Voltage (V) Min current (A) Typical current (A) Max / peak current (A) Qty Remove

Battery

Runtime report

Idle load—
Typical load—
Peak load—

Need a target runtime instead?

How to use the battery calculator

  1. List every device that runs from the battery. Add a row for the computer, sensors, motor drivers, motors, lights and radios. Use the voltage each device actually runs at (5 V for a Raspberry Pi, 12 V for many motors), even if a converter sits in between.
  2. Give three currents per device. Min is the idle draw, typical is what it draws during normal work, and max is the short peak, such as motor start-up or climbing a ramp. Datasheets give you a starting point; a measurement is better.
  3. Describe the battery. Enter the nominal pack voltage and capacity, and how much of the capacity you are willing to use (depth of discharge).
  4. Read the report. You get the total power and the current drawn from the pack for idle, typical and peak load, and a runtime for each. If you enter the pack's continuous current rating, the calculator warns you when the peak exceeds it.
  5. Working backwards? Enter a target runtime and the calculator tells you the capacity to buy at your depth of discharge.

How the runtime is calculated

Devices on a robot rarely share one voltage, so the calculator works in watts. Power is the same before and after a DC-DC converter (minus losses), which makes it the one quantity you can safely add up across 5 V, 12 V and 24 V devices.

Device power P = V × I × quantity Total power P_total = P_1 + P_2 + … + P_n Pack current I_pack = P_total ÷ V_pack Usable charge Ah_usable = capacity (Ah) × depth of discharge Runtime (h) t = Ah_usable ÷ I_pack

The same steps run three times, once each for the min, typical and max currents, so you see the best case, the realistic case and the worst case side by side.

Worked example

The calculator opens with a small ROS 2 rover: a single-board computer (5 V, 0.4 / 1.2 / 2.5 A), a 2D LiDAR (5 V, 0.3 / 0.4 / 0.5 A) and two 12 V drive motors (0.2 / 1.5 / 6 A each), powered by a 12 V, 10 Ah pack used to 80 percent.

Load caseTotal powerPack currentRuntime with 8 Ah usable
Idle2 + 1.5 + 4.8 = 8.3 W8.3 ÷ 12 = 0.69 A8 ÷ 0.69 ≈ 11 h 34 min
Typical6 + 2 + 36 = 44 W44 ÷ 12 = 3.67 A8 ÷ 3.67 ≈ 2 h 11 min
Peak12.5 + 2.5 + 144 = 159 W159 ÷ 12 = 13.25 A8 ÷ 13.25 ≈ 36 min

The motors dominate: they are 36 of the 44 typical watts. That is common on mobile robots, and it is why measuring the motors under a realistic load (driving on the real floor with the real payload) improves the estimate more than anything else. The peak row also tells you the pack must deliver at least 13 A continuously. A 10 Ah pack rated 2C (20 A) is fine; a 1C pack is not.

Getting realistic numbers

The calculator gives a planning estimate, not a guarantee. Measure your robot's real current once it is built and update the numbers. The guides below show how.

Frequently asked questions

How do I calculate battery runtime?

Add up the power of every device (volts × amps × quantity), divide by the battery voltage to get the current drawn from the pack, then divide the usable capacity (Ah × depth of discharge) by that current. The calculator does this for idle, typical and peak load.

What depth of discharge should I use?

Around 80 percent for LiPo and Li-ion packs you want to last, 80 to 90 percent for LiFePO4, and about 50 percent for lead-acid. Using 100 percent shortens battery life and leaves no reserve for voltage sag.

Why is my real runtime shorter than the estimate?

Usually because typical current was underestimated, motors spend more time near peak than expected, the pack is aged or cold, or DC-DC converter losses were left out. Measure the real current once and update the numbers.

What does the max continuous discharge field do?

If you enter the pack's continuous current rating (capacity × C-rating), the calculator warns you when your peak load would exceed it.

Guides for this tool

In-depth articles that explain the ideas behind the Battery Backup Calculator, with worked examples.

Battery Backup Calculator has its own project page with the story behind the tool, a gallery and every guide in one place.

Visit the project page →

More free tools

Every tool runs in your browser. Nothing you enter is uploaded.