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 Pin | Arduino Pin |
|---|---|
| VM | Motor power (battery) |
| VCC | 5V (Arduino) |
| GND | Common GND |
| AIN1 | D7 |
| AIN2 | D8 |
| PWMA | D9 (PWM) |
| BIN1 | D10 |
| BIN2 | D11 |
| PWMB | D6 (PWM) |
| STBY | D12 |
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