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
On this page
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
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.
Hiwonder LD digital servo pinout
The pins on the Hiwonder LD digital servo and what each one does.
| Pin | Function |
|---|---|
| Brown / black | Ground |
| Red | Supply, 4.8 to 6 V (see specs) |
| Orange / yellow / white | PWM signal, 50 Hz, 500 to 2500 us pulses |
- Brown / black
- Ground
- Red
- Supply, 4.8 to 6 V (see specs)
- Orange / yellow / white
- PWM signal, 50 Hz, 500 to 2500 us pulses
Wiring the Hiwonder LD digital servo
Connect the Hiwonder LD digital servo like this.
| Hiwonder LD digital servo pin | Arduino Uno | ESP32 |
|---|---|---|
| Brown (GND) | GND, also to the servo supply ground | GND, 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 |
| Signal | D9 | GPIO 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
Example code
A minimal sketch to check the part works.
#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);
}Setup and tuning
drive with standard 50 Hz PWM, 500 to 2500 µs, from a servo controller or microcontroller.
feed 6 to 7.4 V from a supply that can give the stall current (2 to 3 A per servo).
most rotate 180° or 270°; check your model before mapping pulse widths.
attach the horn at the centre position (1500 µs) so both sides have travel.
join the servo supply ground and the controller ground.
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
Alternatives and when to choose them
- Hiwonder LX bus servos: position feedback.
- DS3218 servo: similar torque, common choice.
- Hiwonder LSC servo controller.
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.
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
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

