DF Robot Dual Motor Shield 2A

Arduino product family is a great learning platform for electronics, programming and robotics. But most projects at some point require mobility. This dual motor shield allows Arduino to drive two channel DC motors. It uses a L298P chip which deliveries output current up to 2A each channel. Stack up this shield on your controller and drive motors with higher power requirements. Depending on the motor of choice, you can make it fast or handle a higher payload. This Arduino Compatible Motor Shield (2A) uses L298P chip which allow to drive two 7-12V DC motors with maximum 2A current. This shield can be directly mounted onto standard Arduino Uno R3 and Arduino Mega.

DRI0017-003

Speed control is achieved through conventional PWM which can be obtained from Arduino’s PWM output Pin 10 and 11. The enable/disable function of the motor control is signaled by Arduino Digital Pin 12 and 13. The Motor shield can be powered directly from Arduino or from external power source. It is strongly encouraged to use external power supply to power the motor shield.

Quick Spec

  • Motor Driven Voltage: 4.8 ~ 35V
  • Output Current: up to 2A/channel
  • Total Power Dissipation: 25W (T=75℃)
  • Driven Structure: Dual full-bridge driver
  • Driven Power Port: External power terminal, or VIN from Arduino
  • Driven Output Port: 2 channel screw terminals, or male PIN headers
  • Control Port: 4 TTL Compatible digital signals (Digital 10-13)
  • Operation Temperature: -25℃ ~ +130℃
  • Dimensions: 56 x 57mm

Board Layout

DRI0017-pinout-en

Wiring Diagram

DRI0017-Motor-Connect-en

Sample Code


/**set control port**/
const int E1Pin = 10;
const int M1Pin = 12;
const int E2Pin = 11;
const int M2Pin = 13;

/**inner definition**/
typedef struct {
  byte enPin;
  byte directionPin;
} MotorContrl;

const int M1 = 0;
const int M2 = 1;
const int MotorNum = 2;

const MotorContrl MotorPin[] = { {E1Pin, M1Pin}, {E2Pin, M2Pin} } ;

const int Forward = LOW;
const int Backward = HIGH;

/**program**/
void setup() {
  initMotor();
}

void loop() {
  int value;
  /**test M1 **/
  setMotorDirection( M1, Forward );
  setMotorSpeed( M1, 100 );
  delay(1000);
  setMotorSpeed( M1, 0 );
  delay(100);

  setMotorDirection( M1, Backward );
  setMotorSpeed( M1, 50 );
  delay(1000);
  setMotorSpeed( M1, 0 );
  delay(100);

  /**test M2**/
  setMotorDirection( M2, Backward );
  for (value = 0 ; value <= 100; value += 5) {
    setMotorSpeed( M2, value );
    delay(100);
  }
  setMotorSpeed( M2, 0 );
  setMotorDirection( M2, Forward );
  for (value = 0 ; value <= 100; value += 5) {
    setMotorSpeed( M2, value );
    delay(100);
  }
  setMotorSpeed( M2, 0 );
}

/**functions**/
void initMotor( ) {
  int i;
  for ( i = 0; i < MotorNum; i++ ) {
    digitalWrite(MotorPin[i].enPin, LOW);

    pinMode(MotorPin[i].enPin, OUTPUT);
    pinMode(MotorPin[i].directionPin, OUTPUT);
  }
}

/**  motorNumber: M1, M2
direction:          Forward, Backward **/
void setMotorDirection( int motorNumber, int direction ) {
  digitalWrite( MotorPin[motorNumber].directionPin, direction);
}

/** speed:  0-100   * */
inline void setMotorSpeed( int motorNumber, int speed ) {
  analogWrite(MotorPin[motorNumber].enPin, 255.0 * (speed / 100.0) ); //PWM
}

Resources

Shipping List

  • 1 x DF Robot Dual Motor Shield 2A


DF Robot Dual Motor Shield 2A

  • Brand: DF Robot
  • Product Code: DRI0017
  • Weight: 0.034kg
  • Product Status : Active
  • Stock

    Warehouse Stock Status Location
    Centurion Limited Stock CC170
    Stellenbosch No Stock
    Bulk Location No Stock

    We ship free of charge between branches to complete your order.

  • R234.00 (Inc Tax: R269.10)


Related Products

L298N Mini H-bridge dual motor driver

L298N Mini H-bridge dual motor driver

L298N Mini H-Bridge dual motor driver This Dual H-bridge motor driver, can drive two DC motors or a 4-wire two-phase stepper motor. With built-in TSD, you don't have to worry about motor stall Its..

Centurion (In Stock)
Stellenbosch (In Stock)
Bulk Location (No Stock)
Part No: L298M-MINI
Product Status : Active

R25.00 (Inc Tax: R28.75)

Romeo ESP32-C3 Robot Control Board

Romeo ESP32-C3 Robot Control Board

Romeo ESP32-C3 Robot Control Board The Romeo Mini ESP32-C3 Robot Control Board is a compact, all-in-one motor driver and development board designed for robotics projects. Powered by the onboard ESP..

Centurion (In Stock)
Stellenbosch (No Stock)
Bulk Location (No Stock)
Part No: DFR1063
Product Status : Active

R289.00 (Inc Tax: R332.35)

Tags: df robot, dual, motor, shield, 2a, 2 channel, driver, controller, pwm, l298p