HR8833_Dual_DC_Motor_Driver_(SKU_DIR0040) - jimaobian/DFRobotWiki GitHub Wiki

HR8833 Dual DC Motor Driver

Introduction

This is a ultra compact size Dual-H-Bridge dc motor driver (Based on HR8833), which could drive two way 1.5A DC brush motors up to 10V . It has the same footprint as your thumbnail suitable for projects with limited spaces. Both sides of the module are desgined with standard XH2.54 pins, which allows you to plug it on a breadboard or prototype board.

Specifications

  • The logic part of the input voltage: 3.3-5V
  • Driven part of the input voltage Vs: 3.3-10V
  • Maximum continuous operating current: 1500mA(Single)
  • Support PWM speed control mode
  • Maximum power dissipation: 25W (T = 75 degree Celsius)
  • Working temperature:-20~85℃
  • Module Size: 18mm × 13mm

Pin Out

center
                                                          |-----------|----------|--------------------------------------|
                                                          | **Grade** | **name** | **Functional Description**           |
                                                          | 1         | VCC      | Power 3.3V-5V or IO port output high |
                                                          | 2         | GND      | Negative power supply                |
                                                          | 3         | IB2      | B channel logic input 2              |
                                                          | 4         | IB1      | B channel logic input 1              |
                                                          | 5         | IA2      | A channel logic input 2              |
                                                          | 6         | IA1      | A channel logic input 1              |
                                                          | 7         | VM       | Motor drive power 3.3V-10V           |
                                                          | 8         | GND      | Negative power supply                |
                                                          | 9         | MB1      | B Output 1                           |
                                                          | 10        | MB2      | B Output 2                           |
                                                          | 11        | MA2      | A Output 2                           |
                                                          | 12        | MA1      | A Output 1                           |  |

Tutorial

ready

Wiring diagram

Arduino Connection

channel logic input digital port
IA1 10
IA2 12
IB1 11
IB2 13

Sample code

/*
* @file Motor driver HR8833-Test.ino
* @brief HR8833-Test.ino  Motor control program
*
* control motor positive inversion
*
* @author [email protected]
* @version  V1.0
* @date  2016-4-13
*/
const int IA1=10;
const int IA2=12;
const int IB1=11;
const int IB2=13;

void setup() {
     pinMode(IA1, OUTPUT);
     pinMode(IA2, OUTPUT);
     pinMode(IB1, OUTPUT);
     pinMode(IB2, OUTPUT);
}

void loop() {
 MA1_Forward(200);//MA 1 road motor is transferred, PWM speed control
 delay(1000);
 MA2_Backward(200);//MA 2 road motor is transferred, PWM speed control
 delay(1000);
}

void MA1_Forward(int Speed1)
{
     analogWrite(IA1,Speed1);
     digitalWrite(IA2,LOW);
  }

void MA2_Backward(int Speed1)
{
    int Speed2=255-Speed1;
    analogWrite(IA1,Speed2);
    digitalWrite(IA2,HIGH);
  }

void MB1_Forward(int Speed1)
{
     analogWrite(IB1,Speed1);
     digitalWrite(IB2,LOW);
  }

void MB2_Backward(int Speed1)
{
    int Speed2=255-Speed1;
    analogWrite(IB1,Speed2);
    digitalWrite(IB2,HIGH);
  }

result

Motor reversing

Trouble shooting

More question and cool idea, visit DFRobot Forum More

[Schematic] [HR8833 Datasheet] [SVG file]

image:nextredirectltr.pngGo shopping click to buy on dfrobot store DFRobot Distributor List

category: Product Manual category: DRI Series category: Motor Controllers category: source category: Diagram