Zum Hauptinhalt springen

OpenELAB Dual Motor Driver

Overview

Dual H-bridge motor driver based on TB6612FNG. Drives two DC motors or one stepper motor. Compact, efficient, with breadboard-friendly pin headers.

Features

  • TB6612FNG dual H-bridge
  • 2 DC motors (bidirectional) or 1 stepper (4-wire)
  • Motor voltage: 4.5–13.5V
  • Logic voltage: 2.7–5.5V
  • Continuous current: 1.2A/ch (3.2A peak)
  • PWM speed control + direction pins
  • STBY (standby) pin for low-power mode
  • Reverse-polarity protection on motor power

Wiring

Driver PinArduino Pin
VMMotor power (battery)
VCC5V (Arduino)
GNDCommon GND
AIN1D7
AIN2D8
PWMAD9 (PWM)
BIN1D10
BIN2D11
PWMBD6 (PWM)
STBYD12

Quick Start (Arduino)

#define AIN1 7; #define AIN2 8; #define PWMA 9
void setup() {
pinMode(AIN1, OUTPUT); pinMode(AIN2, OUTPUT);
pinMode(12, OUTPUT); digitalWrite(12, HIGH); // STBY
}
void loop() {
digitalWrite(AIN1, HIGH); digitalWrite(AIN2, LOW);
analogWrite(PWMA, 128); // 50% speed forward
delay(2000);
digitalWrite(AIN1, LOW); digitalWrite(AIN2, HIGH);
delay(2000); // Reverse
}

Applications

  • Robot chassis drive (2-wheel differential)
  • Conveyor belt control
  • Small CNC/plotter axis
  • Stepper motor control (bipolar 4-wire)

Resources

  • Schematic + PCB: Schematic and 3D files will be linked here when published.
  • Dev Board Selection