Robot servo power

Powering a robot with many servos (robot arms and small humanoids)

Robot arms and small humanoids put many identical servos on one supply. When two or three joints work hard at once, the supply sags, the far end of the wiring sags more, and servos reset or lose their position. This guide works through why, and how to size the supply, battery and wiring.

  • Servo figures from the distributor pages, cited on this page.
  • A calculator that shows the working for every answer.
  • A live circuit showing how much the wire alone loses.

1. Why servos brown out: stall current against idle current

Lithium batteries can catch fire if shorted, overcharged or damaged. Use a protected pack, the right charger and a fuse, and never leave one charging unattended.

A stalled motor draws many times its running current. Size the supply, wires and driver for the stall current, fit a fuse, and keep fingers clear of moving parts.

A guide, not tested advice for your parts. Check ratings, tolerances and heat before you build. Do not use for mains voltage or anything safety critical. Building safely

A servo draws little while it holds still with no load, and close to its stall current when it starts, pushes against something or holds a weight it cannot lift. Those two figures are more than ten times apart, and a supply sized for the first is far too small for the second.

STS3215 versionRated voltageIdle (no load)Stall
7.4 V version4 to 7.4 V150 mA2.5 A at 7.4 V
12 V version6 to 12.6 V200 mA2.7 A at 12 V

Sources: DFRobot STS3215 product page and Waveshare ST3215 product page. Check the label or datasheet of your servo; numbers vary by batch and supplier.

When several joints stall together, the current can jump past what the supply is rated for. One public report, SO-ARM100 issue #132, describes a 12 V 5 A supply on a daisy chain where “the bus can brown-out”, with servos resetting and the connectors at the start of the chain running hot.

2. 7.4 V or 12 V: know your servo's version

The STS3215 is sold in a 7.4 V version (4 to 7.4 V) and a 12 V version (6 to 12.6 V) under the same name. The variant code on the label tells them apart (C001, C044 and C046 are 7.4 V; C047 and C018 are 12 V), as the Seeed Studio wiki, Feetech servos lists.

  • A 12 V supply on the 7.4 V version is above its range. In SO-ARM100 issue #174, a 12 V adapter on 7.4 V servos gave an “Input voltage error”.
  • One setup can need two supplies. The SO-ARM100 and SO-101 README says the SO-101 leader arm always uses 7.4 V servos, with a 5 V supply, while a 12 V follower needs a 12 V supply of 5 A or more.
  • Battery packs change voltage as they discharge. A 2S lithium-ion pack is 8.4 V when full, above the 7.4 V version's 7.4 V. A 3S pack is 12.6 V when full, at the top of the 12 V version's range.

The calculator warns when the supply is outside the servo's rated range.

3. Sizing the supply or battery

Plan for the worst moment: the joints that can stall at once draw their full stall current, and the rest move. How much a moving servo draws depends on its load; the calculator assumes 30% of the stall current, an assumption you can change.

  • Peak: Ipeak = s × Istall + (N − s) × k × Istall, for N servos, s stalled at once and k the moving share.
  • Supply rating: at least 1.25 × Ipeak.
  • Average: N × (d × k × Istall + (1 − d) × Iidle), with d the share of time moving. It sets a battery's runtime, about 0.8 × capacity ÷ average.
  • Battery: its C rating times its capacity in Ah must cover the peak.

SO-101 style follower arm

Six STS3215 12 V servos on 12 V, two joints stalled at once: 2 × 2.7 A + 4 × 0.3 × 2.7 A = 8.64 A peak, so a supply rated 10.8 A or more. Moving half the time, the average is 3.03 A. The leader arm's 7.4 V servos on a 5 V supply stall at about 1.69 A each, for a 5.41 A peak and a 6.76 A supply.

A 16-servo humanoid on a battery

Sixteen STS3215 12 V servos on a 3S lithium-ion pack (10.8 V nominal), three joints stalled at once: each stalls at about 2.43 A at this voltage, so the peak is 16.8 A and the average 7.43 A. A 5,000 mAh pack rated 10C can deliver 50 A, enough for the peak, and runs for about 32 minutes at that average. A pack rated 2C would give only 10 A.

