Calculators

Servo power supply calculator

Plan for every servo that moves at once to draw its stall current: Ipeak = servos moving at once × stall current, and rate the supply 25% above that, at the servos' voltage. Power them from their own supply with a shared ground, never from the microcontroller board.

moving = ⌈servos × share⌉Ipeak = moving × Istallrating = 1.25 × Ipeak, P = V × rating
Supply current rating (25% margin)7.5 A
Supply voltage7.4 V
Servos moving at once3
Peak current6 A
Supply power55.5 W

6 A is more than a JST XH (3 A) or PH (2 A) connector is rated for: feed power through screw terminals or a connector and wire rated for 7.5 A, and split the servos across several leads.

Before you power it

  • Power the servos from their own supply, never from the board's 5 V pin or USB: an Uno's USB polyfuse opens above 0.5 A, and 3 servos can draw 6 A.
  • Join the servo supply's ground to the board's ground, or the control signal has no reference.
  • Match the supply to the servo variant: some serial bus servos (the STS3215 among them) are sold in 7.4 V and 12 V versions under one name, so read the label before connecting.
  • Give every servo on the bus its own ID, one at a time, before chaining them: new servos usually share the same factory ID.
  • Set every servo on the bus to the same baud rate as the controller.
The circuit, running liveOpen in the playground →

The servos moving at once are drawn as one load taking the peak current from the supply.

Worked example

A six-servo arm on 7.4 V serial bus servos, each drawing up to 2 A at stall, with half of them moving at once: 3 × 2 = 6 A peak, so a 7.4 V supply rated 7.5 A (55.5 W). 6 A is twice what a JST XH connector is rated for, so feed it through screw terminals and split the servos across several leads.

Questions

Why stall current and not the running current?

A servo draws close to its stall current when it starts moving and whenever it pushes against a load or holds a weight. Several starting together is when supplies sag and boards reset.

Can I power servos from the Arduino 5 V pin?

No. One small servo can pull the board's supply down and reset it, and on USB the Uno's polyfuse opens above 500 mA. Use a separate supply and join its ground to the board's.

What changes with serial bus servos?

They share one data line and one power pair, so every servo needs its own ID and the same baud rate, and the power wiring carries the current of all of them. Some models come in more than one voltage version under the same name; the supply must match the version.

Where do I find the stall current?

On the servo's datasheet; the MG996R's, for example, gives 2.5 A at 6 V. If it is not listed, measure the current while holding the horn still for a moment, or ask the seller.

Sources: TowerPro SG90 and MG996R datasheets (voltage ranges, MG996R stall current); Feetech STS3215 datasheet (7.4 V version); JST PH and XH connector datasheets (2 A and 3 A); Arduino Uno Rev3 documentation (500 mA USB polyfuse).

Related calculators

More calculators

Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.