Component guide · Intermediate · 4 min read
DS3218 and High-Torque Digital Servos (20 to 60 kg-cm)

Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The DS3218 is a 20 kg-cm metal-gear digital servo, and the DS3115MG, AX8601, 40 kg-cm, RDS5160 and 60 kg-cm quarter-scale servos are its stronger cousins for robot arms, steering and heavy linkages. They use the same three-wire signal as an SG90 (a 500 to 2500 us pulse every 20 ms), but draw 2 to 4 A or more at stall, so they need their own 5 to 8.4 V supply.
Key specs at a glance
- Torque
- DS3115MG 15 kg-cm, DS3218 20 kg-cm, AX8601 25 kg-cm, 40 kg-cm, RDS5160 and quarter-scale 60 kg-cm (at about 7 V)
- Voltage
- 4.8 to 6.8 V (DS3218), 6 to 8.4 V on many 40 to 60 kg-cm models
- Stall current
- About 2.5 A (DS3218) to 4 A or more (60 kg-cm)
- Signal
- PWM 50 to 330 Hz, 500 to 2500 us pulse
- Rotation
- 180 or 270 degrees depending on version
- Gears
- Metal gears, ball bearings; RDS5160 and DS3115MG come with a bracket
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DS3218 20 kg-cm Digital Metal Gear Servo, 180 Degree₹1,683
Option 2DS3115MG 15kg Digital Servo with Bracket₹1,252
Option 3AUSTARHOBBY AX8601 25kg Waterproof Metal Gear Digital Servo₹1,492
Option 4High-Torque Digital Servo 40kg·cm₹2,479
Option 5RDS5160 60kg Digital Servo with Bracket₹3,110
Option 6Quarter-Scale Metal Gear Servo 60kg·cm₹2,289
What the DS3218 servo is
Digital servos hold position more firmly than analog ones and respond faster, but they draw more current while holding. A robot arm with three or four of these needs a supply of 10 A or more at 6 to 7 V.
The 270-degree versions use the same pulse range spread over 270 degrees, so 1500 us is still the centre.
DS3218 servo pinout
The pins on the DS3218 servo and what each one does.
| Pin | Function |
|---|---|
| Brown / black | GND |
| Red | V+ (5 to 8.4 V depending on model) |
| Orange / yellow / white | Signal (PWM) |
- Brown / black
- GND
- Red
- V+ (5 to 8.4 V depending on model)
- Orange / yellow / white
- Signal (PWM)
Wiring the DS3218 servo
Never power these from the Arduino 5V pin or USB: the stall current resets the board or burns the regulator. Join the grounds, and add a 1000 uF capacitor across the servo supply near the servos.
| DS3218 servo pin | Arduino Uno | ESP32 |
|---|---|---|
| GND | Servo supply - and Uno GND | Servo supply - and ESP32 GND |
| V+ | 6 to 7 V buck converter output (not the 5V pin) | 6 to 7 V buck converter output |
| Signal | D9 | GPIO 13 |
- GND
- Arduino Uno:
- Servo supply - and Uno GND
- ESP32:
- Servo supply - and ESP32 GND
- V+
- Arduino Uno:
- 6 to 7 V buck converter output (not the 5V pin)
- ESP32:
- 6 to 7 V buck converter output
- Signal
- Arduino Uno:
- D9
- ESP32:
- GPIO 13
Example code
On an ESP32 use the ESP32Servo library with the same attach() call. For many servos, use a PCA9685 board and its own servo power input.
#include <Servo.h>
Servo s;
void setup() {
s.attach(9, 500, 2500); // min and max pulse in microseconds
}
void loop() {
for (int a = 0; a <= 180; a += 2) { s.write(a); delay(20); }
delay(500);
for (int a = 180; a >= 0; a -= 2) { s.write(a); delay(20); }
delay(500);
}Setup and tuning
budget the stall current of every servo that can stall at once, plus 20 %.
check the end stops gently; if the servo buzzes at the ends, narrow the range to 600 to 2400 us.
use the 25T metal horn and the screw into the output shaft so it cannot slip under load.
holding a heavy load continuously warms the motor; reduce the load arm length or use a stronger servo.
What you need
Shop this list10 of 12 found in our store · ₹12,886
DS3218 20 kg-cm Digital Metal Gear Servo, 180 Degree: the part this guide coversDS3218 20 kg-cm Digital Metal Gear Servo, 180 Degree₹1,683
DS3115MG 15kg Digital Servo with Bracket: another version this guide coversDS3115MG 15kg Digital Servo with Bracket₹1,252
AUSTARHOBBY AX8601 25kg Waterproof Metal Gear Digital Servo: another version this guide coversAUSTARHOBBY AX8601 25kg Waterproof Metal Gear Digital Servo₹1,492
High-Torque Digital Servo 40kg·cm: another version this guide coversHigh-Torque Digital Servo 40kg·cm₹2,479
RDS5160 60kg Digital Servo with Bracket: another version this guide coversRDS5160 60kg Digital Servo with Bracket₹3,110
Quarter-Scale Metal Gear Servo 60kg·cm: another version this guide coversQuarter-Scale Metal Gear Servo 60kg·cm₹2,289- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
XL4015 5A buck converter: a 5 to 7 V supply with enough current for the servoXL4015 Adjustable Buck Converter 5A₹119Closest match, check the specs- PCA9685 16-channel servo driver: to run many servos from two I2C pinsFind this part
Servo extension cable 30 cm: to reach the servoServo Extension Cable, 30 cm₹57
Electrolytic capacitor: 1000 uF across the servo supplyElectrolytic Capacitor₹16
Alternatives and when to choose them
- MG996R servo: the common 10 to 13 kg-cm metal-gear servo.
- Serial bus servos: daisy-chained servos with position feedback.
- PCA9685 servo driver: drive 16 servos over I2C.
- Servo motors: how servos work and how to size them.
Common mistakes to avoid
- Powering them from the Arduino 5V pin.
- Feeding 8.4 V into a 6.8 V servo.
- No common ground, so the servo jitters.
- Using plastic horns on a 40 kg-cm servo.
Frequently asked questions
Can an Arduino power a DS3218?
No. Power it from a separate 5 to 6.8 V supply of at least 3 A and join the grounds.
Is the DS3218 180 or 270 degrees?
Both versions exist; the product listing states which. The signal is the same.
Why does my servo jitter?
Usually a weak supply or missing common ground. Add a capacitor and check the supply under load.
Can I run it at 7.4 V from a 2S Li-Po?
Only the models rated to 8.4 V. The DS3218 needs a regulator below 6.8 V.
How do I make it continuous rotation?
Buy a continuous-rotation servo; modifying a digital servo usually ruins it.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



