Robot Electricity Basics: Voltage, Current, Battery Runtime

Learn how voltage, current, and resistance affect a robot, how to estimate battery runtime, and how to check the power supply limit and motor heating.

Author
AuthorAuthor

AI Engineer · 36+ years in IT · Japanese, based in Manila for 13+ years

Robot Electricity Basics: Voltage, Current, Battery Runtime

Summary

  • Understanding robot electricity begins with the relationship between voltage (V), current (A), and resistance (Ω). You can calculate current by dividing voltage by resistance.
  • To estimate how long a robot can operate on a battery, convert the battery capacity in ampere-hours (Ah) to watt-hours (Wh). Divide the stored energy (Wh) by the robot's total power consumption (W) to estimate its runtime.
  • When a motor cannot turn, it draws a large current, which can exceed the limit of the power supply or produce heat. In my test in the Webots robot simulator, when the robot pushed against a wall, the calculated current rose to about 12 times the current while driving, above the assumed power supply limit of 1 A.

When companies consider bringing in robots, questions like these can come up:

  • "Can this serving robot run until closing time without charging?"
  • "Why did the transport robot stop after it got caught on a package?"
  • "The motor is getting hot. Is it safe to keep using it?"

Understanding the basics of electricity can help you answer these questions before operating a robot. Before running a robot, I always use formulas to predict its behavior. Afterward, I compare the predictions with the actual results. The following examples cover voltage and current, battery capacity, power supply limits, and heat generation. I also present the results of my own test in the Webots simulator.

Understanding Voltage, Current, and Resistance Through Water Pipes

Electricity is easier to understand when you compare it to water flowing through pipes.

Electrical termUnitWater pipe comparison
VoltageV (volt)The force pushing the water
CurrentA (ampere)The amount of water flowing per second
ResistanceΩ (ohm)How narrow the pipe is

The ampere is one of the base units of the International System of Units (SI). The volt and the ohm are derived units built from other units, and the ohm is defined as "volts divided by amperes."

Finding Current With Ohm's Law

If you know the voltage and the resistance, you can calculate the current that flows. This is Ohm's law.

Current = voltage ÷ resistance

For example, applying 12 V across a resistor with a resistance of 4 Ω produces a current of 12 ÷ 4 = 3 A. Just as greater pressure or a wider pipe increases water flow, higher voltage or lower resistance increases electrical current, with the other factor held constant.

Direct Current and Alternating Current

The electricity used in batteries, USB, and robot circuits is direct current (DC). The electricity from the wall outlets in a building is alternating current (AC), and a charger or AC adapter converts it to DC before passing it to the robot.

Series and Parallel

In a series connection, resistors are connected one after another, and their resistance values are added together. Resistors of 2 Ω and 3 Ω connected in series have a total resistance of 5 Ω. Applying 10 V produces a current of 2 A. In a parallel connection, resistors are connected in separate branches. Two 10 Ω resistors connected in parallel have a total resistance of 5 Ω.

Batteries follow the same idea. Connecting batteries in series adds their voltages, and connecting them in parallel increases their capacity.

Calculating Runtime From Power and Battery Capacity

How fast a robot uses electrical energy is expressed as power (W).

Power = voltage × current

At 12 V and 2 A, the power consumption is 24 W. To calculate energy consumption (Wh), multiply power in watts by operating time in hours. A robot operating at 24 W for 2 hours consumes 48 Wh of energy.

Try it: voltage, current and power
5 V × 2 A = 10 W
Power
10 W
5 V × 2 A

Power is voltage × current. The wider and faster the water, the more work it can do.

Energy can also be expressed in joules (J), and 1 Wh = 3,600 J. In SI, the watt is defined as "joules per second." In the Webots simulator, battery energy is set in joules, so this conversion is useful to remember.

Reading Battery Capacity (Ah and mAh)

Battery capacity is shown in Ah (ampere-hours) or mAh (milliampere-hours). A 10 Ah battery can supply 1 A for about 10 hours, as a rough guide. The units relate as 1,000 mAh = 1 Ah.

Comparing Battery Energy in Wh, Not Ah

Battery capacity in Ah alone is not enough to compare the energy stored in batteries with different voltages. Multiply voltage by capacity in Ah to calculate Wh and compare the energy stored in each battery.

