Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Motors & Motion
  4. ›DS3218 and High-Torque Digital Servos (20 to 60 kg-cm)

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the DS3218 servo isDS3218 servo pinoutWiring the DS3218 servoExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

DS3218 servo pinout

The pins on the DS3218 servo and what each one does.

PinFunction
Brown / blackGND
RedV+ (5 to 8.4 V depending on model)
Orange / yellow / whiteSignal (PWM)
PinFunction
Brown / black
GND
Red
V+ (5 to 8.4 V depending on model)
Orange / yellow / white
Signal (PWM)
03

Wiring the DS3218 servo

Caution

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 pinArduino UnoESP32
GNDServo supply - and Uno GNDServo supply - and ESP32 GND
V+6 to 7 V buck converter output (not the 5V pin)6 to 7 V buck converter output
SignalD9GPIO 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
04

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.

Sweep with the full pulse range (Arduino Servo library) · Arduino C++Verify & upload in Electrolark
#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);
}
05

Setup and tuning

Supply

budget the stall current of every servo that can stall at once, plus 20 %.

Pulse range

check the end stops gently; if the servo buzzes at the ends, narrow the range to 600 to 2400 us.

Horns

use the 25T metal horn and the screw into the output shaft so it cannot slip under load.

Heat

holding a heavy load continuously warms the motor; reduce the load arm length or use a stronger servo.

06

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
07

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.
08

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.
09

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

  • DS3218 20 kg-cm Digital Metal Gear Servo, 180 Degree
    ₹1,683View
  • DS3115MG 15kg Digital Servo with Bracket
    ₹1,252View
  • AUSTARHOBBY AX8601 25kg Waterproof Metal Gear Digital Servo
    ₹1,492View
  • High-Torque Digital Servo 40kg·cm
    ₹2,479View
  • RDS5160 60kg Digital Servo with Bracket
    ₹3,110View
  • Quarter-Scale Metal Gear Servo 60kg·cm
    ₹2,289View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • XL4015 5A Buck Converter with Voltmeter
    ₹304View
  • PCA9685 16-Channel PWM / Servo Driver
    ₹1,199View
  • Servo Extension Cable, 30 cm
    ₹57View
  • Electrolytic Capacitor
    ₹16View
Shop Servo Motors

Keep learning

Component guideBeginnerServo Motors GuideA hobby servo is a small motor with a gearbox, position sensor and control circuit that moves to an angle you set with a pulse signal.3 min read · Motors & MotionComponent guideBeginnerMG996R servoThe MG996R is a standard-size metal gear servo with about 9.4 kg-cm of torque at 4.8 V and 11 kg-cm at 6 V.3 min read · Motors & MotionHow-toIntermediatePCA9685 16-Channel Servo DriverThe PCA9685 board makes 16 independent PWM signals and takes commands over I2C, so two pins on an Arduino, ESP32 or Pico can drive 16 servos without jitter.3 min read · Motors & MotionComponent guideIntermediateSerial Bus ServosA serial bus servo, or smart servo, takes position commands over a shared serial line instead of a PWM pulse.3 min read · Motors & Motion

Sources

  • DS3218 and DS3115MG digital servo datasheets
  • Arduino Servo library reference

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the DS3218 servo isDS3218 servo pinoutWiring the DS3218 servoExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)6 items · ₹6,728

DS3218 20 kg-cm Digital Metal Gear Servo, 180 Degree · High-Torque Digital Servo 40kg·cm · Quarter-Scale Metal Gear Servo 60kg·cm · Servo Extension Cable, 30 cm · Electrolytic Capacitor · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

500 to 2500 us pulse range, sweeping 0 to 180° in 2° steps.

DS3218 0°

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question