TactivergeLite

Lite / Building Machines That Respond / Week 14

Battery budgets: peak, average and run time

A robot's motors draw 1.5 A, but only for a tenth of the time. Do you size the battery for 1.5 A, or for something much smaller?

About 35 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Battery choice shapes a whole robot: its weight, size, cost and how long it works. A power budget, a simple table of currents and times, is one of the first documents a robotics team writes.

Safety: Everything here is a low-voltage simulation. Never experiment with mains electricity or high-current batteries; real circuits are built only under supervision with a small, current-limited low-voltage supply.

Predict

A 5000 mAh battery powers a robot whose average current is 200 mA. Roughly how long will it run?

  1. 2.5 hours
  2. 25 hours
  3. 250 hours
Guess first, then reveal

Run time ≈ capacity ÷ average current = 5000 mAh ÷ 200 mA = 25 hours (in an ideal model; real batteries deliver somewhat less).

Discover

In the Electronics Studio, build a low-voltage supply feeding two loads in parallel: a small constant one (like a microcontroller) and a larger one you switch on and off (like a motor). Record the supply current with the big load on and off. Use your two readings and a duty cycle of 10% to work out the average current.

What the interactive shows (text version)

In the Electronics Studio, a supply feeds a small constant load and a larger switched load in parallel. With the large load off, the supply current is just the small load's; with it on, the two currents add. Weighting the large load by a 10% duty cycle gives the average current, for example 50 mA + 10% of 1500 mA = 200 mA.

You can also open the interactive on the full site when you have a faster connection.

Understand

Capacity: mAh and Wh

Battery capacity is often quoted in milliamp-hours (mAh): 2000 mAh can supply 2000 mA for 1 hour, or 200 mA for 10 hours, ideally. Energy capacity in Wh = mAh × voltage ÷ 1000. A 2000 mAh, 3.7 V cell holds 7.4 Wh.

Average from a duty cycle

If a load draws a large current only part of the time, the average is current × fraction of time on. A 1.5 A motor running 10% of the time averages 150 mA. Add the constant loads: a 50 mA controller plus that motor averages 200 mA.

Peak still matters

Run time depends on the average, but the battery, wiring and regulator must survive the peak: here 50 + 1500 = 1550 mA. A battery that cannot deliver the peak will sag in voltage and may reset the controller just as the motor starts.

Explain it another way

Intuitive

Your phone battery lasts a day even though the screen and radio occasionally gulp power. What matters for 'how long' is the average; what matters for 'does it crash' is the biggest gulp.

Technical

Average current I_avg = Σ(I_k × t_k) / T. Ideal run time = capacity / I_avg. Real capacity falls at high discharge rates and low temperatures, and usable capacity is usually limited to protect the cells.

Mathematical

I_avg = 50 mA + 0.10 × 1500 mA = 200 mA. Run time = 5000 ÷ 200 = 25 h. Energy view: 5000 mAh × 3.7 V = 18.5 Wh; at 3.7 V the average power is 0.2 × 3.7 = 0.74 W; 18.5 ÷ 0.74 = 25 h.

Applied

Planetary rovers, drones and delivery robots all start with a power budget. Designers cut the average by sleeping the processor and switching sensors off between readings, sometimes doubling run time without a bigger battery.

Worked example 1

A sensor node draws 20 mA for 1 second, then sleeps at 0.1 mA for 59 seconds, repeating. What is its average current?

Per minute: 20 mA × 1 s + 0.1 mA × 59 s = 20 + 5.9 = 25.9 mA·s. Divide by 60 s: ≈ 0.43 mA. A 1000 mAh battery would last about 1000 ÷ 0.43 ≈ 2300 hours, roughly three months.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

mA

h

Wh

Practice 4. Which number decides whether the battery and wires can cope when the motor starts?

W

Apply it

Write a power budget table for a small simulated robot: controller (50 mA, always on), two sensors (10 mA each, always on), drive motors (1.2 A, 15% of the time) and a buzzer (30 mA, 1% of the time). Calculate the average and peak current, then choose a battery from 1000, 2000 or 5000 mAh for at least 8 hours of running.

Reflect

Which single change to your robot's behaviour would most extend its run time, and why?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Energy over time: watt-hours and what they costLogic gates and truth tables →