Battery labelCalculationEnergy
5 V, 10 Ah5 × 1050 Wh
12 V, 10 Ah12 × 10120 Wh

Even at the same 10 Ah, the 12 V battery holds more than twice the energy of the 5 V battery. You estimate the runtime by dividing the battery's Wh by the robot's power. Running a 24 W robot on a 120 Wh battery gives 120 ÷ 24 = 5 hours as an estimate.

Checking the Current Limit of the Power Supply

Batteries and power supplies have an upper limit on the current they can supply (current capacity). Even if the calculation shows enough runtime, the robot may stop if the supply cannot deliver the current it needs.

For example, connecting two motors that each use 3 A gives a total of 6 A. A power supply that can deliver only up to 5 A is not enough. When the required current exceeds the supply limit, the voltage may drop. As a result, the microcontroller (the small computer that controls the robot) may restart or the power supply may shut down.

Keep in mind that motors draw high current during startup and when they stall (cannot turn). If you select a power supply based only on normal operating current, the required current may exceed its limit in these situations.

Try it: battery energy, total current and the power supply limit
5 A2.5 A

Within the limit

Battery energy (V × Ah)
120 Wh
12 V × 10 Ah
Total current
2.5 A
1 A × 2 + 0.5 A
Power (V × total current)
30 W
12 V × 2.5 A
Running time (Wh ÷ W)
4 h
120 Wh ÷ 30 W
Heat in one motor coil (I × I × R)
1 W
1 × 1 × 1 Ω
Largest motor current when the wheel cannot turn (V ÷ R)
12 A
12 V ÷ 1 Ω

When a wheel is blocked, for example when the robot pushes a wall, the motor current rises. Move "Current of one motor" up: the total passes the dashed line, the running time becomes shorter, and the heat grows with the square of the current.

Polarity and GND

Batteries and power supplies have + and − polarity, and connecting them backward can damage parts. GND is the 0 V reference for voltage. Even when you use separate power supplies for the microcontroller and the motors, connect their GNDs together so they share the same 0 V reference.

Watch Out for Overcurrent and Heat

A short circuit occurs when the positive and negative terminals are connected through a path with almost no resistance. For example, consider a 12 V power supply with its terminals connected through a resistance of 0.1 Ω. Ohm's law gives a theoretical current of 12 ÷ 0.1 = 120 A. Current that exceeds the allowable limit is called overcurrent.

When current flows through a resistance, electrical energy is converted into heat.

Rate of heat generation (W) = current × current × resistance

With 2 A flowing through a resistance of 1 Ω, heat is generated at 4 W. At 4 A, the rate increases to 16 W. For the same resistance, doubling the current quadruples the rate of heat generation. To protect against overcurrent, use fuses or circuit breakers to interrupt the circuit when the current exceeds the allowable limit.

Workplace Examples for Japanese Companies in the Philippines

Next, let's apply these calculations to situations where Japanese companies in the Philippines might use robots. All numbers are hypothetical values for explanation.

Warehouse: A Transport Robot

Consider a transport robot with a 24 V, 20 Ah battery, two motors (5 A each), a computer that draws 1 A, and a motor power supply limit of 15 A.

ItemCalculationResult
Battery energy24 × 20480 Wh
Total current5 × 2 + 111 A
Power24 × 11264 W
Runtime480 ÷ 264about 1.8182 hours

In normal driving, the current the motors need stays within the 15 A supply limit.

However, if the robot gets caught on a pallet and each motor needs 20 A, the motors alone exceed the supply limit. Including the computer, the total current is 20 × 2 + 1 = 41 A.

If the power supply could deliver this current, the power consumption would be 24 × 41 = 984 W. At that rate, the estimated battery runtime would be 480 ÷ 984 = about 0.4878 hours. When selecting a power supply, account for the current drawn when the robot's motors stall.

Restaurant: A Serving Robot

For a serving robot with a 12 V, 20 Ah battery and a total current of 3 A, the energy is 12 × 20 = 240 Wh and the power is 12 × 3 = 36 W. The runtime is 240 ÷ 36 = about 6.6667 hours. Before deployment, you can use this as a guide to decide whether the robot will need charging during business hours.

