The Cytron MD10C Motor Driver is a versatile and robust module designed for controlling two brushed DC motors. It is widely used in robotics, automation projects, and various DIY applications where precise motor control is required. The driver operates within a voltage range of 5V to 30V, making it suitable for a wide array of motor types.
Pin | Function | Description |
---|---|---|
VIN | Voltage Input | Connect to motor power supply (5V-30V) |
GND | Ground | Connect to system and power ground |
PWM | Pulse Width Modulation Input | Controls motor speed |
DIR | Direction Input | Controls motor direction |
BRK | Brake | Stops the motor when pulled HIGH |
AN | Analog Input | Alternative to PWM for speed control |
LIMIT | Current Limiting | Set current limit via potentiometer |
Power Connections:
Motor Connections:
Control Connections:
Logic Power:
Brake and Current Limit:
// Define the pins connected to the MD10C
#define PWM_PIN 3
#define DIR_PIN 4
void setup() {
// Set the motor control pins as outputs
pinMode(PWM_PIN, OUTPUT);
pinMode(DIR_PIN, OUTPUT);
}
void loop() {
// Set motor direction to forward
digitalWrite(DIR_PIN, HIGH);
// Set motor speed to 50% duty cycle
analogWrite(PWM_PIN, 128);
delay(2000);
// Set motor direction to reverse
digitalWrite(DIR_PIN, LOW);
// Set motor speed to 75% duty cycle
analogWrite(PWM_PIN, 192);
delay(2000);
// Stop the motor
digitalWrite(DIR_PIN, LOW);
analogWrite(PWM_PIN, 0);
delay(2000);
}
Q: Can I control the speed of the motor using an analog signal? A: Yes, you can use the AN pin to control the motor speed with an analog voltage.
Q: What is the maximum frequency for the PWM input? A: The MD10C can handle PWM frequencies up to 20kHz.
Q: How do I use the brake function? A: To engage the brake, set the BRK pin to a HIGH logic level. This will stop the motor immediately.
Q: Can I use the MD10C with a microcontroller that operates at 3.3V logic? A: Yes, the MD10C is compatible with both 3.3V and 5V logic levels.