AI

The **MDDS20B** (often referred to within the Cytron SmartDriveDuo series) is a high-performance dual-channel motor driver designed to drive two brushed DC motors. It is widely used in combat robotics, mobile platforms, and industrial automation due to its ease of use and robust protection features.
### 1. Key Technical Specifications
Below are the primary electrical characteristics of the MDDS20B:
| Feature | Specification |
| :--- | :--- |
| **Input Voltage (VDC)** | 7V to 35V |
| **Continuous Current** | 20A per channel |
| **Peak Current** | 60A per channel (for 1 second) |
| **Switching Frequency** | 16 kHz (Ultrasonic, quiet operation) |
| **Control Interface** | RC (PWM), Analog, UART, MCU (PWM) |
| **Dimensions** | 101mm x 79mm |
---
### 2. Major Electronic Components & Subsystems
#### A. Power MOSFETs
The board utilizes high-efficiency N-channel MOSFETs in an **H-Bridge configuration**. These act as electronic switches to control the direction and speed of the motors. Because it uses 20A continuous current, the board typically features a large aluminum heatsink to dissipate heat generated during high-load operations.
#### B. Microcontroller (On-board logic)
Unlike "dumb" drivers, the MDDS20B has an onboard MCU that handles:
* **Mixed Mode:** Automatically calculates differential steering for tank-like robots.
* **Input Processing:** Decodes RC signals, Analog voltages, or UART commands.
* **Safety Logic:** Monitors for over-current and thermal conditions.
#### C. Connectivity & Terminals
* **Power Terminals:** Heavy-duty screw terminals for $V_{bat}$ and Ground.
* **Motor Terminals:** Two sets of terminals (Motor 1, Motor 2).
* **Input Pins:** Headers for RC receivers or microcontrollers (Arduino, Raspberry Pi).
#### D. Protection Circuitry
1. **Overcurrent Protection:** Limits current to prevent damage if the motor stalls.
2. **Temperature Protection:** Throttles output if the MOSFETs exceed safe operating temperatures.
3. **Under-voltage Shutoff:** Prevents battery deep discharge.
---
### 3. Operating Modes
The device features a DIP switch to toggle between different input protocols:
1. **RC Mode:** Directly connects to an RC receiver (standard servo pulses).
2. **Analog Mode:** Controlled via potentiometers or 0-5V signals.
3. **PWM Mode:** Controlled by a microcontroller (Magnitude/Sign or Locked Antiphase).
4. **UART Mode:** Serial commands for precise digital control and telemetry.
---
### 4. Simple Arduino Integration Example
To control the MDDS20B via PWM (Magnitude/Sign), you can use the following logic:
```cpp
const int motor1_pwm = 3; // Speed control
const int motor1_dir = 4; // Direction control
void setup() {
pinMode(motor1_pwm, OUTPUT);
pinMode(motor1_dir, OUTPUT);
}
void loop() {
digitalWrite(motor1_dir, HIGH); // Forward
analogWrite(motor1_pwm, 128); // 50% Speed
}
```
- ⤷How do I configure the DIP switches for RC Mixed Mode?
- ⤷ What is the difference between Independent and Mixed mode on this driver?
- ⤷ Can the MDDS20B handle 4S or 6S LiPo batteries?