Factory: Motor Heat

Suppose a motor has a coil resistance of 0.5 Ω and normally draws 4 A. The rate of heat generation is 4 × 4 × 0.5 = 8 W. If something jams the motor so it stalls and 20 A flows, the rate becomes 20 × 20 × 0.5 = 200 W. The motor generates heat at 25 times the normal rate, so a mechanism is needed to prevent prolonged motor stalls.

Delivery: Comparing Robot Batteries

A 48 V, 10 Ah battery holds 48 × 10 = 480 Wh, and a 12 V, 20 Ah battery holds 12 × 20 = 240 Wh. Although the 48 V battery has half the capacity in Ah, it stores twice as much energy in Wh. When selecting a battery from a catalog, do not rely on its Ah rating alone.

Results Checked in Webots: Battery Drain and Current

I checked these calculations myself in the Webots robot simulator (R2025a).

Test Setup

  • Robot: e-puck, a small mobile robot (run in Webots' Supervisor mode, which lets the program also read its true position and speed)
  • Battery: 100 J (the battery setting of the Webots robot)
  • Motion: stop for 5 seconds → drive forward with the wheels turning at 6.0 rad/s (radians per second, a measure of rotation speed) → hit the blue wall and keep pushing (about 15 seconds in total)
  • Values measured by Webots: remaining battery energy (J) and wheel torque (the turning force on the wheel, in N·m)

How to use the Supervisor is explained in the Webots tutorial. The idea of torque is explained in the article on robot force basics.

Webots screen: the e-puck hitting the blue wall and continuing to push it The e-puck hits the blue wall and keeps pushing it.

The battery setting of a Webots robot takes three values: the present energy level (J), the maximum energy the robot can hold (J), and the recharge speed (W). The CPU power consumption (W) can be set separately, and for the e-puck it is 1.11 W.

Webots does not measure current or heat directly. So I calculated the motor values inside the controller (the program that runs the robot). The battery voltage of 4 V, the torque constant (the torque a motor produces per ampere) of 0.01 N·m/A, the motor coil resistance of 1 Ω, and the supply limit of 1 A are assumed values for the calculation.

  • Motor current = torque ÷ torque constant
  • Heat = current × current × resistance
  • Total current = current of the two motors + CPU current (1.11 ÷ 4 = 0.2775 A)

Prediction Before Running

ItemPrediction
100 J battery converted0.0278 Wh, 6.94 mAh (at 4 V)
Time the battery lasts at the CPU's 1.11 W100 ÷ 1.11 ≈ 90.1 seconds
Maximum current when the wheels cannot turn4 ÷ 1 = 4 A

Results in Three Phases

Battery drain and torque are values measured in Webots. The total current, power, and battery life are calculated with the assumed values.

PhaseTimeBattery usedBattery drain rate (measured, W)TorqueTotal current (calculated)Assumed 1 A limitPower (calculated)Battery life (calculated)
Stopped4.96 s5.5056 J1.1100 W00.2775 AWithin limit1.1100 W90.1 s
Driving4.64 s5.1504 J1.1100 W0.00006 N·m0.2900 AWithin limit1.1599 W86.2 s
Pushing the wall5.25 s5.8251 J1.1100 W0.01557 N·m3.3916 AExceeded13.5663 W7.4 s

While the robot was pushing against the wall, the calculated current per motor was 1.5570 A, the rate of heat generation was 2.4244 W, and the voltage drop across the coil was 1.557 V.

The measured battery energy decreased from 99.9290 J to 83.3058 J, a consumption of 16.6232 J. Based on the measured battery drain rate, the remaining energy would last approximately 75.1 seconds.

Webots console: the prediction before running (A) and the results of the three phases (B) The prediction before running (A) and the results of the three phases (B).

What the Results Show

Graph of the remaining battery energy and a bar chart of the total current in each phase Left: remaining battery energy (background colors mark each phase). Right: total current in each phase, with a dotted line for the assumed 1 A limit.

By calculation, the total current while pushing the wall was about 11.6952 times the current while driving (3.3916 ÷ 0.29). It exceeded the assumed 1 A limit by 2.3916 A.

Based on the calculated power, battery life shrinks from 90.1 seconds when stopped to 7.4 seconds when pushing the wall. That is about 1/12.1757 of the value when stopped.

The calculated results of the three phases show that the load on the power supply is largest when the robot hits a wall and the wheels cannot turn.

However, the measured battery drain rate in Webots remained at 1.11 W throughout all three phases, matching the configured CPU power consumption. The e-puck's wheel motors have a consumptionFactor of −0.001, which means they consume almost no battery energy in this simulation. The Webots documentation describes its motor power model, which multiplies torque by a factor, as a highly simplified model.

In a real robot, the harder it pushes against a wall, the faster the battery drains. The simulated battery readings alone do not reflect this difference. I compare the measured values with my calculated estimates and investigate the reasons for each discrepancy.

Steps to Estimate Before Running

Here are the main points of this article, arranged as steps to estimate before deployment.

  1. Find the battery's Wh (voltage × Ah)
  2. List the current of each part and add them up (motors, computer, sensors, and so on)
  3. Calculate the power and the runtime (voltage × total current, then Wh ÷ power)
  4. Check whether the current when the motors stall exceeds the supply limit
  5. Calculate the rate of heat generation and decide whether you need fuses or circuit breakers
  6. Run the robot and compare the results with your prediction

Here are examples of questions to check at the estimation stage:

  • "With a 12 V, 20 Ah battery and a total of 3 A, how many hours can the robot run?"
  • "If both motors get caught at the same time, will the current exceed the supply limit?"
  • "How much does the rate of heat generation increase when the motor stalls?"

FAQ

Q: Does a battery with a larger mAh number run longer?

For batteries with the same voltage, a larger mAh number means a longer runtime. When you compare batteries with different voltages, multiply voltage by Ah to convert to Wh before comparing. As with 48 V, 10 Ah (480 Wh) and 12 V, 20 Ah (240 Wh), a battery can have half the Ah and still have twice the Wh.

Q: Why does the robot restart the moment it starts moving or when it hits something?

Motors draw a large current when they start to move and when they cannot turn. If that current exceeds the limit of the power supply, the voltage may drop, and the microcontroller may restart or the power supply may shut down. The fix is to choose the power supply based on the current when the motors cannot turn, not on the normal current.

Q: Which current should I use to check the limit of the power supply?

Add up the current of each part, and then recalculate the total using the current the motors draw when they cannot turn. In the warehouse example, the current was 11 A in normal driving but rose to 41 A when the robot got caught. If you expect situations that exceed the limit, protect the circuit with fuses or circuit breakers.

Q: Does the battery in Webots drain the same way as in a real robot?

Not necessarily. Webots uses a simple motor power model that multiplies torque by a factor, and the e-puck's wheel motors are set to use almost no battery. In my test, the battery drain rate stayed at 1.11 W even while the robot pushed the wall. I recommend checking the simulator's values side by side with your own formula calculations.

Conclusion

You can estimate a robot's runtime, required current, and heat generation with the formulas introduced in this article. Before deployment, check these three points:

  • Find the runtime by dividing the battery's Wh by the power (W)
  • Check the power supply limit including the current when the motors stall
  • Remember that for the same resistance, the rate of heat generation is proportional to the square of the current

In the Webots test, the calculated current while pushing a wall was about 12 times the current while driving, and it exceeded the assumed limit.

PH AI Works helps Japanese companies and small and medium-sized businesses in the Philippines adopt AI and automate their work. If you are bringing in robots and want to check estimates such as whether the battery will last through business hours or whether the power supply is enough, please book a free consultation with us.

References

About the author

Author
Author

Founder / AI Engineer (36+ years in IT)

  • ●From Tokyo · based in Manila for 13+ years
  • ●36+ years in IT (development, SEO, AI)
  • ●Google Certified AI Professional
  • ●IBM Certified Generative AI Engineer
  • ●AI chatbots, RAG & AI agent development
  • ●Physical AI Engineer

A Japanese AI engineer with 36+ years in IT and 13+ years on the ground in the Philippines. I write from hands-on experience to help Japanese companies adopt AI that actually delivers results — chatbots, workflow automation, AI agents, and AI-driven marketing. Feel free to reach out in Japanese or English.

Your Competitors Are Already Using AI!

Is your business keeping up?