6DOF Arm · Chapter 4 · 5/12 · 0 done
Chapter 4·5 of 12·60 min

Servos & Power

Understand PWM, torque, voltage, and how to wire a stiff, brownout-resistant servo power rail.

Learning objectives

  • Explain hobby servo PWM pulse ranges (~500–2500 µs)
  • Size a power supply for multi-servo stall currents
  • Wire a common-ground architecture safely
  • Add bulk capacitance and observe voltage sag under load

Lesson

Hobby servos expect a pulse every ~20 ms (50 Hz). Pulse width encodes angle — commonly ~1000–2000 µs for 0–180°, though many digital servos accept wider ranges. Your firmware library abstracts this, but knowing the units helps when calibrating endpoints.

Power architecture (required pattern): 1. Dedicated 5–6 V high-current supply → servo V+ rail 2. MCU powered by USB or its own regulated input 3. Common GND between MCU, PWM driver, and servo supply 4. Do not feed six servos from the MCU’s onboard regulator

Place a 1000 µF (or larger) electrolytic across the servo rail near the driver, observing polarity. It cushions inrush when multiple joints accelerate.

If using LiPo + BEC: set voltage carefully, use appropriate connectors (XT60 etc.), and never leave a damaged pack unattended.

Components for this chapter

  • Standard metal-gear servo (MG996R-class)

    ×4
    Actuators

    Primary joint actuation

  • Micro metal-gear servo

    ×2
    Actuators

    Wrist / gripper

  • 5–6 V DC supply ≥10 A

    ×1
    Power

    Servo power rail

  • 1000 µF electrolytic capacitor (≥10 V)

    ×1
    Power

    Bulk decoupling on servo rail

  • Power distribution block or thick protoboard rail

    ×1
    Power

    Star distribution to servos / PCA9685 V+

Step-by-step

  1. 1

    Build the servo power rail

    Connect PSU + to a distribution node feeding PCA9685 V+ (or servo V+ lines). Connect PSU − to a ground node shared with MCU GND. Double-check polarity with the meter before any servo plugs in.

  2. 2

    Install bulk capacitor

    Solder or firmly clip the 1000 µF cap across the rail near the driver: positive to V+, negative to GND. Confirm voltage rating ≥10 V.

  3. 3

    Smoke-test with one servo

    Connect a single known-good servo. Power the rail only. The servo should hold a position quietly without the MCU. Measure rail voltage — it should stay near nominal.

  4. 4

    Measure sag under wiggle

    With MCU commanding small motions on one joint, watch the meter. If voltage collapses below ~4.8 V on a 5 V system, upgrade wiring gauge or PSU capacity.

Tips, safety & pitfalls

Finished this chapter?

Sign in to save progress to your account and pick up on any device.