Component guide · Advanced · 3 min read
Waveshare DDSM Direct Drive Servo Motors and Driver Board

Wiring and Control
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Waveshare DDSM motors are direct-drive hub servo motors: the motor, encoder and driver are inside the wheel hub, with no gearbox. They talk RS485, take speed, current or position commands and report speed and position. That makes them quiet, backlash-free wheels for mobile robots. The DDSM driver board adds an ESP32, RS485 and power distribution for several motors.
Key specs at a glance
- Type
- Outer-rotor BLDC hub motor with integrated driver
- Supply
- About 12 to 24 V (check model)
- Bus
- RS485, IDs per motor
- Modes
- Current, speed, position
- Feedback
- Speed, position, current, temperature
- Models
- DDSM115, DDSM350 (CT high speed variants)
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Waveshare DDSM Direct Drive Servo Motor₹8,300
Option 2Waveshare Direct Drive Servo Motor Driver Board (ESP32)₹2,500
What the Waveshare DDSM direct drive servo motor is
Waveshare DDSM direct drive servo motors are hub motors with built-in drivers and encoders, controlled over RS485 or UART for robots and mobile bases.
Every motor needs a unique ID. Set them one at a time with the driver board or PC tool before connecting the chain.
Direct drive means high torque at low speed without gear noise. Use speed mode for wheels and position mode for turntables or joints that move slowly.
Waveshare DDSM direct drive servo motor pinout
The pins on the Waveshare DDSM direct drive servo motor and what each one does.
| Pin | Function |
|---|---|
| V+ | Motor supply |
| GND | Ground |
| A | RS485 A |
| B | RS485 B |
- V+
- Motor supply
- GND
- Ground
- A
- RS485 A
- B
- RS485 B
Wiring the Waveshare DDSM direct drive servo motor
Connect the Waveshare DDSM direct drive servo motor like this.
| Waveshare DDSM direct drive servo motor pin | Arduino + RS485 module | DDSM driver board (ESP32) |
|---|---|---|
| RS485 A / B | Via RS485 module | DDSM driver board ports |
| V+ / GND | 12 to 24 V supply | Board power input |
- RS485 A / B
- Arduino + RS485 module:
- Via RS485 module
- DDSM driver board (ESP32):
- DDSM driver board ports
- V+ / GND
- Arduino + RS485 module:
- 12 to 24 V supply
- DDSM driver board (ESP32):
- Board power input
Example code
Switch the motor to speed mode first. Check the exact frame for your model on the Waveshare wiki.
// DDSM frame: ID, mode/command, data..., CRC8 (Maxim). See the Waveshare wiki for full layout.
uint8_t crc8(const uint8_t *d, int n) {
uint8_t c = 0;
for (int i = 0; i < n; i++) { c ^= d[i]; for (int b = 0; b < 8; b++) c = (c & 1) ? (c >> 1) ^ 0x8C : c >> 1; }
return c;
}
void setSpeed(uint8_t id, int16_t rpm) {
uint8_t f[10] = {id, 0x64, (uint8_t)(rpm >> 8), (uint8_t)rpm, 0, 0, 0, 0, 0, 0};
f[9] = crc8(f, 9);
Serial2.write(f, 10);
}
void setup() { Serial2.begin(115200, SERIAL_8N1, 16, 17); }
void loop() { setSpeed(1, 60); delay(3000); setSpeed(1, 0); delay(2000); }Setup and tuning
feed the stated voltage (often 12 to 24 V) from a battery that can supply peak current.
connect RS485 or UART to the controller or driver board, with unique IDs.
choose speed, position or current mode by command.
set each motor ID one at a time before connecting on a bus.
bolt the motor and wheel firmly; check shaft load ratings.
What you need
Shop this list4 of 4 found in our store · ₹11,487
Waveshare DDSM Direct Drive Servo Motor: the part this guide coversWaveshare DDSM Direct Drive Servo Motor₹8,300
Waveshare Direct Drive Servo Motor Driver Board (ESP32): another version this guide coversWaveshare Direct Drive Servo Motor Driver Board (ESP32)₹2,500
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
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
Alternatives and when to choose them
- Encoder gear motors: cheaper geared option.
- BLDC motors and ESCs.
- RS485 basics.
Common mistakes to avoid
- Duplicate IDs.
- Weak battery.
- Loose mounting.
- Swapped A and B lines.
Frequently asked questions
How do I control a DDSM motor?
Send commands over RS485 or UART using Waveshare's protocol or driver board.
Why does only one motor respond?
All motors share the same default ID; set unique IDs.
Can I read the motor speed?
Yes. The motor reports its speed, position and current over the bus.
What voltage does the DDSM need?
Check the model; many run on 12 to 24 V.
Can I drive it from Arduino?
Yes, with an RS485 module and the command protocol.
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.
