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. ›Hiwonder LD, LDX and LFD Digital Servos

Component guide · Beginner · 3 min read

Hiwonder LD, LDX and LFD Digital Servos

Specs, 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 Hiwonder LD digital servo isHiwonder LD digital servo pinoutWiring the Hiwonder LD digital servoExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

Hiwonder LD and LDX servos are digital PWM servos with metal gears, sold for robot arms and humanoids. LD-20MG and LDX-218 give 15 to 20 kg-cm, and many come with dual-shaft output for U-brackets. They use the normal 50 Hz PWM signal, with a 180 or 270 degree range depending on the model, so any servo driver can control them.

Key specs at a glance

Type
Digital PWM, metal gear
Torque
About 15 to 20 kg-cm (model dependent)
Supply
6 to 8.4 V
Range
180 or 270 degrees
Signal
50 Hz PWM, 500 to 2500 us
Output
25T spline, many with dual shaft
01

What the Hiwonder LD digital servo is

Hiwonder LD series digital servos, such as the LD-20MG and LD-27MG, are metal-gear PWM servos with high torque for robot arms, humanoids and hexapods.

These servos work with the Hiwonder LSC controllers, a PCA9685 board, or Arduino Servo directly. The 270 degree versions map the full 500 to 2500 us pulse range across 270 degrees, so library angles of 0 to 180 cover only part of the travel; use microseconds instead.

02

Hiwonder LD digital servo pinout

The pins on the Hiwonder LD digital servo and what each one does.

PinFunction
Brown / blackGround
RedSupply, 4.8 to 6 V (see specs)
Orange / yellow / whitePWM signal, 50 Hz, 500 to 2500 us pulses
PinFunction
Brown / black
Ground
Red
Supply, 4.8 to 6 V (see specs)
Orange / yellow / white
PWM signal, 50 Hz, 500 to 2500 us pulses
03

Wiring the Hiwonder LD digital servo

Connect the Hiwonder LD digital servo like this.

Hiwonder LD digital servo pinArduino UnoESP32
Brown (GND)GND, also to the servo supply groundGND, also to the servo supply ground
Red (V+)External 5 to 6 V supply (not the 5V pin for big servos)External 5 to 6 V supply
SignalD9GPIO 18
Brown (GND)
Arduino Uno:
GND, also to the servo supply ground
ESP32:
GND, also to the servo supply ground
Red (V+)
Arduino Uno:
External 5 to 6 V supply (not the 5V pin for big servos)
ESP32:
External 5 to 6 V supply
Signal
Arduino Uno:
D9
ESP32:
GPIO 18
04

Example code

A minimal sketch to check the part works.

Full range with microseconds (Uno) · Arduino C++Verify & upload in Electrolark
#include <Servo.h>
Servo s;

void setup() { s.attach(9, 500, 2500); }

void loop() {
  s.writeMicroseconds(500);  delay(1200);
  s.writeMicroseconds(1500); delay(1200);
  s.writeMicroseconds(2500); delay(1200);
}
05

Setup and tuning

Signal

drive with standard 50 Hz PWM, 500 to 2500 µs, from a servo controller or microcontroller.

Power

feed 6 to 7.4 V from a supply that can give the stall current (2 to 3 A per servo).

Range

most rotate 180° or 270°; check your model before mapping pulse widths.

Horn

attach the horn at the centre position (1500 µs) so both sides have travel.

Ground

join the servo supply ground and the controller ground.

06

What you need

Shop this list5 of 6 found in our store · ₹3,884

  • Hiwonder Digital Servo (LD, LDX and LFD Series): the part this guide coversHiwonder Digital Servo (LD, LDX and LFD Series)₹2,300
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • PCA9685 16-channel PWM / servo driver: to run many servos from two I2C pinsPCA9685 16-Channel PWM / Servo Driver₹1,199
  • SMPS power supply in metal enclosure (5/12/24 V): a bench supply for servo projectsSMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
  • Metal servo horn 25T: a stronger horn for 25-tooth spline servosMetal Servo Horn 25T (for MG995 / MG996R)₹71Closest match, check the specs
  • Electrolytic capacitor: bulk capacitance across the supplyElectrolytic Capacitor₹16
07

Alternatives and when to choose them

  • ✓Hiwonder LX bus servos: position feedback.
  • ✓DS3218 servo: similar torque, common choice.
  • ✓Hiwonder LSC servo controller.
08

Common mistakes to avoid

  • !Powering servos from the Arduino 5 V pin.
  • !Forgetting to share ground.
  • !Driving the servo into the end stop.
  • !Mounting the horn off centre.
09

Frequently asked questions

How do I control an LD servo with Arduino?

Use the Servo library on a PWM pin, with servo power from a separate supply.

Why does my servo jitter?

The supply is weak or the grounds are not shared.

What voltage do LD servos need?

Typically 6 to 7.4 V; check the label for your model.

Are they 180° or 270° servos?

Both exist; LD-27MG and LD-20MG versions come in different ranges.

Can I power several from an Arduino 5 V pin?

No. The Arduino cannot supply the current; use a dedicated supply.

Parts for this guide

  • Hiwonder Digital Servo (LD, LDX and LFD Series)
    ₹2,300View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • PCA9685 16-Channel PWM / Servo Driver
    ₹1,199View
  • SMPS Power Supply, Metal Enclosure (5V / 12V / 24V)
    ₹298View
  • Metal Servo Horn 25T (for MG995 / MG996R)
    ₹71View
  • 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 guideIntermediateDS3218 and High-Torque Digital Servos (20 to 60 kg-cm)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.4 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 & Motion

Sources

  • Hiwonder LD series specifications

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 Hiwonder LD digital servo isHiwonder LD digital servo pinoutWiring the Hiwonder LD digital 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 guide3 items · ₹3,515

Hiwonder Digital Servo (LD, LDX and LFD Series) · PCA9685 16-Channel PWM / Servo Driver · Electrolytic Capacitor

Run itChange the inputs and watch the output

500, 1500 and 2500 us: one end, the middle, the other end (270° servos turn further).

Servo 0°
500 usPulse

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