4. Wiring: gauge, daisy chains and connectors

  • Wire has resistance. 1 m of 22 AWG copper, out and back, is about 106 mΩ, so the arm's 8.64 A peak loses 0.915 V in the lead, 7.63% of 12 V. Keep it under 5%: 20 AWG loses 0.576 V (4.8%). Resistances from the American wire gauge table (Wikipedia).
  • In a daisy chain, every servo's current passes through the first link and its connectors, so that link carries the whole 8.64 A. Check that against your connectors' rating: a JST XH, for example, is rated 3 A.
  • Feed power in at more than one point along a long chain (power injection), or wire each servo back to a terminal block (star wiring), so no single link carries everything.
  • Loose links matter too. In lerobot issue #3131, a follower arm dropped off the bus when multiple joints were moving, even on a 12 V 20 A supply, and the reply pointed at the wiring.

The lead, simulated

A simple model: an ideal 12 V supply, 1 m of lead at its table resistance, and the servos as a steady current. It shows what the wire alone loses. A real supply sags further, and a real servo's current depends on its load.

  • Left: all six servos moving, 4.86 A, through 22 AWG.
  • Middle: two stalled and four moving, 8.64 A, through 22 AWG.
  • Right: the same 8.64 A through 20 AWG.
  • Each voltmeter reads what reaches the servos.
VoltmeterSimulator reading
Six moving, 22 AWG lead11.49 V
Two stalled and four moving, 22 AWG lead11.08 V
Two stalled and four moving, 20 AWG lead11.42 V

5. Keeping the logic alive

  • Give the servos their own supply. USB is for data: NVIDIA SO-101 troubleshooting guide notes that “the motors need separate power”.
  • Power the computer or controller board from its own supply or regulator, so a servo surge cannot pull it below its working voltage.
  • Join the grounds of the two supplies, so the data line has a common reference.
  • A large electrolytic capacitor across the servo supply, near the servos, helps ride through short current spikes. It does not replace a supply rated for the peak.

6. Diagnosis checklist

What you seeCheck first
“Input voltage error” from a servoThe supply voltage against the servo's version (section 2)
Servos reset or lose position when several joints work hardThe supply rating against the peak (section 3)
Servos drop off the bus when several joints moveLoose or thin links in the chain, and the first link's connectors (section 4)
Servos are found over USB but do not moveThe servo supply is connected and switched on (section 5)
Hot connectors at the start of the chainThe first link's current against its rating; add power injection (section 4)

7. Parts list

For the SO-101 style follower arm above. The supply and wire sizes are the worked example's answers; size your own with the calculator.

  • STS3215 servo, 12 V version: The follower arm in the worked example. Check the voltage on the label. Seeed Studio · Waveshare · Amazon
  • Bus servo adapter board: Connects the servo bus to a computer by USB and passes the supply to the servos. Waveshare · Seeed Studio · Amazon
  • 12 V supply rated 11 A or more: The worked example needs 10.8 A. DigiKey · Amazon
  • 20 AWG silicone wire, red and black: Keeps the 1 m lead under a 5% drop at 8.64 A. DigiKey · Amazon
  • Screw terminal block: A point to feed power in, or to wire each servo back to (star wiring). DigiKey · Amazon
  • 5V power supply for servos: For the leader arm's servos on 5 V. Check its rating against the peak above. Amazon

As an Amazon Associate, breadboardhub earns from qualifying purchases.

Shop links go to independent sellers. breadboardhub does not sell or check these parts: check each one's datasheet and ratings.

More tools

Where the figures come from

Questions

How big a supply does a six-servo robot arm need?
Size it for the worst moment, not the average. With six STS3215 12 V servos, two joints stalled at once and the rest moving at 30% of stall, the peak is 8.64 A, so rate a 12 V supply at least 25% above that, 10.8 A. Put your own numbers in the servo power budget calculator.
Why do my servos reset or lose position when several joints move?
The supply or the wiring cannot hold the voltage up at the peak current. A supply rated below the peak sags, and thin wire or a daisy chain whose first link carries every servo's current loses voltage before it reaches the far servos. Check the supply rating, the wire gauge and the connectors.
What does "Input voltage error" mean on a bus servo?
Usually that the supply is outside the servo's rated range. The STS3215 is sold in a 7.4 V version (4 to 7.4 V) and a 12 V version (6 to 12.6 V) under one name, so a 12 V supply on the 7.4 V version is too high. Read the label on the servo.
Can I power the servos from USB?
No. USB carries the data to the servo adapter board, but the servos need their own supply sized for their peak current. NVIDIA's SO-101 troubleshooting guide makes the same point.
Are the circuit's readings what my arm will measure?
No. The circuit models the supply as ideal, the lead as copper wire at its table resistance, and the servos as a steady current. It shows how much the wire alone loses at those currents. A real supply sags further, and a real servo's current depends on its load. Measure your own build with a multimeter.