Component guide · Intermediate · 4 min read
Cytron MDD10A, MDD20A and MDD3A Dual Motor Drivers

Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Cytron's dual drivers run two brushed DC motors from one board: the MDD10A (10 A per channel), MDD20A (20 A), MDD3A (3 A) and Maker Drive (1 A), plus Arduino shields, a Raspberry Pi HAT and an Uno-compatible robot controller. The MDD10A and MDD20A use PWM + DIR per motor; the MDD3A and Maker Drive use two PWM inputs per motor like a small H-bridge.
Key specs at a glance
- Current per channel
- MDD20A 20 A, MDD10A 10 A, MDD3A 3 A, Maker Drive 1 A
- Motor supply
- 6 to 30 V (MDD10A, MDD20A), 4 to 16 V (MDD3A), 2.5 to 9.5 V (Maker Drive)
- Logic
- 1.8, 3.3 and 5 V compatible
- Control
- PWM + DIR per motor (MDD10A, MDD20A, shields, HAT); two PWM per motor (MDD3A, Maker Drive)
- Extras
- Test buttons; MDD3A and Maker Drive also give a 5 V output
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Cytron MDD10A 10A Dual DC Motor Driver₹2,618
Option 2Cytron MDD20A 20A Dual DC Motor Driver₹3,953
Option 3Cytron MDD3A 3A Dual DC Motor Driver₹864
Option 4Cytron 10A Dual Motor Driver Shield for Arduino₹2,978
Option 5Cytron 3A Dual Motor Driver Shield for Arduino₹2,181
Option 6Cytron HAT-MDD10 10A Dual Motor Driver HAT for Raspberry Pi₹3,203
What the Cytron MDD10A is
A dual driver is the usual choice for a two-wheel robot: one channel per side. The Maker Drive and MDD3A suit TT, N20 and small gear motors; the MDD10A suits 12 V or 24 V gear motors in larger robots; the MDD20A handles wheelchair-size motors.
The Arduino shields and the HAT-MDD10 put the MDD10 design on a board that plugs on, with jumpers to choose the control pins.
Cytron MDD10A pinout
The pins on the Cytron MDD10A and what each one does.
| Pin | Function |
|---|---|
| VB+ / VB- | Motor battery |
| M1A / M1B, M2A / M2B | Motor 1 and motor 2 terminals |
| PWM1 / DIR1 | Motor 1 speed and direction (MDD10A, MDD20A) |
| PWM2 / DIR2 | Motor 2 speed and direction |
| M1A / M1B inputs | Two PWM inputs per motor (MDD3A, Maker Drive) |
| GND | Logic ground |
| 5V out | Regulated 5 V output (MDD3A and Maker Drive only) |
- VB+ / VB-
- Motor battery
- M1A / M1B, M2A / M2B
- Motor 1 and motor 2 terminals
- PWM1 / DIR1
- Motor 1 speed and direction (MDD10A, MDD20A)
- PWM2 / DIR2
- Motor 2 speed and direction
- M1A / M1B inputs
- Two PWM inputs per motor (MDD3A, Maker Drive)
- GND
- Logic ground
- 5V out
- Regulated 5 V output (MDD3A and Maker Drive only)
Wiring the Cytron MDD10A
This is the MDD10A and MDD20A wiring. For the MDD3A and Maker Drive, wire M1A, M1B, M2A and M2B inputs to four PWM pins and drive them like an L9110S. Join grounds and fuse the battery.
| Cytron MDD10A pin | Arduino Uno | ESP32 |
|---|---|---|
| PWM1 | D3 | GPIO 25 |
| DIR1 | D4 | GPIO 26 |
| PWM2 | D5 | GPIO 27 |
| DIR2 | D7 | GPIO 14 |
| GND | GND | GND |
- PWM1
- Arduino Uno:
- D3
- ESP32:
- GPIO 25
- DIR1
- Arduino Uno:
- D4
- ESP32:
- GPIO 26
- PWM2
- Arduino Uno:
- D5
- ESP32:
- GPIO 27
- DIR2
- Arduino Uno:
- D7
- ESP32:
- GPIO 14
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
Example code
Cytron's CytronMotorDriver Arduino library wraps both modes: choose PWM_DIR for the MDD10A or PWM_PWM for the MDD3A and Maker Drive.
const int PWM1 = 3, DIR1 = 4, PWM2 = 5, DIR2 = 7;
void motor(int pwm, int dir, int speed) { // speed -255 to 255
digitalWrite(dir, speed < 0);
analogWrite(pwm, abs(speed));
}
void drive(int left, int right) {
motor(PWM1, DIR1, left);
motor(PWM2, DIR2, right);
}
void setup() {
for (int p : {PWM1, DIR1, PWM2, DIR2}) pinMode(p, OUTPUT);
}
void loop() {
drive(180, 180); delay(1500); // forward
drive(150, -150); delay(600); // spin right
drive(-180, -180); delay(1500); // reverse
drive(0, 0); delay(1000);
}Setup and tuning
press M1A/M1B and M2A/M2B with only battery and motors connected to check each wheel's direction.
if one side runs backwards, swap its two motor wires instead of changing code.
the HAT-MDD10 uses GPIO 12, 13 for PWM (hardware PWM) and 24, 26 for DIR by default.
the battery must supply both motors' stall current at once.
What you need
Shop this list12 of 14 found in our store · ₹32,779
Cytron MDD10A 10A Dual DC Motor Driver: the part this guide coversCytron MDD10A 10A Dual DC Motor Driver₹2,618
Cytron MDD20A 20A Dual DC Motor Driver: another version this guide coversCytron MDD20A 20A Dual DC Motor Driver₹3,953
Cytron MDD3A 3A Dual DC Motor Driver: another version this guide coversCytron MDD3A 3A Dual DC Motor Driver₹864
Cytron 10A Dual Motor Driver Shield for Arduino: another version this guide coversCytron 10A Dual Motor Driver Shield for Arduino₹2,978
Cytron 3A Dual Motor Driver Shield for Arduino: another version this guide coversCytron 3A Dual Motor Driver Shield for Arduino₹2,181
Cytron HAT-MDD10 10A Dual Motor Driver HAT for Raspberry Pi: another version this guide coversCytron HAT-MDD10 10A Dual Motor Driver HAT for Raspberry Pi₹3,203
Cytron Maker Drive Dual Motor Driver: another version this guide coversCytron Maker Drive Dual Motor Driver₹518
Cytron Dual Channel 10A Motor Driver UNO Robot Controller: another version this guide coversCytron Dual Channel 10A Motor Driver UNO Robot Controller₹4,048- 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
Raspberry Pi 4 Model B 4GB: the Pi the HAT plugs ontoRaspberry Pi 4 Model B with 4GB RAM₹11,461Closest match, check the specs
7.4V 2S Li-Po battery: to power the motors7.4V 3800mAh 2S Li-Po Battery (114253)₹373- Fuse holder: to protect the battery wiringFind this part
Metal 4-wheel robot chassis: a base for a larger robotMetal 4-Wheel Robot Chassis 260×160mm₹193Closest match, check the specs
Alternatives and when to choose them
- Cytron MD10C single driver: one motor per board.
- Cytron SmartDrive MDDS30: RC, serial and analog input for big robots.
- L298N motor driver: the basic 2 A dual driver.
Common mistakes to avoid
- Mixing up the PWM+DIR and PWM+PWM wiring between models.
- Powering a Pi from the motor battery without a separate regulator.
- Undersized battery wiring for two high-current motors.
- Leaving logic GND unconnected.
Frequently asked questions
MDD10A or MDD20A?
Use the MDD20A if either motor stalls above about 15 A; otherwise the MDD10A is enough.
Can I run 24 V motors?
Yes on the MDD10A and MDD20A (up to 30 V). The MDD3A stops at 16 V.
Does the Maker Drive need a separate 5 V?
No. It outputs 5 V that can power a small controller.
Is there a library?
Yes, CytronMotorDriver in the Arduino Library Manager.
Can the shields stack with other shields?
Yes, if the jumper-selected pins do not clash with the other shield.
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.


